diff options
author | keramida <keramida@FreeBSD.org> | 2007-04-10 16:42:14 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2007-04-10 16:42:14 +0000 |
commit | 9de00d802e8f251b8cc85316e0b13c89ca7b283b (patch) | |
tree | 661a7cc9dd4e0dd6ed1d68988851413c696de539 /etc/rc.d | |
parent | 922d6e13fa2f0f3f7fdb5aa9e7c14de9aa802970 (diff) | |
download | FreeBSD-src-9de00d802e8f251b8cc85316e0b13c89ca7b283b.zip FreeBSD-src-9de00d802e8f251b8cc85316e0b13c89ca7b283b.tar.gz |
Add a pfsync_syncpeer option to /etc/defaults/rc.conf and rc.conf(5),
which can be used to turn off multicast pfsync support, and enable
the transmission of directed PFSYNC (IP protocol: 240) packets to
a specific "sync peer" host.
PR: conf/111225
Submitted by: Bas van Beek <bas@tobin.nl>
Approved by: mtm, mlaier
MFC after: 2 weeks
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/pfsync | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/pfsync b/etc/rc.d/pfsync index 72a22b5..8be8928 100644 --- a/etc/rc.d/pfsync +++ b/etc/rc.d/pfsync @@ -36,8 +36,13 @@ pfsync_prestart() pfsync_start() { + local _syncpeer + echo "Enabling pfsync." - ifconfig pfsync0 syncdev $pfsync_syncdev $pfsync_ifconfig up + if [ -n "${pfsync_syncpeer}" ]; then + _syncpeer="syncpeer ${pfsync_syncpeer}" + fi + ifconfig pfsync0 $_syncpeer syncdev $pfsync_syncdev $pfsync_ifconfig up } pfsync_stop() |