Thanks for the fix! With @ZebMcKayhan's hint about the required hashtags and one edit to wg_server I was able to make the "#MTU = 1400" directive work:I've pushed a HOTFIX (wg_server
script)
Update wg_server · MartineauUK/wireguard@8415641
CHANGE: Allow use of 'MTU =' in .conf to override 1420 default - SNB Forums member @bearnetgithub.com
Can you please test?
Upgrade using
then you should specifyCode:e = Exit Script [?] E:Option ==> uf dev
MTU = 1400
in .conf then restart the 'server' Peer
NOTE: I think you could also specify thePostUP = ip link %i set mtu 1400
directive in the .conf as perwg-quick
MTU=$(awk '/^#MTU/ {print $3}' ${CONFIG_DIR}${VPN_ID}.conf) # v4.15.5
The current dev code is missing the hashtag in the above line and thus doesn't read the value.