Open qweaszxcdf opened 2 months ago
OpenWrt 并没有给本机配置 IPv6 路由,你还需要手动指定 IP 地址: https://sing-box.sagernet.org/configuration/shared/dial/#inet6_bind_address
手动指定ip后确实可以访问了,但如果是没配置路由的话,那么指定telecom和unicom后应该都是network is unreachable,而现在telecom不指定ip也能访问。从日志上看,初始化的时候获取了pppoe-wan接口对应的ip(?),bind_interface自动获取并设置出口ip是否更合理?
发送你的这条命令的结果:
ip route get 2606:4700:4700::1111
root@OpenWrt:~# ip -6 route get 2606:4700:4700::1111 RTNETLINK answers: Network unreachable
你能再提供命令 ip addr
的结果吗?
root@OpenWrt:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host proto kernel_lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP group default qlen 1000
link/ether bc:24:11:*** brd ff:ff:ff:ff:ff:ff
3: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100
link/void
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:e2:69:*** brd ff:ff:ff:ff:ff:ff
inet6 fe80::2e2:***/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP group default qlen 1000
link/ether 00:e2:69:*** brd ff:ff:ff:ff:ff:ff
6: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP group default qlen 1000
link/ether 00:e2:69:*** brd ff:ff:ff:ff:ff:ff
9: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:*** brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 240e:388:c501:***/60 scope global dynamic noprefixroute
valid_lft 2972sec preferred_lft 2972sec
inet6 2408:820c:d02c:***/60 scope global dynamic noprefixroute
valid_lft 256770sec preferred_lft 170370sec
inet6 240e:388:c508:***/60 scope global deprecated dynamic
valid_lft 608sec preferred_lft 0sec
inet6 2408:820c:d02c:***/60 scope global deprecated dynamic
valid_lft 4762sec preferred_lft 0sec
inet6 2408:820c:d02c:***/60 scope global deprecated dynamic
valid_lft 3975sec preferred_lft 0sec
inet6 fd9e:3006:b245::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:***/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
12: iptv85: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:e2:69:*** brd ff:ff:ff:ff:ff:ff
inet 23.246.87.229/17 brd 23.246.127.255 scope global iptv85
valid_lft forever preferred_lft forever
inet6 fe80::2e2:69ff:***/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
15: eth0.85@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master iptv85 state UP group default qlen 1000
link/ether bc:24:11:*** brd ff:ff:ff:ff:ff:ff
17: wg: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.0.1.1/24 brd 10.0.1.255 scope global wg
valid_lft forever preferred_lft forever
25: eth1.85@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master iptv85 state UP group default qlen 1000
link/ether 00:e2:69:*** brd ff:ff:ff:ff:ff:ff
26: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:*** brd ff:ff:ff:ff:ff:ff
inet6 fe80::be24:11ff:***/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
27: pppoe-unicom: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN group default qlen 3
link/ppp
inet 139.22*** peer 139.22***/32 scope global pppoe-unicom
valid_lft forever preferred_lft forever
inet6 2408:820c:d020:***/64 scope global dynamic noprefixroute
valid_lft 258259sec preferred_lft 171859sec
inet6 fe80::55e6:60ed:8934:d269 peer fe80::d64f:***/128 scope link
valid_lft forever preferred_lft forever
28: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN group default qlen 3
link/ppp
inet 218.83*** peer 218.83***/32 scope global pppoe-wan
valid_lft forever preferred_lft forever
inet6 240e:38f:cf***/64 scope global dynamic noprefixroute
valid_lft 2591972sec preferred_lft 604772sec
inet6 fe80::2e2:691*** peer fe80::ce1a:faff:***/128 scope link
valid_lft forever preferred_lft forever
操作系统
Linux
系统版本
Linux version 6.6.50 (ubuntu@op-build) (x86_64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r27299-66559946ac) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Fri Sep 13 10:20:01 2024
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
描述
我有telecom和unicom双线拨号接入,均开启IPv6,利用bind_interface进行绑定接口分流时sing-box不能正确处理其中一个接口的ipv6访问
重现方式
config.json
日志
支持我们
完整性要求