這是本文件的舊版!
UniFi
Fix Wireguard MTU
root:~# cat /data/scripts/change-wg-mtu.sh #/bin/bash iptables -t mangle -A UBIOS_FORWARD_TCPMSS -o wgclt1 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu iptables -t mangle -A UBIOS_FORWARD_TCPMSS -i wgclt1 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu iptables -t mangle -A UBIOS_OUTPUT_TCPMSS -o wgclt1 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu iptables -t mangle -A UBIOS_FORWARD_TCPMSS -o wgclt1 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu root:~# cat /etc/cron.d/wgmtu # custom * * * * * root /data/scripts/change-wg-mtu.sh