Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have the following IPTable rules:

iptables -I FORWARD -i br1 -d nvram get lan_ipaddr/nvram get lan_netmask -m state --state NEW -j DROP

iptables -t nat -I POSTROUTING -o br0 -j SNAT --to nvram get lan_ipaddr

These rules 1) Allow people connected to the wifi to access the internet 2) Block people on the wifi from accessing vlan0

I would like to add a rule to allow specific mac addresses access to vlan0 from the wifi (eth1)

I'm having trouble grokking the Iptable syntax, and any help would be greatly appreciated.

Thanks

share|improve this question
add comment

1 Answer

iptables -A FORWARD -m mac --mac-source XX:XX:XX:XX:XX:XX -i eth1 -o eth0.0 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0.0 -j DROP # or REJECT
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.