summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc4
-rw-r--r--usr/local/pkg/carp_settings.xml11
2 files changed, 12 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index ac9d210..feb9304 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2020,6 +2020,10 @@ function carp_sync_client() {
$sections_xml[] = new XML_RPC_Value(backup_config_section("shaper"), 'string');
$sections[] = new XML_RPC_Value('shaper', 'string');
}
+ if($carp['synchronizeipsec'] != "" and is_array($config['ipsec'])) {
+ $sections_xml[] = new XML_RPC_Value(backup_config_section("ipsec"), 'string');
+ $sections[] = new XML_RPC_Value('ipsec', 'string');
+ }
if(count($sections) > 0) {
carp_sync_xml($synchronizetoip, $carp['password'], $sections, $sections_xml);
$cli = new XML_RPC_Client('/xmlrpc.php', $synchronizetoip);
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index 3c1c215..22fac89 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -99,6 +99,12 @@
<type>checkbox</type>
</field>
<field>
+ <fielddescr>Synchronize ipsec</fielddescr>
+ <fieldname>synchronizeipsec</fieldname>
+ <description>When this option is enabled, this system will automatically sync the ipsec rules over to the other carp host when changes are made.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fielddescr>Synchronize traffic shaper</fielddescr>
<fieldname>synchronizetrafficshaper</fieldname>
<description>When this option is enabled, this system will automatically sync the traffic shaper rules over to the other carp host when changes are made.</description>
@@ -109,8 +115,7 @@
<fieldname>synchronizetoip</fieldname>
<description>Enter the IP address of the firewall you would like to synchronize your rules to.</description>
<type>input</type>
- <note>Note: CARP sync is currently only supported over http connections - make sure the remote system's
- WebGUI protocol is set to this!</note>
+ <note>Note: CARP sync is currently only supported over http connections - make sure the remote system's WebGUI protocol is set to this!</note>
</field>
<field>
<fielddescr>Remote System Password</fielddescr>
@@ -119,4 +124,4 @@
<type>password</type>
</field>
</fields>
-</packagegui>
+</packagegui> \ No newline at end of file
OpenPOWER on IntegriCloud