From ced41f0b57968a881daa3f2e2917ba0b9a68cd5d Mon Sep 17 00:00:00 2001 From: Kuznetsov Victor Date: Sun, 15 Jan 2017 12:20:25 -0800 Subject: [PATCH] Added Yandex DNS option. --- openvpn-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 941fffc..1a10d99 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -196,7 +196,8 @@ else echo " 4) NTT" echo " 5) Hurricane Electric" echo " 6) Verisign" - read -p "DNS [1-6]: " -e -i 1 DNS + echo " 7) Yandex" + read -p "DNS [1-7]: " -e -i 1 DNS echo "" echo "Finally, tell me your name for the client cert" echo "Please, use one word only, no special characters" @@ -286,6 +287,10 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 64.6.64.6"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 64.6.65.6"' >> /etc/openvpn/server.conf ;; + 7) + echo 'push "dhcp-option DNS 77.88.8.8"' >> /etc/openvpn/server.conf + echo 'push "dhcp-option DNS 77.88.8.1"' >> /etc/openvpn/server.conf + ;; esac echo "keepalive 10 120 cipher AES-256-CBC