Bug #2995
closedUnsetting the pfsync synchronize IP doesn't properly set it back to directed multicast
0%
Description
Expected: Leaving the "pfsync Synchronize Peer IP" box empty should set up pfsync to use directed multicast.
Actual: If clearing the "pfsync Synchronize Peer IP" setting after it had been set already, it will still use the old value until a reboot.
Workaround 1: Manually enter 224.0.0.240 into the "pfsync Synchronize Peer IP" to enable directed multicast.
Workaround 2: Execute the command "ifconfig pfsync0 -syncpeer".
Workaround 3: Reboot and let the startup scripts configure it correctly.
Affected versions: I have only tested this on 2.0.3.
Patch:
--- /etc/inc/interfaces.inc.orig 2013-05-16 13:47:13.000000000 0200
++ /etc/inc/interfaces.inc 2013-05-16 13:48:02.000000000 0200@ -1666,7 +1666,7
@
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);
Files