dkii
11-12-2002, 07:10 PM
Ok.. I gotta screwy on for ya'll. This is my setup:
Cable modem connected to a
Linksys BEFW11S4 Wireless access point/nat/router/firewall/whatever
Have the linksys set to do standard nat and dhcp
Have a soekris running staros server with 2 lucents in it. One(wlan1) is set to infrastructure on the linksys(is a client to the linksys AP). The other(wlan2) is set to AP mode.
Linksys is handing out NATted ip's in 192.168.1.0/24 on the AP side, with its IP being 192.168.1.1
Have a default route of 0.0.0.0 to gateway 192.168.1.1 on wlan1 on the soekris. wlan1's IP is 192.168.1.220/24
wlan2's ip is 192.168.2.1/24. Also have dhcp running on wlan2 handing out ip's in 192.168.2.0/24 with a gateway of 192.168.2.1
Now this is where it gets wierd.
If I turn the nat on staros ON (masq from 192.168.2.0/24 to dev $net (wlan1)) then everything works fine. I can ping everthing and surf etc... no problemo. BUT I don't like the idea of double nat's running(staros and linksys). So, having my very limited knowledge of routing, I kept playing with numbers until I found something that worked.
I turned NAT off on the staros, left everything else the same. Went to the linksys, set up a static route with these settings:
Dest. lan ip: 192.168.2.0
Subnet: 255.255.255.0
Gateway: 192.168.1.1
Hop count: 1
Interface: LAN
And voila! everything works, I can ping everything, browse the web, etc... and no double nat! BUT only one problem. I can't browse to the linksys's web interface(192.168.1.1) I can ping it, kick it, do whatever I want to it, but I can't browse to it. Go figure?? So... that is my question, why can I ping and browse to the linksys with nat turned ON in staros, but with it turned off, I can only ping it. Everything else works either way.
My theories:
#1: Linksys ignores http requests from anything outside of the subnet it is controlling
#2: Linksys thinks 192.168.1.220 is requesting the info, instead of 192.168.2.x, thus sending it back to 192.168.1.220 and staros dumping it because it didn't ask for it.
#3(and most likely): Some screwy bug in the linksys's firmware.
#4: All the above
Now, I'm not stupid, this is not a production set up, I wouldn't be caught DEAD using a linksys in a real environment. This is just a test system that I set up so I can teach myself the ropes(routing, scripting etc...)
Any ideas? :roll:
Cable modem connected to a
Linksys BEFW11S4 Wireless access point/nat/router/firewall/whatever
Have the linksys set to do standard nat and dhcp
Have a soekris running staros server with 2 lucents in it. One(wlan1) is set to infrastructure on the linksys(is a client to the linksys AP). The other(wlan2) is set to AP mode.
Linksys is handing out NATted ip's in 192.168.1.0/24 on the AP side, with its IP being 192.168.1.1
Have a default route of 0.0.0.0 to gateway 192.168.1.1 on wlan1 on the soekris. wlan1's IP is 192.168.1.220/24
wlan2's ip is 192.168.2.1/24. Also have dhcp running on wlan2 handing out ip's in 192.168.2.0/24 with a gateway of 192.168.2.1
Now this is where it gets wierd.
If I turn the nat on staros ON (masq from 192.168.2.0/24 to dev $net (wlan1)) then everything works fine. I can ping everthing and surf etc... no problemo. BUT I don't like the idea of double nat's running(staros and linksys). So, having my very limited knowledge of routing, I kept playing with numbers until I found something that worked.
I turned NAT off on the staros, left everything else the same. Went to the linksys, set up a static route with these settings:
Dest. lan ip: 192.168.2.0
Subnet: 255.255.255.0
Gateway: 192.168.1.1
Hop count: 1
Interface: LAN
And voila! everything works, I can ping everything, browse the web, etc... and no double nat! BUT only one problem. I can't browse to the linksys's web interface(192.168.1.1) I can ping it, kick it, do whatever I want to it, but I can't browse to it. Go figure?? So... that is my question, why can I ping and browse to the linksys with nat turned ON in staros, but with it turned off, I can only ping it. Everything else works either way.
My theories:
#1: Linksys ignores http requests from anything outside of the subnet it is controlling
#2: Linksys thinks 192.168.1.220 is requesting the info, instead of 192.168.2.x, thus sending it back to 192.168.1.220 and staros dumping it because it didn't ask for it.
#3(and most likely): Some screwy bug in the linksys's firmware.
#4: All the above
Now, I'm not stupid, this is not a production set up, I wouldn't be caught DEAD using a linksys in a real environment. This is just a test system that I set up so I can teach myself the ropes(routing, scripting etc...)
Any ideas? :roll: