From 15acbad935feff843b201b3379c744173a588441 Mon Sep 17 00:00:00 2001 From: Giulio Cervera Date: Mon, 27 Aug 2018 15:11:15 +0200 Subject: [PATCH] interfaces: get pfsync0 mtu from real interface in some situation, like OpenStack, mtu is less then default (1500) and it cause replication issue we have noticed on a low used firewall with 2/3k State table size more then 100k State table size on the backup server copy mtu from real interface fix this issue --- src/etc/inc/interfaces.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index c7ddee158..5a6338262 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1525,6 +1525,8 @@ function interfaces_carp_setup($verbose = false) { global $config; + $intf_stats = legacy_interfaces_details(); + if ($verbose) { echo 'Configuring CARP settings...'; flush(); @@ -1542,6 +1544,7 @@ function interfaces_carp_setup($verbose = false) } mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} {$syncpeer} up", false); + mwexec("/sbin/ifconfig pfsync0 mtu {$intf_stats[$carp_sync_int]['mtu']}", false); } else { mwexec("/sbin/ifconfig pfsync0 -syncdev -syncpeer down", false); }