Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
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

Your Answer


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.