Hi!
i'm using iptables v.1.2.2. i have a problem with forward chain
it looks like this:
iptables -N check_mac
iptables -A check_mac -m mac --mac-source xx : xx : xx : xx : xx : xx -s
192.168.0.1 -j RETURN
iptables -A check_mac -m mac --mac-source xx : xx : xx : xx : xx : xx -s
192.168.0.2 -j RETURN
iptables -A check_mac -m mac --mac-source xx : xx : xx : xx : xx : xx -s
192.168.0.3 -j RETURN
....
iptables -A check_mac -j DROP
iptables -A FORWARD -i eth1 -j check_mac
....
So i only want specific ip with specific mac address pairs to be forwarded,
but it doesn't work! If i place RETURN target instead of DROP in the last
line of check_mac chain it works. But of course that's not the way i want it
to work.
Anybody any idea?
|