diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-02-22 09:34:23 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-05-16 09:35:52 -0400 |
commit | 92b27ea16b91c7fa91b8b4d420b7597801c0a889 (patch) | |
tree | eb12a71cdd03dacb01616e474516761b211a4392 | |
parent | 459b5317da7c13ef51011f1709a706075e2b8618 (diff) | |
download | pfsense-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
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
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']) |