V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
XGG0639
V2EX  ›  宽带症候群

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

  •  
  •   XGG0639 · 91 天前 · 1246 次点击
    这是一个创建于 91 天前的主题,其中的信息可能已经有所发展或是发生改变。
    设备 er-x 1.10.11
    V6 我是用来看直播的
    但是自建节点只有 ipv4,设备开启 v6 后,奈飞看不了,有的网站还翻不过去。
    请教大哥们怎么解决一下,谢谢啦
    15 条回复    2024-03-17 00:28:24 +08:00
    Puteulanus
        1
    Puteulanus  
       91 天前
    可以关掉 IPv6 的域名解析试试,IPv6 的直播源里一般是写死的 IP ,域名不解析 v6 访问网站就不会走 v6 了
    pagxir
        2
    pagxir  
       91 天前
    改 DNS 就可以了,不用关 v6, 并且不行的话,还可以用 sni 的(就是那个域名探测)。
    guiys
        3
    guiys  
       91 天前 via iPhone   ❤️ 1
    可以给软路由上 adguardhome ,针对域名禁用 ipv6 解析,这样某些网站也能顺利打开了(比如 mega ,日亚)
    ||example.org^$dnstype= AAAA:拦截对 example.org 的 IPv6 地址的 DNS 查询。
    ||example.org^$dnstype=~A|~CNAME:只允许 A 和 CNAME 对 example.org 进行 DNS 查询 ,拦截其余部分。
    bsder
        4
    bsder  
       91 天前 via iPhone
    erx 设置 IPv6 时候可以不获取 ipv6dns ,使用本地 dns 过滤|丢弃 aaaa 和 type65 解析。
    bsder
        5
    bsder  
       91 天前 via iPhone
    使用 apple 设备要特别注意 type65 解析的问题。
    haodingzan
        6
    haodingzan  
       91 天前
    @guiys #3 你的回复倒是顺便解决了我的一个问题:有些网站风控做的烂,用 IPv6 访问网页版频繁的弹验证码,早就想让这些网站只走 IPv4 了
    Puteulanus
        7
    Puteulanus  
       91 天前
    @bsder type65 怎么说,会有什么影响吗
    ranaanna
        8
    ranaanna  
       91 天前 via iPhone
    为什么不升级到 2.0 ?
    如果用图形界面,可以 config trees > interfaces > switch > switch0 > ipv6 > router advert > radvd options 添加 clients{xxx;}; ,其中 xxx 是想要分配 ipv6 的设备的本地链路地址,用分号分隔,}外的分号不能省。这样就只有指定的设备可以获得 ipv6
    bsder
        9
    bsder  
       91 天前 via iPhone   ❤️ 1
    @Puteulanus apple 设备会同时发起 a 和 aaaa 和 type65 查询,优先使用 type65 查询结果,也就是如果你 type65 记录里指定了 ipv6 地址,那你还是会优先使用 ipv6 地址
    bsder
        10
    bsder  
       91 天前 via iPhone
    @ranaanna 请问使用 slaac 分配 ipv6 地址的话这样设置有效吗?
    ranaanna
        11
    ranaanna  
       91 天前 via iPhone
    @bsder 有效,但不在 clients 列表中的地址将不会 slaac
    ozOGen
        12
    ozOGen  
       89 天前
    ipv6-PD 里打开 no-dns ,
    XGG0639
        13
    XGG0639  
    OP
       43 天前
    @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
        14
    ranaanna  
       43 天前 via iPhone
    @XGG0639 是 clients{fe80::5e9:f42b:d836:4626;};
    似乎还需要有 prefix ::/64 { }?当然,也有可能缺省也可?
    prefix ::/64 {
    AdvPreferredLifetime 300;
    AdvAutonomous on;
    AdvValidLifetime 1800;
    AdvOnLink on;
    };
    XGG0639
        15
    XGG0639  
    OP
       42 天前
    @ranaanna 谢谢,搞定啦
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5545 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:34 · PVG 11:34 · LAX 20:34 · JFK 23:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.