3 ms·
# 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
by aaronmdjones 2y 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.
- bb88 2y agoThat would probably add only a smidge more performance.
- aaronmdjones 2y agoSure, but the comment block says that they arrived at 8020 by subtracting 80 from 9000, which is just wrong.