Update install-openvpn.sh
This commit is contained in:
parent
85ab645986
commit
0f098fd2dd
|
@ -48,9 +48,8 @@ keepalive 10 120
|
||||||
topology subnet
|
topology subnet
|
||||||
server 10.8.0.0 255.255.255.0
|
server 10.8.0.0 255.255.255.0
|
||||||
ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
|
ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
|
||||||
sed -ne 's/^nameserver[[:space:]]\+\([^[:space:]]\+\).*$/\1/p' '/etc/resolv.conf' | while read -r line; do
|
echo 'push "dhcp-option DNS 80.67.169.40"' >>/etc/openvpn/server.conf
|
||||||
echo "push \"dhcp-option DNS $line\"" >>/etc/openvpn/server.conf
|
echo 'push "dhcp-option DNS 80.67.169.12"' >>/etc/openvpn/server.conf
|
||||||
done
|
|
||||||
echo "push \"redirect-gateway def1 bypass-dhcp\"
|
echo "push \"redirect-gateway def1 bypass-dhcp\"
|
||||||
dh none
|
dh none
|
||||||
ecdh-curve prime256v1
|
ecdh-curve prime256v1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user