From 2f0a7613d8f369b1a81f06932220f507f13e5e8a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 22 Sep 2006 18:41:53 +0000 Subject: MFC openvpn fixes by Fernando --- etc/inc/openvpn.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc/inc/openvpn.inc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index eab9a33..33e3c65 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -220,6 +220,8 @@ persist-key dev tun proto $proto cipher $cipher +up /etc/rc.filter_configure +down /etc/rc.filter_configure EOD; @@ -355,7 +357,7 @@ function openvpn_restart($mode, $id) { if ($settings['disable']) return; $configfile = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf"; - mwexec("openvpn --config $configfile --down /etc/rc.filter_configure --learn-address /etc/rc.filter_configure --route-up /etc/rc.filter_configure --up /etc/rc.filter_configure"); + mwexec("openvpn --config $configfile"); touch("{$g['tmp_path']}/filter_dirty"); } -- cgit v1.1