Bind interface to VPN connection

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.
Post Reply
tandr
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 05, 2017 11:42 am

Bind interface to VPN connection

Post by tandr » Thu Oct 05, 2017 11:50 am

Hi,

i have following szenario:

A pc with the following interfaces with openvpn client installed.

Interface wwan0 connects to the internet. It is configured via DHCP.
The wwan0 interface shall also be used for the openvpn connection.

wlan0 interface to connect to a wifi. Also configured via DHCP. The wifi may also provide an internet connection.

In general the openvpn connection does work. But if i have both connections established (wlan0 and wwan0 are connected)
the openvpn client does always use the wlan0 interface.

How can i prevent this - i assume the problem is related to the default gateway setting of my setup. Is that correct?

Thanks in advance

tandr
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 05, 2017 11:42 am

Re: Bind interface to VPN connection

Post by tandr » Thu Oct 05, 2017 12:55 pm

I forgot to mention that i am running linux on the client pc.

Post Reply