705ryan DD-WRT Novice
Joined: 31 Jul 2019 Posts: 1
|
Posted: Wed Jul 31, 2019 12:56 Post subject: WAP Guest Network - Issues w/ IPTables |
|
Hi All,
Setting up a WAP for both network and guest traffic.
Followed this tutorial: https://wiki.dd-wrt.com/wiki/index.php/Guest_Network#VAP_with_no_WAN
I'm using my main gateway router to provide DHCP for the main network and the DNSMasq on the DD-WRT providing DHCP for the gust WLAN.
HOWEVER: I am stuck with an issue.
After adding the IPTables rules to allow internet access on the guest network, the main network will not allow any network drives / network programs to operate.
I can ping the ipaddress however, I cannot ping any namehosts (eg: SERVER, COMPUTER1 etc...)
When I remove the IPTables rules, my main network can see everything again but I lose internet on my guest network.
IPTables rules that affect my main network:
iptables -I FORWARD -i wl0.1 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -m state --state NEW -j REJECT
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to `nvram get lan_ipaddr`
Any ideas? Thanks in advance. |
|