mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-08 15:50:09 +01:00
Add Quad9 DNS
This commit is contained in:
parent
0a7ff64549
commit
449361007a
@ -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)
|
- [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
|
- [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
|
- [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
|
- Soon : local resolver :D
|
||||||
|
|
||||||
Any other fast, trustable and neutral servers proposition is welcome.
|
Any other fast, trustable and neutral servers proposition is welcome.
|
||||||
|
@ -227,7 +227,8 @@ else
|
|||||||
echo " 5) Google (Anycast: worldwide)"
|
echo " 5) Google (Anycast: worldwide)"
|
||||||
echo " 6) Yandex Basic (Russia)"
|
echo " 6) Yandex Basic (Russia)"
|
||||||
echo " 7) AdGuard DNS (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
|
read -p "DNS [1-7]: " -e -i 1 DNS
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
@ -432,7 +433,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service
|
|||||||
echo "Ok, bye !"
|
echo "Ok, bye !"
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$OS" = 'arch' ]]; then
|
if [[ "$OS" = 'arch' ]]; then
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm
|
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.130"' >> /etc/openvpn/server.conf
|
||||||
echo 'push "dhcp-option DNS 176.103.130.131"' >> /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
|
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
|
||||||
@ -681,4 +685,4 @@ verb 3" >> /etc/openvpn/client-template.txt
|
|||||||
echo "Your client config is available at $homeDir/$CLIENT.ovpn"
|
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!"
|
echo "If you want to add more clients, you simply need to run this script another time!"
|
||||||
fi
|
fi
|
||||||
exit 0;
|
exit 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user