From 3c550d697148b68190929ec86ef31cc4240c39b0 Mon Sep 17 00:00:00 2001 From: BBcan177 Date: Sat, 20 Dec 2014 21:25:31 -0500 Subject: Mods to sync_xml file Changes as per the previous commit for XMLRPC sync. --- config/pfblockerng/pfblockerng_sync.xml | 98 +++++++++++++++++++++++++-------- 1 file changed, 75 insertions(+), 23 deletions(-) (limited to 'config/pfblockerng/pfblockerng_sync.xml') diff --git a/config/pfblockerng/pfblockerng_sync.xml b/config/pfblockerng/pfblockerng_sync.xml index c5777dcf..34a6ba56 100644 --- a/config/pfblockerng/pfblockerng_sync.xml +++ b/config/pfblockerng/pfblockerng_sync.xml @@ -123,7 +123,7 @@ - pfBlockerNG XMLRPC Sync + pfBlockerNG XMLRPC Sync Settings listtopic @@ -134,35 +134,87 @@ info - Automatically sync pfBlockerNG configuration changes - synconchanges - Automatically sync changes to the hosts defined below. + Enable Sync + varsynconchanges +
+ Important: While using "Sync to hosts defined below", only sync from host A to B, A to C +
but do not enable XMLRPC sync to A. This will result in a loop!]]> +
+ select + + disabled + + + + + +
+ + XMLRPC Timeout + varsynctimeout + + input + 150 + 5 + + + + syncinterfaces + When selected, the 'General' Tab Customizations will not be sync'd checkbox - Remote Server + pfBlockerNG XMLRPC Replication Targets + listtopic + + + Replication Targets none rowhelper - - IP Address - ipaddress - IP Address of remote server - input - 20 - - - Password - password - Password for remote server. - password - 20 - + + Enable + varsyncdestinenable + + checkbox + + + Protocol + varsyncprotocol + http or https]]> + select + HTTP + + + + + + + IP-Address + varsyncipaddress + + input + 15 + + + Port + varsyncport + + input + 3 + + + Admin Password + varsyncpassword + + password + 20 + Click to SAVE Settings and/or Rule Edits.       Changes are Applied via CRON or - 'Force Update']]> + 'Force Update']]> listtopic
@@ -176,8 +228,8 @@ pfblockerng_validate_input($_POST, $input_errors); - global $pfb; - $pfb['save'] = TRUE; - sync_package_pfblockerng(); + require_once("/usr/local/pkg/pfblockerng/pfblockerng.inc"); + write_config("[pfBlockerNG] XMLRPC sync configurations saved."); + pfblockerng_sync_on_changes(); \ No newline at end of file -- cgit v1.2.3