diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2012-02-24 13:20:35 +0100 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2012-02-24 13:20:35 +0100 |
commit | 934f489e7532a7dca3401ffa1b088f39a6b85ae2 (patch) | |
tree | d2755c30d2b01b172cbcc6669f59f5bf679e745d /debian/openvpn.init.d | |
parent | 02e5ef836b66d0234eaa5c81dcb32e8273cd87bb (diff) |
Initialize SAVED_DEFAULT_SEND_REDIRECTS in init.ddebian/2.2.1-5
Set SAVED_DEFAULT_SEND_REDIRECT=0 before checking if we are playing
with sysctl, otherwise checking its value later in the script would
fail.
Diffstat (limited to 'debian/openvpn.init.d')
-rw-r--r-- | debian/openvpn.init.d | 1 |
1 files changed, 1 insertions, 0 deletions
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 |