How should i setup the route and iptable for my wireless router box
Hi , first time post here.
I install gentoo on my linux box ,and config it as my wireless router with a usb wireless card. I binded 2 ssid on this wireless card (wlan0, wlan1) with hostapd, and the outbond net work device is ppp0. I also connect my company VPN through ppp0 as tun0 .
my question is , how should i config the route and iptable to forward ppp0 only to wlan0, and forward tun0 only to wlan1? I have already configged wlan0 with 192.168.0.1 and wlan1 192.168.1.1.
|