Hello, I have a pair of firewalls with PF and pfsync(4) bulk update always fail here, but the live synchronization works fine. As far I can see with tcpdump, pfsync does not send anything on the syncdev interface when doing a "service pfsync start" or "service pfsync restart". Log: kernel: carp: demoted by 0 to 0 (pfsync bulk start) kernel: pfsync: requesting bulk update kernel: carp: demoted by 0 to 0 (pfsync bulk fail) kernel: pfsync: failed to receive bulk update But when doing *twice* the command "service pfsync start", the bulk update is successful and the PF states are well transmitted from the pfsync peer. Log: kernel: carp: demoted by 0 to 0 (pfsync bulk start) kernel: pfsync: requesting bulk update kernel: pfsync: requesting bulk update kernel: pfsync: requesting bulk update kernel: pfsync: received bulk update start kernel: pfsync: received bulk update start kernel: carp: demoted by 0 to 0 (pfsync bulk done) kernel: pfsync: received valid bulk update end ---- Uname: FreeBSD fucop2.univ-rennes1.fr 10.3-STABLE FreeBSD 10.3-STABLE #3 r302560: Mon Jul 11 09:51:42 CEST 2016 adminsys@vmfucop.univ-rennes1.fr:/usr/obj/usr/src/sys/FUCOP amd64 Config ------ Interface ix1 is skipped in pf.conf and I've tried without syncpeer but this does not change anything. On firewall 1 ------------- pfsync_enable="YES" pfsync_syncdev="ix1" pfsync_syncpeer="192.168.255.254" # ix1 : pfsync ifconfig_ix1="inet 192.168.255.253/30 -tso -lro -vlanhwtso description PF_SYNC" On firewall 2 ------------- pfsync_enable="YES" pfsync_syncdev="ix1" pfsync_syncpeer="192.168.255.253" # ix1 : pfsync ifconfig_ix1="inet 192.168.255.254/30 -tso -lro -vlanhwtso description PF_SYNC" Thanks, regards.
Hello, My firewalls are now in production and it appears that with a lot of states (~600 000 here). The pfsync bulk works fine just using /etc/rc.d/pfsync. So there is something wrong when the number of states is low or very low. Regards,
Hello, We have tracked down this problem to a misworking fiber on the pfsync physical link. So I think we can close this PR. Sorry for the noise, best regards.
Closed as per comment #2