sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

安卓app:tun inbound使用route_exclude_address时报错,无法运行vpn

Open simplerick-simplefun opened this issue 1 year ago • 1 comments

操作系统

Android

系统版本

Android 13

安装类型

sing-box for Android 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

1.10.0-alpha.29

版本

No response

描述

使用环境: Android 13 SFA-1.10.0-alpha.29-arm64-v8a.apk

问题: 在tun inbound里,如果写入route_exclude_address/inet4_route_exclude_address/inet6_route_exclude_address,那么启动vpn时,会报错弹出窗口:initialize inbound/tun[in-tun]: configure tun interface: Bad address 报错截图: Screenshot_2024-08-16-16-43-47-453_com tencent mm-edit

配置:

"inbounds": [
    {
      "type": "tun",
      "tag": "in-tun",
      "inet4_address": [
        "172.19.0.1/30"
      ],
      "inet6_address": [
        "fdfe:dcba:9876::1/126"
      ],
      "stack": "gvisor",
      "auto_route": true,
      "strict_route": true,
      "endpoint_independent_nat": true,
      "sniff": true,
      "sniff_timeout": "100ms",
      "inet4_route_exclude_address": [
        "127.0.0.0/16"
      ],
      "inet6_route_exclude_address": [
        "fc00::/7"
      ]
    }
]

"inbounds": [
    {
      ......
      "route_exclude_address": [
        "127.0.0.0/16",
        "fc00::/7"
      ]
    }
]

重现方式

在tun inbound里,如果写入route_exclude_address/inet4_route_exclude_address/inet6_route_exclude_address。

日志

No response

支持我们

完整性要求

  • [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

simplerick-simplefun avatar Aug 16 '24 08:08 simplerick-simplefun

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Oct 22 '24 01:10 github-actions[bot]

1.11.4 同样的问题,同时在windows裸核运行没有问题。

kicre avatar Mar 07 '25 18:03 kicre

@

1.11.4 同样的问题,同时在windows裸核运行没有问题。

127.0.0.0/16 这一条地址不能用,删除后就好了。

kicre avatar Mar 07 '25 18:03 kicre