Page 1 of 1

Bridging separate clients to virtual Wlans

Posted: Sat Mar 14, 2015 8:26 am
by pjrobertson
Hi there,

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]
As you can see, each WLAN has it's own subnet (and DHCP server for that matter) and has its own wireless SSID meaning wireless clients can connect to each WLAN independently.

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"
on the server, although I suspect this needs to be removed and my own routes added (I have tried this)

Any help would be greatly appreciated. Thanks!

Re: Bridging separate clients to virtual Wlans

Posted: Mon Mar 16, 2015 11:46 am
by Traffic
pjrobertson wrote:My server and client configs are standard configurations
You are not trying to do something standard .. so your configs will not be standard either ..

Please post current configs.