How can I configure an OpenVPN server on a Linux machine to only listen on given interfaces? Are there any features like this in OpenVPN?
Asked
Active
Viewed 2.4k times
1 Answers
3
At the start of your sample configuration file (that i suggest to copy from /usr/share/doc/packages/openvpn or /usr/share/doc/openvpn-2.0
, you have the following:
# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d
Here you have a great official installation/configuration guide for OpenVPN, that i suggest you step forward with it since OpenVPN isn't a simple configuration.

Hanan
- 5,771
-
5OP wants to specify by interface name, not by IP. You dont always know your IP at config time (wired wan or LTE interface) – nhed Oct 05 '17 at 00:14