block access to wrt from vlan using iptables dd-wrt

Posted by NitroxDM on Server Fault See other posts from Server Fault or by NitroxDM
Published on 2011-04-20T13:11:47Z Indexed on 2013/10/24 21:57 UTC
Read the original article Hit count: 259

Filed under:
|

I set up multiple isolated vlans in dd-wrt. Now I need to forward a port to vlan2.

I isolated the vlans using:

iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I FORWARD -i br0 -o vlan3 -j DROP
iptables -I FORWARD -i br0 -o vlan4 -j DROP

Now I need to block a clients on each vlan from accessing the router.

This doesn't work:

iptables -I INPUT -i br0 -o vlan2 --dport telnet -j REJECT --reject-with tcp-reset

I'm new it iptables... am I missing something?

© Server Fault or respective owner

Related posts about iptables

Related posts about dd-wrt