mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-08 07:40:05 +01:00
Added Yandex Basic DNS resolvers
https://dns.yandex.com/ Nice for Russia.
This commit is contained in:
parent
d712e15795
commit
a2a3bfc605
@ -211,6 +211,7 @@ else
|
|||||||
echo " 3) DNS.WATCH (Germany)"
|
echo " 3) DNS.WATCH (Germany)"
|
||||||
echo " 4) OpenDNS (Anycast: worldwide)"
|
echo " 4) OpenDNS (Anycast: worldwide)"
|
||||||
echo " 5) Google (Anycast: worldwide)"
|
echo " 5) Google (Anycast: worldwide)"
|
||||||
|
echo " 6) Yandex Basic (Russia)"
|
||||||
while [[ $DNS != "1" && $DNS != "2" && $DNS != "3" && $DNS != "4" && $DNS != "5" ]]; do
|
while [[ $DNS != "1" && $DNS != "2" && $DNS != "3" && $DNS != "4" && $DNS != "5" ]]; do
|
||||||
read -p "DNS [1-5]: " -e -i 2 DNS
|
read -p "DNS [1-5]: " -e -i 2 DNS
|
||||||
done
|
done
|
||||||
@ -454,6 +455,10 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf
|
|||||||
echo 'push "dhcp-option DNS 8.8.8.8"' >> /etc/openvpn/server.conf
|
echo 'push "dhcp-option DNS 8.8.8.8"' >> /etc/openvpn/server.conf
|
||||||
echo 'push "dhcp-option DNS 8.8.4.4"' >> /etc/openvpn/server.conf
|
echo 'push "dhcp-option DNS 8.8.4.4"' >> /etc/openvpn/server.conf
|
||||||
;;
|
;;
|
||||||
|
6) #Yandex Basic
|
||||||
|
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
|
esac
|
||||||
echo 'push "redirect-gateway def1 bypass-dhcp" '>> /etc/openvpn/server.conf
|
echo 'push "redirect-gateway def1 bypass-dhcp" '>> /etc/openvpn/server.conf
|
||||||
echo "crl-verify crl.pem
|
echo "crl-verify crl.pem
|
||||||
|
Loading…
Reference in New Issue
Block a user