Posted: Sun May 22, 2011 0:29 Post subject: Multiple WLAN on WG302
I finaly got around to getting my wg302v2 upgraded to DD-WRT. I installed and added a profesional activation.
Everything worked great until I tried to setup multiple WLANs to seperate the networks. I had a few bad configs and tried to use the "Factory Defaults" option witch bricked my router time and time again forcing me to do a new flash. But that's not hte issue here.
The two WLANs work but I can't access the internet from the second one.
In short my LAN looks like this:
192.168.0.1 Internet SPI FW
192.168.0.6 WG302v2 DD-WRT router
I have a br0 with ipx0 and ath0 in it. ath0 workes fine and can connect to the internet.
I have a br1 with ath0.1 in it running on 192.168.1.0/24 with it's own DCHP. I can get an IP address and resolve DNS names but can't access the internet.
My FW script looks like this:
iptables -I FORWARD -i br1 -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 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -m state --state NEW -j DROP
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to `nvram get lan_ipaddr`