Added test promt for own DNS input.
This commit is contained in:
parent
e8958b969e
commit
e319b28b28
@ -192,8 +192,13 @@ else
|
|||||||
echo " 3) OpenDNS"
|
echo " 3) OpenDNS"
|
||||||
echo " 4) NTT"
|
echo " 4) NTT"
|
||||||
echo " 5) Hurricane Electric"
|
echo " 5) Hurricane Electric"
|
||||||
|
echo " 6) You specify the DNS server IP-s"
|
||||||
read -p "DNS [1-6]: " -e -i 1 DNS
|
read -p "DNS [1-6]: " -e -i 1 DNS
|
||||||
|
if [[ "$DNS" = '6' ]]; then
|
||||||
|
read -p "Specify the DNS server IP-s. Space is the separator" -e -i 8.8.8.8 8.8.4.4 OWNDNS
|
||||||
|
else
|
||||||
echo ""
|
echo ""
|
||||||
|
fi
|
||||||
echo "Finally, tell me your name for the client cert"
|
echo "Finally, tell me your name for the client cert"
|
||||||
echo "Please, use one word only, no special characters"
|
echo "Please, use one word only, no special characters"
|
||||||
read -p "Client name: " -e -i client CLIENT
|
read -p "Client name: " -e -i client CLIENT
|
||||||
@ -266,6 +271,9 @@ ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf
|
|||||||
5)
|
5)
|
||||||
echo 'push "dhcp-option DNS 74.82.42.42"' >> /etc/openvpn/server.conf
|
echo 'push "dhcp-option DNS 74.82.42.42"' >> /etc/openvpn/server.conf
|
||||||
;;
|
;;
|
||||||
|
6)
|
||||||
|
echo 'push "dhcp-option OWNDNS"' >> /etc/openvpn/server.conf
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
echo "keepalive 10 120
|
echo "keepalive 10 120
|
||||||
comp-lzo
|
comp-lzo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user