From 2533e2e113c5f86f77b578cda34e6fb7e140c79d Mon Sep 17 00:00:00 2001 From: Nyr Date: Mon, 5 Aug 2013 00:58:43 +0200 Subject: [PATCH] Bugfix: routes not being pushed --- openvpn-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 23a2074..abb134f 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -165,6 +165,7 @@ else cd /etc/openvpn/ # Set the server configuration sed -i 's|dh dh1024.pem|dh dh2048.pem|' server.conf + sed -i 's|;push "redirect-gateway def1 bypass-dhcp"|push "redirect-gateway def1 bypass-dhcp"|' server.conf sed -i 's|;push "dhcp-option DNS 208.67.222.222"|push "dhcp-option DNS 129.250.35.250"|' server.conf sed -i 's|;push "dhcp-option DNS 208.67.220.220"|push "dhcp-option DNS 74.82.42.42"|' server.conf sed -i "s|port 1194|port $PORT|" server.conf @@ -216,4 +217,4 @@ else echo "" echo "Your client config is available at ~/ovpn-$CLIENT.tar.gz" echo "If you want to add more clients, you simply need to run this script another time!" -fi \ No newline at end of file +fi