mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +02:00
IPsec: Disable XFRM policy lookup for VTI devices
This speeds up throughput slightly Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -228,6 +228,11 @@ main() {
|
||||
ip addr flush dev "${intf}"
|
||||
ip addr add "${interface_address}" dev "${intf}"
|
||||
|
||||
# Disable IPsec policy lookup for VTI
|
||||
if [ "${interface_mode}" = "vti" ]; then
|
||||
sysctl -qw "net.ipv4.conf.${intf}.disable_policy=1"
|
||||
fi
|
||||
|
||||
# Set MTU
|
||||
ip link set dev "${intf}" mtu "${interface_mtu}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user