From 0d667e49a76802ddbc646398fec282718bd67d04 Mon Sep 17 00:00:00 2001 From: xopez <28950736+xopez@users.noreply.github.com> Date: Mon, 1 Oct 2018 18:39:21 +0200 Subject: [PATCH] Listen on IPv4 Needed if you have more than one IPv4. Just listen on the configured IP on the install. Tested in my environment. I have apache server running on one interface with port 443. So its not bindable there. I have bought a second IP. Now OpenVPN needs to know which IP he should bind and not every. So simply setting it in the config. Without this I couldn't connect. Edited config and worked fine for me. --- openvpn-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index f49a3d9..4b53b63 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -660,6 +660,7 @@ function installOpenVPN () { chmod 644 /etc/openvpn/crl.pem # Generate server.conf + echo "local $IP" >> /etc/openvpn/server.conf echo "port $PORT" > /etc/openvpn/server.conf if [[ "$IPV6_SUPPORT" = 'n' ]]; then echo "proto $PROTOCOL" >> /etc/openvpn/server.conf