#路由器自身开放端口 !!注意 IN对应的是dport OUT对应sport 一个是D一个是S
ip6tables -I INPUT -p tcp –dport 5000 -j ACCEPT
ip6tables -I OUTPUT -p tcp –sport 5000 -j ACCEPT
#路由器下级设备
ip6tables -I FORWARD -p tcp -d 240e:382:c302:6c00:XXXX:5f01 –dport 5000 -j ACCEPT
ip6tables -I FORWARD -p tcp -s 240e:382:c302:6c00:XXXX:5f01 –sport 5000 -j ACCEPT
或者
ip6tables -I FORWARD -p tcp –dport 5000 -j ACCEPT
ip6tables -I FORWARD -p tcp –sport 5000 -j ACCEPT