Openvpn – How to set OpenVPN client bind address

openvpn

The OpenVPN client machine has two interfaces to Internet: a low-speed and high-speed one. Default route goes throught the low-speed one. I'd like OpenVPN to connect to server through the high-speed one. How can that be done?

Like in ping, I can use "-I 1.2.3.4", or in telnet "-b 1.2.3.4" and then the 1.2.3.4 IP is used.

Best Answer

You can use the local directive to force the client to use a specific IP address.

--local host
Local host name or IP address for bind. If specified, OpenVPN will bind to this address only. If unspecified, OpenVPN will bind to all interfaces.

You can specify it in the client config file too

local ip.add.re.ss