strongswan/conf/plugins/kernel-pfroute.opt
Tobias Brunner f4bfdec21f kernel-pfroute: Set lower MTU on TUN devices
The default MTU of 1500 is too high if kernel-libipsec is used (considering
the overhead of UDP-encapsulated ESP), but might also have an effect if
a TUN device is only used to install a virtual IP (the route points to it,
so the system might use its MTU and 1500 would still be too high).

This also works around an issue on macOS 12 where no RTM_IFINFO event
is sent for the newly created TUN device (neither for the creation,
setting it "up", nor adding the address).  Changing the MTU, however,
triggers such an event and we can detect the virtual IP.

Closes strongswan/strongswan#707
2021-11-09 09:43:01 +01:00

7 lines
221 B
Plaintext

charon.plugins.kernel-pfroute.mtu = 1400
MTU to set on TUN devices created for virtual IPs.
charon.plugins.kernel-pfroute.vip_wait = 1000
Time in ms to wait until virtual IP addresses appear/disappear before
failing.