diff options
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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"); } |