diff options
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index d5efa8a..25fb706 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -107,6 +107,9 @@ function vpn_ipsec_configure($restart = false) /* get the automatic ping_hosts.sh ready */ unlink_if_exists("{$g['vardb_path']}/ipsecpinghosts"); touch("{$g['vardb_path']}/ipsecpinghosts"); + + /* service may have been enabled, disabled, or otherwise changed in a way requiring rule updates */ + filter_configure(); $syscfg = $config['system']; $ipseccfg = $config['ipsec']; @@ -123,8 +126,6 @@ function vpn_ipsec_configure($restart = false) mwexec("/sbin/ifconfig enc0 down"); set_single_sysctl("net.inet.ip.ipsec_in_use", "0"); - filter_configure(); - return 0; } |