hosea1008
7/18/2018 - 5:26 AM

Pandorabox 19.09 ipv6 NAT 设置

Pandorabox 19.09 ipv6 NAT 设置

参考

http://blog.sina.com.cn/s/blog_6566538d0102wkx1.html

https://www.jianshu.com/p/eb07eaac6167

实现

OpenWrt / LEDE / PandoraBox + ipv6 nat 参考:

http://blog.csdn.net/cod1ng/article/details/45421025

注意在 ip6tables -t nat -A POSTROUTING -o eth0.2 -j MASQUERADE中,eth0.2要改成你自己的网卡名 如果路由器自身能获取到ipv6地址却无法ping通外网(permission denied)ipv6(多半是PandoraBox),请尝试如下操作:

uci set network.wan6.sourcefilter=0
uci commit network
ifup wan6

另外,如果按照上文配置后内网机器能Ping通ipv6但是无法上网,可能是因为ip6tables阻断,需要关闭ip6tables

ip6tables -F
ip6tables -P INPUT ACCEPT
ip6tables -P FORWARD ACCEPT
ip6tables -P OUTPUT ACCEPT

以上方法不稳定,频繁掉线

https://www.cnblogs.com/jsp1256/p/7599686.html

稳定方案

https://tang.su/2017/03/openwrt-ipv6-nat/

https://blog.csdn.net/royal690510604/article/details/77606550