Separating Virtual Networks with some cross-over allowed?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
mbressman
DD-WRT Novice


Joined: 25 Jun 2009
Posts: 30

PostPosted: Tue Sep 16, 2014 23:48    Post subject: Separating Virtual Networks with some cross-over allowed? Reply with quote
Hey, was wondering if anyone could help me out:

These are the commands I currently have in my firewall for my dd-wrt router:

iptables -t nat -I POSTROUTING -o `get_wanface` -j SNAT --to `nvram get wan_ipaddr`
iptables -I FORWARD -i br1 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i br2 -m state --state NEW -j ACCEPT
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables -I FORWARD -i br1 -o br0 -m state --state NEW -j DROP
iptables -I FORWARD -i br2 -o br0 -m state --state NEW -j DROP
iptables -I FORWARD -i br1 -d `nvram get wan_ipaddr`/`nvram get wan_netmask` -m state --state NEW -j DROP
iptables -I FORWARD -i br2 -d `nvram get wan_ipaddr`/`nvram get wan_netmask` -m state --state NEW -j DROP


Two things:

1) I just want to confirm that the above commands are correct for totally segregating/separating the three wireless neworks I have set up:

First Network:
Wireless Physical Interface ath0 [2.4 GHz] / Physical Interface ath0
Wireless Physical Interface ath1 [5 GHz] / Physical Interface ath1

Second Network:
Virtual Interfaces ath0.1 (2.4 GHz)
Virtual Interfaces ath1.1 (5 GHz)

Third Network:
Virtual Interfaces ath0.2 (2.4 GHz only)


2) I want to know if there's any way to modify this so that the First Network above can access resources/devices on the second and third network (such as shared computers, etc.) without allowing the second or third network to access anything on the first network (the second and third should each be totally walled off from everything and only allow access to the Internet)


Thanks very much!

_________________
Marc
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum