对于上下文
141.95.xxx.88
= OVH 节点
5.9.xxx.130
= Hetzner 节点
164.132.xxx.0/28
= OVH IP 块(GRE 到 Hetzner)
Hetzner GRE 设置:
ip tunnel add gre2 mode gre remote 141.95.xxx.88 local 5.9.xxx.130 ttl 255
ip link set gre2 up
ip route add default dev gre2 src 164.132.xxx.1 table 667
ip rule add from 164.132.xxx.0/28 table 667
ip route add 164.132.xxx.0/28 dev vmbr1 table 667
iptables -t mangle -A PREROUTING -i gre2 -j MARK --set-mark 667
ip rule add fwmark 667 lookup 667
网络配置:
auto vmbr1
iface vmbr1 inet static
address 164.132.xxx.1/32
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add 164.132.xxx.2/32 dev vmbr1
GRE 配置:
ip tunnel add gre2 mode gre remote 5.9.xxx.130 local 141.95.xxx.88 ttl 255
ip link set gre2 up
ip route add 164.132.xxx.0/28 dev gre2
sudo iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
网络配置:
auto eth0
iface eth0 inet static
address 141.95.xxx.88/27
gateway 141.95.187.94
netmask 255.0.0.0
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
目前,我可以达到的 MTU 测试最高值为 1472 MTU
我如何将其设置为 1500。接口(OVH 端)确实支持巨型帧 9000 MTU