IP + MAC filter - wireless client
Hello,
My server is on Mandriva 10.1
eth0 is WAN with static IP connected to 512K DSL eth1 is LAN - 192.168.0.0/24 and 192.168.21.0/24
I want to use IP + MAC filtering to allow/deny clients acces to net as follows.
A FORWARD -i eth1 -o eth0 -s 192.168.0.5 \
-m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT
How do you handle a client connected to the LAN via wireless. In such a case there will be more than one MAC address in the route.
Can you have multiple MAC in one rule or it is better to have multiple rule for the same IP for each MAC.
Thanks in advance
Varun
Quoted 3 lines
How do you handle a client connected to the LAN
via wireless. In such a case there will be more
than one MAC address in the route.
How are you going to have more than one (source) MAC address? If you are routing then the MAC address that will be seen by the IPTables firewall will be the MAC address of the router that is doing the routing for you, not the MAC of the wireless card. If you are using an AP that is in bridging mode the MAC that will be seen by the IPTables firewall should be the MAC address of the physical wireless card, not of the AP/Bridge. The MAC of the AP/Bridge only comes in to play when you connect to it's management interface, not normal traffic flow. (Does any one else care to comment / correct me on this?)
Grant. . . .