I have set up my router to server multiple wireless hostpots from one WLAN adapter. The output of ifconfig is as follows:
Code: Select all
# Wireless SSID NO-VPN
wlan0 Link encap:Ethernet HWaddr 02:21:91:01:11:6d
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
[snip]
# Wireless SSID VPN-UK
wlan0.0 Link encap:Ethernet HWaddr 02:21:91:01:11:6e
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[snip]
# Wireless SSID VPN-US
wlan0.1 Link encap:Ethernet HWaddr 02:21:91:01:11:6f
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[snip]
What I would like to do is to open two OpenVPN connections to two services (US and UK) and connect them to to two VPN-* WLANS (wlan0.0 & wlan0.1)
I have tried playing with route and only routing addresses on the specific subnets, but I cannot seem to get it to work. I either route all trafic, or no traffic.
My server and client configs are standard configurations, with
Code: Select all
push "redirect-gateway def1 bypass-dhcp"
Any help would be greatly appreciated. Thanks!