summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-22 09:34:23 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-05-16 09:35:52 -0400
commit92b27ea16b91c7fa91b8b4d420b7597801c0a889 (patch)
treeeb12a71cdd03dacb01616e474516761b211a4392 /etc/inc/interfaces.inc
parent459b5317da7c13ef51011f1709a706075e2b8618 (diff)
downloadpfsense-92b27ea16b91c7fa91b8b4d420b7597801c0a889.zip
pfsense-92b27ea16b91c7fa91b8b4d420b7597801c0a889.tar.gz
Fixes on HA setup:
- 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/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 27f1158..1f6b061 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1666,7 +1666,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);
@@ -1678,6 +1678,10 @@ function interfaces_carp_setup() {
$i++;
sleep(1);
}
+ 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