carpsettings
0.1.0
Services: CARP Settings
['installedpackages']['carpsettings']['config']
pkg_edit.php?xml=carp_settings.xml&id=0
Virtual IPs
firewall_virtual_ip.php
CARP Settings
pkg_edit.php?xml=carp_settings.xml&id=0
PFSync Enabled
pfsyncenabled
PFSync IP
pfsyncip
PFSync Interface
pfsyncinterface
State Synchronization Settings (pfsync)
listtopic
Synchronize States
pfsyncenabled
pfsync transfers state insertion, update, and deletion messages between firewalls. Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (IP Protocol 240). It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.
<p>
This setting should be enabled on all members of a failover group.
<p>
NOTE: Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)
checkbox
Synchronize Interface
pfsyncinterface
interfaces_selection
If Synchronize States is enabled, it will utilize this interface for communication.
<br><b>NOTE:</b> We recommend setting this to a interface other than LAN! A dedicated interface works the best.
<br><b>NOTE:</b> You must define a IP on each machine participating in this failover group.
<br><b>NOTE:</b> You must have an IP assigned to the interface on any participating sync nodes.
pfsync Synchronize Peer IP
pfsyncpeerip
input
Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast.
Configuration Synchronization Settings (XMLRPC Sync)
listtopic
Synchronize Config to IP
synchronizetoip
Enter the IP address of the firewall to which the selected configuration sections should be synchronized.
<br><br>NOTE: XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!
<br><br>NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
input
Remote System Username
username
admin
Enter the webConfigurator username of the system entered above for synchronizing your configuration.
<br><br>NOTE: <b>Do not use the Synchronize Config to IP and username option on backup cluster members!</b>
input
Remote System Password
password
Enter the webConfigurator password of the system entered above for synchronizing your configuration.
<br><br>NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
password
Synchronize Users and Groups
synchronizeusers
When this option is enabled, this system will automatically sync the users and groups over to the other CARP host when changes are made.
checkbox
Synchronize Certificates
synchronizecerts
When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other CARP host when changes are made.
checkbox
Synchronize rules
synchronizerules
When this option is enabled, this system will automatically sync the firewall rules to the other CARP host when changes are made..
checkbox
Synchronize Firewall Schedules
synchronizeschedules
When this option is enabled, this system will automatically sync the firewall schedules to the other CARP host when changes are made.
checkbox
Synchronize aliases
synchronizealiases
When this option is enabled, this system will automatically sync the aliases over to the other CARP host when changes are made.
checkbox
Synchronize NAT
synchronizenat
When this option is enabled, this system will automatically sync the NAT rules over to the other CARP host when changes are made.
checkbox
Synchronize IPsec
synchronizeipsec
When this option is enabled, this system will automatically sync the IPsec configuration to the other CARP host when changes are made.
checkbox
Synchronize OpenVPN
synchronizeopenvpn
When this option is enabled, this system will automatically sync the OpenVPN configuration to the other CARP host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN.
checkbox
Synchronize DHCPD
synchronizedhcpd
When this option is enabled, this system will automatically sync the DHCP Server settings over to the other carp host when changes are made.
checkbox
Synchronize Wake on LAN
synchronizewol
When this option is enabled, this system will automatically sync the WoL configuration to the other CARP host when changes are made.
checkbox
Synchronize Static Routes
synchronizestaticroutes
When this option is enabled, this system will automatically sync the Static Route configuration to the other CARP host when changes are made.
checkbox
Synchronize Load Balancer
synchronizelb
When this option is enabled, this system will automatically sync the Load Balancer configuration to the other CARP host when changes are made.
checkbox
Synchronize Virtual IPs
synchronizevirtualip
When this option is enabled, this system will automatically sync the CARP Virtual IPs to the other CARP host when changes are made.
checkbox
Synchronize traffic shaper(queues)
synchronizetrafficshaper
When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other CARP host when changes are made.
checkbox
Synchronize traffic shaper(limiter)
synchronizetrafficshaperlimiter
When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other CARP host when changes are made.
checkbox
Synchronize traffic shaper(layer7)
synchronizetrafficshaperlayer7
When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other CARP host when changes are made.
checkbox
Synchronize DNS Forwarder
synchronizednsforwarder
When this option is enabled, this system will automatically sync the DNS Forwarder configuration to the other CARP host when changes are made.
checkbox
Synchronize Captive Portal
synchronizecaptiveportal
When this option is enabled, this system will automatically sync the Captive Portal configuration to the other CARP host when changes are made.
checkbox
if($_POST["synchronizetoip"]) {
if(!is_ipaddr($_POST["synchronizetoip"]))
$input_errors[] = "You must specify a valid IP address.";
$ifdescrs = get_configured_interface_list();
foreach($ifdescrs as $descr)
if(get_interface_ip($descr) == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall IP! You cannot specify this firewalls IP in this location.";
if($config['virtualip']['vip']) {
foreach($config['virtualip']['vip'] as $vip) {
if($vip['subnet'] == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall IP! You cannot specify this firewalls IP in this location.";
}
}
}
/* setup carp interfaces */
interfaces_carp_setup();
/* force a filter configure for syncing */
filter_configure();