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

NAT: explicitly mention FQDN besides IP

Specifying a fully quialified domain name also works
as input, so it can be mentioned to the user.

Also fixed the nitpick of preceding "i.e." before
LowEndSpirit, just in case the user doesn't know the
service at all.
This commit is contained in:
Andres G. Aragoneses 2016-02-29 16:26:42 +08:00 committed by Andrés G. Aragoneses
parent e8958b969e
commit 6139d8cc00

View File

@ -345,9 +345,9 @@ crl-verify crl.pem" >> /etc/openvpn/server.conf
echo "" echo ""
echo "Looks like your server is behind a NAT!" echo "Looks like your server is behind a NAT!"
echo "" echo ""
echo "If your server is NATed (LowEndSpirit), I need to know the external IP" echo "If your server is NATed (i.e. LowEndSpirit), I need to know the external IP or FQDN"
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 "External IP or FQDN: " -e USEREXTERNALIP
if [[ "$USEREXTERNALIP" != "" ]]; then if [[ "$USEREXTERNALIP" != "" ]]; then
IP=$USEREXTERNALIP IP=$USEREXTERNALIP
fi fi