1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-23 21:46:08 +03:00

Clarify NAT configuration dialog

Closes #451.
This commit is contained in:
Nyr 2018-04-16 17:53:48 +02:00
parent e73503054e
commit cb2a5b8028

View File

@ -384,13 +384,13 @@ exit 0' > $RCLOCAL
EXTERNALIP=$(wget -4qO- "http://whatismyip.akamai.com/") EXTERNALIP=$(wget -4qO- "http://whatismyip.akamai.com/")
if [[ "$IP" != "$EXTERNALIP" ]]; then if [[ "$IP" != "$EXTERNALIP" ]]; then
echo "" echo ""
echo "Looks like your server is behind a NAT!" echo "Looks like your server could be behind a NAT!"
echo "" echo ""
echo "If your server is NATed (e.g. LowEndSpirit), I need to know the external IP" echo "If your server is behind a NAT, I need to know the public IP or hostname"
echo "If that's not the case, just ignore this and leave the next field blank" echo "If that's not the case, just ignore this and leave the next field blank"
read -p "External IP: " -e USEREXTERNALIP read -p "Public IP: " -e PUBLICIP
if [[ "$USEREXTERNALIP" != "" ]]; then if [[ "$PUBLICIP" != "" ]]; then
IP=$USEREXTERNALIP IP=$PUBLICIP
fi fi
fi fi
# client-common.txt is created so we have a template to add further users later # client-common.txt is created so we have a template to add further users later