What's new

Tying OpenVPN to a specific SSID or LAN port

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

tokyo_networking

Regular Contributor
I would like to be able to tie OPENVPN to a specific SSID or LAN port, e.g I want default traffic go out on the Internet, but specific devices to use the VPN connection. Is this possible.
 
By default, all the wireless adapters (SSIDs) and LAN ports are bridged (br0) and treated as a single entity that share the same ethernet segment and IP network. All distinctions between wired and wireless, and how any given client gained access to the network, is lost. And when it comes to the OpenVPN client, you can only split tunnel based on the source IP (at least when using the GUI).

The only way to segregate a given LAN port or wireless SSID for use w/ OpenVPN is to *un*bridge that LAN port or SSID from the default bridge and create a brand new ethernet segment and IP network (VLAN or AP, respectively). And now you can specify that new IP network in policy based routing for routing over the OpenVPN client. IOW, indirectly,

Of course, the downside of doing this is that now you have two separate ethernet/IP networks for all other purposes, and that can be problematic (e.g., network discovery cannot cross ethernet boundaries, at least by default).
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top