diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 15:02:25 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-01-16 15:02:25 +0000 |
commit | 647c7c48a5b64100aa3e4f28f391b0f6403ab921 (patch) | |
tree | c86e3513cf6961f77402db14ba52da616ba16bcc /usr/local/www/vpn_ipsec.php | |
parent | 4e7a28195f132ecf77d069710576e274cc889464 (diff) | |
download | pfsense-647c7c48a5b64100aa3e4f28f391b0f6403ab921.zip pfsense-647c7c48a5b64100aa3e4f28f391b0f6403ab921.tar.gz |
Add initial support for granular IPsec SPD changes.
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 0ba58fe..dc3d45c 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -56,6 +56,7 @@ if ($_POST) { if ($_POST['apply']) { $retval = 0; + $retval = vpn_ipsec_refresh_policies(); $retval = vpn_ipsec_configure(); $savemsg = get_std_save_message($retval); if ($retval == 0) { @@ -71,6 +72,7 @@ if ($_POST) { $retval = 0; config_lock(); + $retval = vpn_ipsec_refresh_policies(); $retval = vpn_ipsec_configure(); config_unlock(); /* reload the filter in the background */ @@ -99,6 +101,8 @@ if ($_GET['act'] == "delph1") /* remove the phase1 entry */ unset($a_phase1[$_GET['p1index']]); + vpn_ipsec_refresh_policies(); + vpn_ipsec_configure(); filter_configure(); write_config(); header("Location: vpn_ipsec.php"); @@ -111,6 +115,8 @@ if ($_GET['act'] == "delph2") if ($a_phase2[$_GET['p2index']]) { /* remove the phase2 entry */ unset($a_phase2[$_GET['p2index']]); + vpn_ipsec_refresh_policies(); + vpn_ipsec_configure(); filter_configure(); write_config(); header("Location: vpn_ipsec.php"); |