diff --git a/src/etc/inc/plugins.inc b/src/etc/inc/plugins.inc index 919987073..5e211ce6c 100644 --- a/src/etc/inc/plugins.inc +++ b/src/etc/inc/plugins.inc @@ -195,7 +195,7 @@ function plugins_xmlrpc_sync() if (!empty($helper['id']) && !empty($helper['section'])) { $sync_settings[$helper['id']] = $helper; if (empty($helper['help'])) { - $sync_settings[$helper['id']]['help'] = sprintf(gettext('Synchronize %s settings to backup'), $helper['description']); + $sync_settings[$helper['id']]['help'] = sprintf(gettext('Automatically synchronize the %s configuration to the other HA host when changes are made.'), $helper['description']); } unset($sync_settings[$helper['id']]['id']); } diff --git a/src/etc/inc/plugins.inc.d/ipfw.inc b/src/etc/inc/plugins.inc.d/ipfw.inc index 78e946a62..8f379ee39 100644 --- a/src/etc/inc/plugins.inc.d/ipfw.inc +++ b/src/etc/inc/plugins.inc.d/ipfw.inc @@ -48,3 +48,21 @@ function ipfw_services() return $services; } + +function ipfw_xmlrpc_sync() +{ + $result = array(); + + $result[] = array( + 'description' => gettext('Traffic Shaper'), + 'section' => 'OPNsense.TrafficShaper', + 'id' => 'shaper', + ); + $result[] = array( + 'description' => gettext('Captive Portal'), + 'section' => 'OPNsense.captiveportal', + 'id' => 'captiveportal', + ); + + return $result; +} diff --git a/src/etc/rc.filter_synchronize b/src/etc/rc.filter_synchronize index 926923270..07a046ca0 100755 --- a/src/etc/rc.filter_synchronize +++ b/src/etc/rc.filter_synchronize @@ -292,8 +292,6 @@ if (isset($config['hasync']) && is_array($config['hasync'])) { $section_cnf['synchronizednsforwarder'] = 'dnsmasq'; $section_cnf['synchronizednsresolver'] = 'unbound'; $section_cnf['synchronizeschedules'] = 'schedules'; - $section_cnf['synchronizeshaper'] = 'OPNsense.TrafficShaper'; - $section_cnf['synchronizecaptiveportal'] = 'OPNsense.captiveportal'; if (function_exists('plugins_xmlrpc_sync')) { foreach (plugins_xmlrpc_sync() as $syncid => $syncconf) { diff --git a/src/www/system_hasync.php b/src/www/system_hasync.php index 17ddc5bd7..cce32ce38 100644 --- a/src/www/system_hasync.php +++ b/src/www/system_hasync.php @@ -35,11 +35,24 @@ if (!isset($config['hasync']) || !is_array($config['hasync'])) { } $a_hasync = &$config['hasync']; -$checkbox_names = array('pfsyncenabled', 'synchronizeusers', 'synchronizeauthservers', 'synchronizecerts', - 'synchronizerules', 'synchronizeschedules', 'synchronizealiases', 'synchronizenat', - 'synchronizeipsec', 'synchronizeopenvpn', 'synchronizedhcpd', 'synchronizewol', - 'synchronizestaticroutes', 'synchronizelb', 'synchronizevirtualip', - 'synchronizednsforwarder','synchronizednsresolver', 'synchronizeshaper', 'synchronizecaptiveportal' +$checkbox_names = array( + 'pfsyncenabled', + 'synchronizealiases', + 'synchronizeauthservers', + 'synchronizecerts', + 'synchronizedhcpd', + 'synchronizednsforwarder', + 'synchronizednsresolver', + 'synchronizeipsec', + 'synchronizelb', + 'synchronizenat', + 'synchronizeopenvpn', + 'synchronizerules', + 'synchronizeschedules', + 'synchronizestaticroutes', + 'synchronizeusers', + 'synchronizevirtualip', + 'synchronizewol', ); $syncplugins = array(); @@ -346,24 +359,6 @@ include("head.inc"); - - - - /> - - - - - - - /> - - - $synccnf):?>