1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-24 05:56:08 +03:00

this time actually fix the quoting issue for ip option 3

This commit is contained in:
jtbr 2016-04-10 19:45:33 +02:00
parent b3fb14bcb4
commit a65523eb1c

View File

@ -323,10 +323,8 @@ tls-version-min 1.2" > /etc/openvpn/server.conf
3) #OpenNIC 3) #OpenNIC
#Getting the nearest OpenNIC servers using the geoip API #Getting the nearest OpenNIC servers using the geoip API
read ns1 ns2 <<< $(curl -s https://api.opennicproject.org/geoip/ | head -2 | awk '{print $1}') read ns1 ns2 <<< $(curl -s https://api.opennicproject.org/geoip/ | head -2 | awk '{print $1}')
echo -e "nameserver $ns1 echo "push \"dhcp-option DNS $ns1\"" >> /etc/openvpn/server.conf
nameserver $ns2" >> /etc/resolv.conf #Set the DNS servers echo "push \"dhcp-option DNS $ns2\"" >> /etc/openvpn/server.conf
echo 'push "dhcp-option DNS $ns1"' >> /etc/openvpn/server.conf
echo 'push "dhcp-option DNS $ns2"' >> /etc/openvpn/server.conf
;; ;;
4) #OpenDNS 4) #OpenDNS
echo 'push "dhcp-option DNS 208.67.222.222"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 208.67.222.222"' >> /etc/openvpn/server.conf