WAP Guest Network - Issues w/ IPTables

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


Joined: 31 Jul 2019
Posts: 1

PostPosted: Wed Jul 31, 2019 12:56    Post subject: WAP Guest Network - Issues w/ IPTables Reply with quote
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.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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