summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-22 09:34:23 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-22 09:34:23 -0300
commitb32ea59d5a45b86beee73d416462c01d1ac915ec (patch)
tree48d932cc4416a64c5be87815d1d0913dad8b15bf /etc/inc
parent2ead5ea7deeb11abb7c4c81874baee1faa5afd2e (diff)
downloadpfsense-b32ea59d5a45b86beee73d416462c01d1ac915ec.zip
pfsense-b32ea59d5a45b86beee73d416462c01d1ac915ec.tar.gz
Fixes on HA setup:
- Configure pfsync when configuration is changed - Disable pfsync when it's disabled on GUI - Remove syncpeer and back it to default multicast address when it's removed from conf Fixes #2491
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 58066a2..9eeb6c5 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1858,7 +1858,7 @@ function interfaces_carp_setup() {
if (is_ipaddr($pfsyncpeerip))
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} syncpeer {$pfsyncpeerip} up", false);
else
- mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} up", false);
+ mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} -syncpeer up", false);
sleep(1);
@@ -1873,6 +1873,8 @@ function interfaces_carp_setup() {
}
log_error("pfsync done in $i seconds.");
log_error("Configuring CARP settings finalize...");
+ } else {
+ mwexec("/sbin/ifconfig pfsync0 -syncdev -syncpeer", false);
}
if($config['virtualip']['vip'])
OpenPOWER on IntegriCloud