mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
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
This commit is contained in:
parent
25f9c31238
commit
15acbad935
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user