Comment by aaronmdjones
1 year ago
# setup a 8020 MTU on wg0 interface to account for the 80 bytes wireguard headers overhead
# 20-byte IPv4 header or 40 byte IPv6 header, 8-byte UDP header 4-byte type, 4-byte key index, 8-byte nonce, 16-byte authentication tag)
/sbin/ip li set dev wg0 mtu 8020
Shouldn't that be 8920? To go with the 9000 byte MTU on the outer interface above it.
That would probably add only a smidge more performance.
Sure, but the comment block says that they arrived at 8020 by subtracting 80 from 9000, which is just wrong.