Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

napt66能否添加支持? #40

Open
a76yyyy opened this issue Mar 19, 2022 · 1 comment
Open

napt66能否添加支持? #40

a76yyyy opened this issue Mar 19, 2022 · 1 comment

Comments

@a76yyyy
Copy link

a76yyyy commented Mar 19, 2022

napt66能否添加支持?

@yoyocat
Copy link

yoyocat commented Sep 3, 2022

如果用作二级路由,在不使用napt66情况下,可以通过如下设置使用IPv6。

一、IPv6设置

高级设置—WAN—IPv6设置中除网络连接类型外,全部按照下图设置
image

二、网桥转发脚本

1.查看wan端口的网卡名
主要用ifconfig在路由器控制台里看,一般以eth开头,找到wan口的IP就行(下图即为eth1)(获取到IPV6地址的网卡)
image

2.设置启动脚本
在“路由器启动后执行”中加入如下代码

#启动ipv6网络
modprobe ip6table_mangle
ebtables -t broute -A BROUTING -p ! ipv6 -j DROP -i wan端口的网卡名
brctl addif br0 wan端口的网卡名

image

3.防火墙规则
在“防火墙规则启动后执行”中添加:

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

注意:上述规则直接开放所有IPv6端口

三、重启路由器

参考来源:https://blog.suysker.xyz/archives/34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants