Revision 51a6bf4f
Added by Scott Ullrich over 18 years ago
etc/inc/interfaces.inc | ||
---|---|---|
379 | 379 |
$pfsyncenabled = $carp['pfsyncenabled']; |
380 | 380 |
$balanacing = $carp['balancing']; |
381 | 381 |
$pfsyncinterface = $carp['pfsyncinterface']; |
382 |
$pfsyncpeerip = $carp['pfsyncpeerip']; |
|
382 | 383 |
} |
383 | 384 |
} else { |
384 | 385 |
unset($pfsyncinterface); |
... | ... | |
402 | 403 |
exec("/sbin/pfctl -f /tmp/rules.boot"); |
403 | 404 |
} |
404 | 405 |
/* setup pfsync interface */ |
405 |
if($carp_sync_int and $pfsyncenabled) |
|
406 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} up"); |
|
407 |
else |
|
406 |
if($carp_sync_int and $pfsyncenabled) { |
|
407 |
if($pfsyncpeerip) { |
|
408 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} syncpeer {$pfsyncpeerip} up"); |
|
409 |
} else { |
|
410 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} up"); |
|
411 |
} |
|
412 |
} else { |
|
408 | 413 |
mwexec("/sbin/ifconfig pfsync0 syncdev lo0 up"); |
414 |
} |
|
409 | 415 |
$fd = fopen("/tmp/carp.sh", "w"); |
410 | 416 |
if($config['virtualip']['vip']) { |
411 | 417 |
$viparr = &$config['virtualip']['vip']; |
usr/local/pkg/carp_settings.xml | ||
---|---|---|
68 | 68 |
<br><b>NOTE:</b> You must have an IP assigned to the interface on any participating sync nodes. |
69 | 69 |
</description> |
70 | 70 |
</field> |
71 |
<field> |
|
72 |
<fielddescr>pfSync sync peer IP</fielddescr> |
|
73 |
<fieldname>pfsyncpeerip</fieldname> |
|
74 |
<type>input</type> |
|
75 |
<description> |
|
76 |
Setting this option will force pfSync to synchronize its stable tables to this IP address. The default is directed multicast. |
|
77 |
</description> |
|
78 |
</field> |
|
71 | 79 |
<field> |
72 | 80 |
<fielddescr>Synchronize rules</fielddescr> |
73 | 81 |
<fieldname>synchronizerules</fieldname> |
Also available in: Unified diff
Use pfSync SYNCPEER directive if defined.
Ticket #1317