IPtables Rules
Hey I'm trying to set up my iptables, but am kind of unsure what the syntax for the commands would be. I have been reading the iptables -h, but still havent gottent it. I use ddwrt on 2 routers, separated the wlan from the lan to 2 subnets. Now, I'm trying to set up my iptables to say that wlan can only connect to lan and nothing else, through udp&tcp 1516-2056. In addition, I need wan ssh to go all the way through to the computers set on the lan subnet. Lastly, the lan subnet needs to have outbound access to the internet.
So for wan
ssh -> accept
accept all <-
deny all ->
wlan
1516-2056 <-> lan subnet
deny all <->
lan
Accept -> 1516
accept <-
Does this make any sense? Is there a good guide on how to do this? Thanks
b.rake
|