summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-22 11:56:34 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-22 11:56:34 -0300
commitd026178fa695f607f3b490978a9f4113fa7b111d (patch)
treebd95d3aec1f9d63ded64e18caed0a3692be5d4d6 /usr/local
parentdc2e5552a258a74355749b759359c0df5934c445 (diff)
downloadpfsense-d026178fa695f607f3b490978a9f4113fa7b111d.zip
pfsense-d026178fa695f607f3b490978a9f4113fa7b111d.tar.gz
Make sure we create / delete SPDs and SADs on secondary node when it changes on primary. Fixes #2303
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/xmlrpc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 19b9c80..1316322 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -39,6 +39,8 @@
require("config.inc");
require("functions.inc");
require("filter.inc");
+require("ipsec.inc");
+require("vpn.inc");
require("shaper.inc");
require("xmlrpc_server.inc");
require("xmlrpc.inc");
@@ -166,6 +168,8 @@ $restore_config_section_sig = array(
function restore_config_section_xmlrpc($raw_params) {
global $config, $xmlrpc_g;
+ $old_config = $config;
+
if (xmlrpc_loop_detect())
log_error("Disallowing CARP sync loop");
@@ -270,6 +274,11 @@ function restore_config_section_xmlrpc($raw_params) {
interface_proxyarp_configure();
}
+ if (isset($old_config['ipsec']['enable']) !== isset($config['ipsec']['enable']))
+ vpn_ipsec_configure();
+
+ unset($old_config);
+
return $xmlrpc_g['return']['true'];
}
OpenPOWER on IntegriCloud