Remove logs and add FDN's DNS servers

This commit is contained in:
Angristan 2016-02-29 17:47:01 +01:00
parent 8d95e922ce
commit efdd53c79f

View File

@ -191,7 +191,8 @@ else
echo " 2) Google" echo " 2) Google"
echo " 3) OpenDNS" echo " 3) OpenDNS"
echo " 4) NTT" echo " 4) NTT"
echo " 5) Hurricane Electric" echo " 5) FDN"
echo " 6) Hurricane Electric"
read -p "DNS [1-6]: " -e -i 1 DNS read -p "DNS [1-6]: " -e -i 1 DNS
echo "" echo ""
echo "Finally, tell me your name for the client cert" echo "Finally, tell me your name for the client cert"
@ -264,6 +265,10 @@ ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf
echo 'push "dhcp-option DNS 129.250.35.251"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 129.250.35.251"' >> /etc/openvpn/server.conf
;; ;;
5) 5)
echo 'push "dhcp-option DNS 80.67.169.12"' >> /etc/openvpn/server.conf
echo 'push "dhcp-option DNS 80.67.169.40"' >> /etc/openvpn/server.conf
;;
6)
echo 'push "dhcp-option DNS 74.82.42.42"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 74.82.42.42"' >> /etc/openvpn/server.conf
;; ;;
esac esac
@ -271,8 +276,6 @@ ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf
comp-lzo comp-lzo
persist-key persist-key
persist-tun persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem" >> /etc/openvpn/server.conf crl-verify crl.pem" >> /etc/openvpn/server.conf
# Enable net.ipv4.ip_forward for the system # Enable net.ipv4.ip_forward for the system
if [[ "$OS" = 'debian' ]]; then if [[ "$OS" = 'debian' ]]; then
@ -364,8 +367,7 @@ nobind
persist-key persist-key
persist-tun persist-tun
remote-cert-tls server remote-cert-tls server
comp-lzo comp-lzo" > /etc/openvpn/client-common.txt
verb 3" > /etc/openvpn/client-common.txt
# Generates the custom client.ovpn # Generates the custom client.ovpn
newclient "$CLIENT" newclient "$CLIENT"
echo "" echo ""