Howto tell EBTABLES to Read from the FILE

AA Inter.Network Services / SYED JAHANZAiB <[email protected]> Mon, 14 Jan 2008 11:41:07 +0000
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
I am running linux BRIDGE for mac address filtering. I have allowed mac add=
ress file in /macs/mac.allow which looks like

00-16-76-7E-05-7B # SERVER

00-E0-4C-90-1C-E1 # SERVER2

00-20-e0-6e-a7-33 # A-13RH2
 LAPTOP
00-e0-4c-7b-a9-25 # A-M5FH PC

The default policy for EBTABLES is set to drop, so I want that only allowed=
 macs from the file /macs/mac.allow should enter , =

I have made a script which is =


=3D=3D checkmac.sh =3D=3D=3D=3D
for macs in `cat /macs/mac.allow`
do
ebtables -A FORWARD --among-src-file /macs/mac.allow -j ACCEPT
done
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

But its not working.
what I am doing Wrong?



Regards,
SYED JAHANZAIB
_________________________________________________________________
Put your friends on the big screen with Windows Vista=AE + Windows Live=99.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=3DTXT_TAGLM_C=
PC_MediaCtr_bigscreen_012008
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace