言和 大佬有话说 :
openwrt配置旁路由终于弄好了
之前老是有奇怪的问题
记录一下,造福MJJ,主要是避免自己忘了
配置IPV6
设置lan接口,关掉全部和ipv6有关的
https://i3.wp.com/telegra.ph/file/b906f9a8dd11bb4ae977a.png
物理设置关掉桥接,选eth0
https://i0.wp.com/telegra.ph/file/4c47bde01501aa19eda5c.png
新建一个接口,lan6,协议选DHCPv6
https://i2.wp.com/telegra.ph/file/0d1b74ab7ec249af68c81.png
物理设置里也是关掉桥接选eth0,不截图了
这样基本上就有IPv6了
还有最重要的一点,作为旁路由,防火墙需要加一条iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
我没加的时候网络奇奇怪怪,不能访问百度之类的国内站,加了能用,要是用着没问题可以不加
https://i0.wp.com/telegra.ph/file/d7a08ec380901a975f44e.png
详情看恩山的这个帖子https://www.right.com.cn/forum/thread-2983767-1-1.html
https://i3.wp.com/telegra.ph/file/2a33dc6d053c8d752c54a.png
yi339999 大佬有话说 :
其实吧,V6用来连VPS还可以,用来访问网站就算了,最简单的方法是在openwrt下的dhcp里,把V6解析关掉。这样有V6,又不走V6访问网站
默契 大佬有话说 :
https://supes.top/?target=x86%2F64&id=generic这玩意一把梭了,刷进去插电即用。
言和 大佬有话说 :
默契 大佬有话说 : 2023-7-20 00:21
https://supes.top/?target=x86%2F64&id=generic这玩意一把梭了,刷进去插电即用。
不支持我的设备