From 934f489e7532a7dca3401ffa1b088f39a6b85ae2 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Iniesta Date: Fri, 24 Feb 2012 13:20:35 +0100 Subject: Initialize SAVED_DEFAULT_SEND_REDIRECTS in init.d Set SAVED_DEFAULT_SEND_REDIRECT=0 before checking if we are playing with sysctl, otherwise checking its value later in the script would fail. --- debian/openvpn.init.d | 1 + 1 file changed, 1 insertion(+) (limited to 'debian') diff --git a/debian/openvpn.init.d b/debian/openvpn.init.d index cb326bf..8ff3a10 100644 --- a/debian/openvpn.init.d +++ b/debian/openvpn.init.d @@ -60,6 +60,7 @@ start_vpn () { # tun using the "subnet" topology confuses the routing code that wrongly # emits ICMP redirects for client to client communications + SAVED_DEFAULT_SEND_REDIRECTS=0 if grep -q '^[[:space:]]*dev[[:space:]]*tun' $CONFIG_DIR/$NAME.conf && \ grep -q '^[[:space:]]*topology[[:space:]]*subnet' $CONFIG_DIR/$NAME.conf ; then # When using "client-to-client", OpenVPN routes the traffic itself without -- cgit v1.2.3