From 2c7d211b04d08db904becab88bde19c3055ef701 Mon Sep 17 00:00:00 2001 From: Angristan Date: Mon, 14 Mar 2016 18:02:01 +0100 Subject: [PATCH] Clarifies that it supports Scaleway NATed servers --- openvpn-install-legacy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvpn-install-legacy.sh b/openvpn-install-legacy.sh index e9c8dba..8ebbf5e 100644 --- a/openvpn-install-legacy.sh +++ b/openvpn-install-legacy.sh @@ -54,7 +54,7 @@ newclient () { # Try to get our IP from the system and fallback to the Internet. -# I do this to make the script compatible with NATed servers (lowendspirit.com) +# I do this to make the script compatible with NATed servers (LowEndSpirit/Scaleway) # and to avoid getting an IPv6. IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1) if [[ "$IP" = "" ]]; then @@ -335,13 +335,13 @@ crl-verify crl.pem" >> /etc/openvpn/server.conf chkconfig openvpn on fi fi - # Try to detect a NATed connection and ask about it to potential LowEndSpirit users + # Try to detect a NATed connection and ask about it to potential LowEndSpirit/Scaleway users EXTERNALIP=$(wget -qO- ipv4.icanhazip.com) if [[ "$IP" != "$EXTERNALIP" ]]; then echo "" echo "Looks like your server is behind a NAT!" echo "" - echo "If your server is NATed (LowEndSpirit), I need to know the external IP" + echo "If your server is NATed (e.g. LowEndSpirit, Scaleway), I need to know the external IP" echo "If that's not the case, just ignore this and leave the next field blank" read -p "External IP: " -e USEREXTERNALIP if [[ "$USEREXTERNALIP" != "" ]]; then