PDA

Bekijk de volledige versie : Seperate eth1 from br0



tokyoturnip
07-03-2007, 19:14
My goal is to seperate eth1 from br0 so Wifi users can surf the internet but not be able to access any machines on the wired lan. Like a free hotspot.


I have a wl500gx with Olegs firmware 1.9.2.7-7f, running as an Access-Point.
What I have done is
brctl delif br0 eth1
which successfully removes the wlan from br0.
Then I run
ifconfig eth1 down
ifconfig add 192.168.2.1 mask 255.255.255.0 eth1 up
which successfully adds the IP to eth1 and I can see in ifconfig.
Adding the IP also appears to automatically add a route to the routing table.
Just running route shows that it is added to the interface eth1.
However looking on the webadmin page it shows the route for 192.168.2.0 as WAN eth1, with the route for 192.168.1.0 being LAN br0.
The end result is I am not even able to ping 192.168.2.1 from a wireless device even though i set a static IP of 192.168.2.10. I have a suspicion that "WAN" on the routes page on the webadmin page is a big tipoff, however I do not know how to fix that.

Am I missing any steps on successfully removing eth1 from br0?
Are there any IPTABLES that need adjustment?
Bonus question, how would I go about making it perminant so I do not have to put these commands in the post-boot script.