diff --git a/README.md b/README.md index 2b53e71..6bc46e9 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Here are the possibilities : - [Google Public DNS](https://en.wikipedia.org/wiki/Google_Public_DNS), not recommended, but fast worldwide (Anycast servers) - [Yandex Basic DNS](https://dns.yandex.com/), not recommended, but fast in Russia - [AdGuard DNS](https://github.com/AdguardTeam/AdguardDNS), located in Russia, blocks ads and trackers +- [IBM Quad9](https://www.quad9.net), security oriented, fast worldwide (Anycast servers) - Soon : local resolver :D Any other fast, trustable and neutral servers proposition is welcome. diff --git a/openvpn-install.sh b/openvpn-install.sh index ba86428..33485ec 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -227,7 +227,8 @@ else echo " 5) Google (Anycast: worldwide)" echo " 6) Yandex Basic (Russia)" echo " 7) AdGuard DNS (Russia)" - while [[ $DNS != "1" && $DNS != "2" && $DNS != "3" && $DNS != "4" && $DNS != "5" && $DNS != "6" && $DNS != "7" ]]; do + echo " 8) Quad9 (Anycast: worldwide)" + while [[ $DNS != "1" && $DNS != "2" && $DNS != "3" && $DNS != "4" && $DNS != "5" && $DNS != "6" && $DNS != "7" && $DNS != "8" ]]; do read -p "DNS [1-7]: " -e -i 1 DNS done echo "" @@ -432,7 +433,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service echo "Ok, bye !" exit 4 fi - + if [[ "$OS" = 'arch' ]]; then # Install dependencies pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm @@ -524,6 +525,9 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 176.103.130.130"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 176.103.130.131"' >> /etc/openvpn/server.conf ;; + 8) #Quad9 + echo 'push "dhcp-option DNS 9.9.9.9"' >> /etc/openvpn/server.conf + ;; esac echo 'push "redirect-gateway def1 bypass-dhcp" '>> /etc/openvpn/server.conf echo "crl-verify crl.pem @@ -681,4 +685,4 @@ verb 3" >> /etc/openvpn/client-template.txt echo "Your client config is available at $homeDir/$CLIENT.ovpn" echo "If you want to add more clients, you simply need to run this script another time!" fi -exit 0; \ No newline at end of file +exit 0;