6in4 6to4 6rd 都依靠 41 协议, 也就是 proto 41 而不是什么 tcp/udp 端口.这里给出一个用来测试 NAT 是否转发 41 协议的办法.

在 NAT 内:

sudo hping3 -0 ipaddr -H 41 -d 10    // 将 ipaddr 替换为你在 NAT 外的主机

在 NAT 外:

tcpdump -i eth0 ip proto 41    // 将 eth0 替换为你用来上网的 interface

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.