Multiple WLAN on WG302

Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware
Author Message
puh83
DD-WRT Novice


Joined: 20 May 2011
Posts: 1

PostPosted: Sun May 22, 2011 0:29    Post subject: Multiple WLAN on WG302 Reply with quote
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 set up the router according to this howto: http://www.dd-wrt.com/wiki/index.php/Multiple_WLANs

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`

Any ideas?
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu May 26, 2011 21:02    Post subject: Reply with quote
how about sometiong like
Code:
iptables -I POSTROUTING -t nat -o "outinterface" -j MASQUERADE

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware 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