mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 14:06:07 +03:00
Remove logs and add FDN's DNS servers
This commit is contained in:
parent
8d95e922ce
commit
efdd53c79f
@ -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 ""
|
||||||
|
Loading…
Reference in New Issue
Block a user