请教一下这个 er-x 路由器怎么指定某一个设备可以获取 ipv6

105 天前
 XGG0639
设备 er-x 1.10.11
V6 我是用来看直播的
但是自建节点只有 ipv4,设备开启 v6 后,奈飞看不了,有的网站还翻不过去。
请教大哥们怎么解决一下,谢谢啦
1273 次点击
所在节点    宽带症候群
15 条回复
Puteulanus
104 天前
可以关掉 IPv6 的域名解析试试,IPv6 的直播源里一般是写死的 IP ,域名不解析 v6 访问网站就不会走 v6 了
pagxir
104 天前
改 DNS 就可以了,不用关 v6, 并且不行的话,还可以用 sni 的(就是那个域名探测)。
guiys
104 天前
可以给软路由上 adguardhome ,针对域名禁用 ipv6 解析,这样某些网站也能顺利打开了(比如 mega ,日亚)
||example.org^$dnstype= AAAA:拦截对 example.org 的 IPv6 地址的 DNS 查询。
||example.org^$dnstype=~A|~CNAME:只允许 A 和 CNAME 对 example.org 进行 DNS 查询 ,拦截其余部分。
bsder
104 天前
erx 设置 IPv6 时候可以不获取 ipv6dns ,使用本地 dns 过滤|丢弃 aaaa 和 type65 解析。
bsder
104 天前
使用 apple 设备要特别注意 type65 解析的问题。
haodingzan
104 天前
@guiys #3 你的回复倒是顺便解决了我的一个问题:有些网站风控做的烂,用 IPv6 访问网页版频繁的弹验证码,早就想让这些网站只走 IPv4 了
Puteulanus
104 天前
@bsder type65 怎么说,会有什么影响吗
ranaanna
104 天前
为什么不升级到 2.0 ?
如果用图形界面,可以 config trees > interfaces > switch > switch0 > ipv6 > router advert > radvd options 添加 clients{xxx;}; ,其中 xxx 是想要分配 ipv6 的设备的本地链路地址,用分号分隔,}外的分号不能省。这样就只有指定的设备可以获得 ipv6
bsder
104 天前
@Puteulanus apple 设备会同时发起 a 和 aaaa 和 type65 查询,优先使用 type65 查询结果,也就是如果你 type65 记录里指定了 ipv6 地址,那你还是会优先使用 ipv6 地址
bsder
104 天前
@ranaanna 请问使用 slaac 分配 ipv6 地址的话这样设置有效吗?
ranaanna
104 天前
@bsder 有效,但不在 clients 列表中的地址将不会 slaac
ozOGen
103 天前
ipv6-PD 里打开 no-dns ,
XGG0639
56 天前
@ranaanna 抱歉,我按照你的方式尝试了,它提示我有错误!
Re-generating radvd config file for interface switch0...<br />Starting radvd... Starting radvd: /etc/radvd.conf:19 error: syntax error, unexpected STRING, expecting IPV6ADDR [Mar 15 20:47:36] radvd (16956): exiting, failed to read config file failed. interfaces switch switch0 ipv6 router-advert

下面是提示我错误后的 radvd.conf
interface switch0 {
# This section was automatically generated by the Vyatta
# configuration sub-system. Do not edit it.
#
# Generated by root on Fri Mar 15 20:39:40 2024
#
IgnoreIfMissing on;
AdvSendAdvert on;
AdvOtherConfigFlag off;
AdvDefaultLifetime 1800;
AdvLinkMTU 0;
AdvCurHopLimit 64;
AdvReachableTime 0;
MaxRtrAdvInterval 600;
MinRtrAdvInterval 198;
AdvDefaultPreference medium;
AdvRetransTimer 0;
AdvManagedFlag off;
clients{fe80::5e9:f42b:d836:4626%6};
};
ranaanna
56 天前
@XGG0639 是 clients{fe80::5e9:f42b:d836:4626;};
似乎还需要有 prefix ::/64 { }?当然,也有可能缺省也可?
prefix ::/64 {
AdvPreferredLifetime 300;
AdvAutonomous on;
AdvValidLifetime 1800;
AdvOnLink on;
};
XGG0639
55 天前
@ranaanna 谢谢,搞定啦

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1012029

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX