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?

1 Answer 1


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.

  • 5
    OP wants to specify by interface name, not by IP. You dont always know your IP at config time (wired wan or LTE interface)
    – nhed
    Commented Oct 5, 2017 at 0:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .