Closed xiaobo-lab closed 3 months ago
Linux
ubuntu 24.04
sing-box 原始命令行程序
No response
sing-box version 1.9.3 Environment: go1.22.3 linux/amd64 Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api Revision: 085f60337799afc906069b540a38368968c123e4 CGO: disabled
根据 https://sing-box.sagernet.org/zh/manual/proxy/client/#basic-tun-usage-for-chinese-users 和 https://sing-box.sagernet.org/zh/manual/proxy-protocol/trojan/#client-example 链接中的示例配置文件,配置运行后无法连接网络。
wget https://ipinfo.io --2024-06-23 11:00:45-- https://ipinfo.io/ Resolving ipinfo.io (ipinfo.io)... failed: Temporary failure in name resolution. wget: unable to resolve host address ‘ipinfo.io’ wget https://34.117.186.192 --2024-06-23 11:02:04-- https://34.117.186.192/ Connecting to 34.117.186.192:443... connected. Unable to establish SSL connection.
wget https://ipinfo.io --2024-06-23 11:00:45-- https://ipinfo.io/ Resolving ipinfo.io (ipinfo.io)... failed: Temporary failure in name resolution. wget: unable to resolve host address ‘ipinfo.io’
wget https://34.117.186.192 --2024-06-23 11:02:04-- https://34.117.186.192/ Connecting to 34.117.186.192:443... connected. Unable to establish SSL connection.
config.json配置文件如下所示: { "dns": { "servers": [ { "tag": "google", "address": "tls://8.8.8.8" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false } ], "outbounds": [ { "type": "trojan", "server": "9jm140.kikwcb.xyz", "server_port": 24201, "password": "x", "tls": { "enabled": true, "server_name": "0gr4uqmtt8y41hcjsgrzdrc31.ourdvsss.com", "utls": { "enabled": true, "fingerprint": "firefox" } }, "multiplex": { "enabled": true } }, { "type": "direct", "tag": "direct" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geoip": [ "private" ], "outbound": "direct" } ], "auto_detect_interface": true } }
INFO[0000] router: updated default interface wlo1, index 3 TRACE[0000] inbound/tun[0]: creating stack INFO[0000] inbound/tun[0]: started at tun0 INFO[0000] sing-box started (0.00s) INFO[0000] [10401249 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:34922 INFO[0000] [10401249 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0000] [10401249 0ms] router: match[1] geoip=private => direct INFO[0000] [10401249 0ms] outbound/direct[direct]: outbound packet connection INFO[0000] [4170993514 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:46389 INFO[0000] [4170993514 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0000] [4170993514 0ms] router: match[1] geoip=private => direct INFO[0000] [4170993514 0ms] outbound/direct[direct]: outbound packet connection INFO[0010] [4105690720 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:37542 INFO[0010] [4105690720 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0010] [4105690720 0ms] router: match[1] geoip=private => direct INFO[0010] [4105690720 0ms] outbound/direct[direct]: outbound packet connection INFO[0010] [3740920232 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55444 INFO[0010] [3740920232 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0010] [3740920232 0ms] router: match[1] geoip=private => direct INFO[0010] [3740920232 0ms] outbound/direct[direct]: outbound packet connection INFO[0010] [153702606 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:57040 INFO[0010] [153702606 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0010] [153702606 0ms] router: match[1] geoip=private => direct INFO[0010] [153702606 0ms] outbound/direct[direct]: outbound packet connection INFO[0010] [2350699903 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:42507 INFO[0010] [2350699903 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0010] [2350699903 0ms] router: match[1] geoip=private => direct INFO[0010] [2350699903 0ms] outbound/direct[direct]: outbound packet connection INFO[0015] [509504118 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52932 INFO[0015] [509504118 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0015] [509504118 0ms] router: match[1] geoip=private => direct INFO[0015] [509504118 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0015] [509504118 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0015] [542248624 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52934 INFO[0015] [542248624 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0015] [542248624 0ms] router: match[1] geoip=private => direct INFO[0015] [542248624 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0015] [542248624 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0015] [829168653 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52940 INFO[0015] [829168653 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0015] [829168653 0ms] router: match[1] geoip=private => direct INFO[0015] [829168653 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0015] [829168653 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0015] [1833388116 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:36574 INFO[0015] [1833388116 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0015] [1833388116 0ms] router: match[1] geoip=private => direct INFO[0015] [1833388116 0ms] outbound/direct[direct]: outbound packet connection INFO[0018] [4050614429 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:32968 INFO[0018] [4050614429 0ms] inbound/tun[0]: inbound packet connection to 91.189.91.157:123 INFO[0018] [4050614429 0ms] outbound/trojan[0]: outbound multiplex packet connection to 91.189.91.157:123 DEBUG[0018] [4050614429 0ms] dns: lookup domain 9jm140.kikwcb.xyz DEBUG[0018] [4050614429 0ms] dns: match[0] outbound=any => local INFO[0018] outbound/direct[direct]: outbound packet connection to 223.5.5.5:53 DEBUG[0018] [4050614429 52ms] dns: exchanged 9jm140.kikwcb.xyz NOERROR 1 DEBUG[0018] [4050614429 53ms] dns: exchanged 9jm140.kikwcb.xyz CNAME 9jm140.kikwcb.xyz. 1 IN CNAME 9jm140.creamcached.com. DEBUG[0018] [4050614429 53ms] dns: exchanged 9jm140.kikwcb.xyz A 9jm140.creamcached.com. 1 IN A 120.232.73.106 DEBUG[0018] [4050614429 53ms] dns: lookup succeed for 9jm140.kikwcb.xyz: 120.232.73.106 ERROR[0018] [4050614429 227ms] inbound/tun[0]: tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match 0gr4uqmtt8y41hcjsgrzdrc31.ourdvsss.com INFO[0020] [3378522633 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52942 INFO[0020] [3378522633 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0020] [3378522633 0ms] router: match[1] geoip=private => direct INFO[0020] [3378522633 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0020] [3378522633 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0020] [1039830112 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52952 INFO[0020] [1039830112 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0020] [1039830112 0ms] router: match[1] geoip=private => direct INFO[0020] [1039830112 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0020] [1039830112 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0020] [288141734 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:52968 INFO[0020] [288141734 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0020] [288141734 0ms] router: match[1] geoip=private => direct INFO[0020] [288141734 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0020] [288141734 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0020] [3442706869 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:56138 INFO[0020] [3442706869 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0020] [1904515438 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55220 INFO[0020] [1904515438 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0020] [3442706869 0ms] router: match[1] geoip=private => direct INFO[0020] [3442706869 0ms] outbound/direct[direct]: outbound packet connection DEBUG[0020] [1904515438 0ms] router: match[1] geoip=private => direct INFO[0020] [1904515438 0ms] outbound/direct[direct]: outbound packet connection INFO[0020] [1557526086 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:44928 INFO[0020] [1557526086 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0020] [1557526086 0ms] router: match[1] geoip=private => direct INFO[0020] [1557526086 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [2818337816 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:60199 INFO[0025] [2818337816 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0025] [2818337816 0ms] router: match[1] geoip=private => direct INFO[0025] [2818337816 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [4246484433 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:53910 INFO[0025] [4246484433 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0025] [4246484433 0ms] router: match[1] geoip=private => direct INFO[0025] [4246484433 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [4075323178 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:37622 INFO[0025] [4075323178 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0025] [4075323178 0ms] router: match[1] geoip=private => direct INFO[0025] [4075323178 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [4278829630 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:40942 INFO[0025] [4278829630 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0025] [4278829630 0ms] router: match[1] geoip=private => direct INFO[0025] [4278829630 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [3268526382 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51328 INFO[0025] [3268526382 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0025] [3268526382 0ms] router: match[1] geoip=private => direct INFO[0025] [3268526382 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0025] [3268526382 1ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0025] [4176790340 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51342 INFO[0025] [4176790340 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0025] [4176790340 0ms] router: match[1] geoip=private => direct INFO[0025] [4176790340 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0025] [4176790340 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0025] [1126938078 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51350 INFO[0025] [1126938078 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0025] [1126938078 0ms] router: match[1] geoip=private => direct INFO[0025] [1126938078 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0025] [1126938078 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0025] [2915137061 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:43567 INFO[0025] [2915137061 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0025] [1420332837 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:50407 INFO[0025] [203981338 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:47594 DEBUG[0025] [2915137061 0ms] router: match[1] geoip=private => direct INFO[0025] [1420332837 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0025] [1018528624 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55149 DEBUG[0025] [1420332837 0ms] router: match[1] geoip=private => direct INFO[0025] [1018528624 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0025] [1420332837 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [568261177 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:39377 DEBUG[0025] [1018528624 0ms] router: match[1] geoip=private => direct INFO[0025] [568261177 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0025] [1018528624 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [203981338 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0025] [568261177 0ms] router: match[1] geoip=private => direct DEBUG[0025] [203981338 0ms] router: match[1] geoip=private => direct INFO[0025] [568261177 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [203981338 0ms] outbound/direct[direct]: outbound packet connection INFO[0025] [2915137061 0ms] outbound/direct[direct]: outbound packet connection INFO[0030] [65454112 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51362 INFO[0030] [65454112 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [65454112 0ms] router: match[1] geoip=private => direct INFO[0030] [65454112 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [65454112 1ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [180261184 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51366 INFO[0030] [180261184 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [180261184 0ms] router: match[1] geoip=private => direct INFO[0030] [180261184 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [180261184 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [3341941403 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51370 INFO[0030] [3341941403 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [3341941403 0ms] router: match[1] geoip=private => direct INFO[0030] [3341941403 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [3341941403 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [224269361 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55360 INFO[0030] [224269361 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0030] [224269361 0ms] router: match[1] geoip=private => direct INFO[0030] [224269361 0ms] outbound/direct[direct]: outbound packet connection INFO[0030] [3116524997 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51376 INFO[0030] [3116524997 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [3116524997 0ms] router: match[1] geoip=private => direct INFO[0030] [3116524997 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [3116524997 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [4240774617 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51382 INFO[0030] [4240774617 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [4240774617 0ms] router: match[1] geoip=private => direct INFO[0030] [4240774617 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [4240774617 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [3006202226 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:51398 INFO[0030] [3006202226 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0030] [3006202226 0ms] router: match[1] geoip=private => direct INFO[0030] [3006202226 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0030] [3006202226 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0030] [3944379988 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:57766 INFO[0030] [3944379988 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0030] [2856111388 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:33405 INFO[0030] [2856111388 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0030] [1883375632 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:56360 DEBUG[0030] [2856111388 0ms] router: match[1] geoip=private => direct INFO[0030] [2856111388 0ms] outbound/direct[direct]: outbound packet connection DEBUG[0030] [3944379988 0ms] router: match[1] geoip=private => direct INFO[0030] [3944379988 0ms] outbound/direct[direct]: outbound packet connection INFO[0030] [1883375632 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0030] [1883375632 0ms] router: match[1] geoip=private => direct INFO[0030] [1883375632 0ms] outbound/direct[direct]: outbound packet connection INFO[0035] [2132953273 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:56528 INFO[0035] [2132953273 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0035] [2132953273 0ms] router: match[1] geoip=private => direct INFO[0035] [2132953273 0ms] outbound/direct[direct]: outbound packet connection INFO[0035] [377928853 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:45462 INFO[0035] [377928853 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0035] [377928853 0ms] router: match[1] geoip=private => direct INFO[0035] [377928853 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0035] [377928853 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0035] [3432445777 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:45470 INFO[0035] [3432445777 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0035] [3432445777 0ms] router: match[1] geoip=private => direct INFO[0035] [3432445777 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0035] [3432445777 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0035] [49338450 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:45486 INFO[0035] [49338450 0ms] inbound/tun[0]: inbound connection to 127.0.0.1:53 DEBUG[0035] [49338450 0ms] router: match[1] geoip=private => direct INFO[0035] [49338450 0ms] outbound/direct[direct]: outbound connection to 127.0.0.1:53 ERROR[0035] [49338450 0ms] inbound/tun[0]: dial tcp 127.0.0.1:53: connect: connection refused INFO[0035] [121962503 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:33750 INFO[0035] [1343702822 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:41532 INFO[0035] [121962503 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0035] [1343702822 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0035] [2205538201 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55891 INFO[0035] [2205538201 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0035] [121962503 0ms] router: match[1] geoip=private => direct INFO[0035] [1183749030 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:42288 INFO[0035] [1183749030 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 INFO[0035] [121962503 0ms] outbound/direct[direct]: outbound packet connection INFO[0035] [2455070429 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:48664 INFO[0035] [2455070429 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53 DEBUG[0035] [2205538201 0ms] router: match[1] geoip=private => direct DEBUG[0035] [1343702822 0ms] router: match[1] geoip=private => direct INFO[0035] [1731284641 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:56920
已解决
操作系统
Linux
系统版本
ubuntu 24.04
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
描述
根据 https://sing-box.sagernet.org/zh/manual/proxy/client/#basic-tun-usage-for-chinese-users 和 https://sing-box.sagernet.org/zh/manual/proxy-protocol/trojan/#client-example 链接中的示例配置文件,配置运行后无法连接网络。
重现方式
config.json配置文件如下所示: { "dns": { "servers": [ { "tag": "google", "address": "tls://8.8.8.8" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false } ], "outbounds": [ { "type": "trojan", "server": "9jm140.kikwcb.xyz", "server_port": 24201, "password": "x", "tls": { "enabled": true, "server_name": "0gr4uqmtt8y41hcjsgrzdrc31.ourdvsss.com", "utls": { "enabled": true, "fingerprint": "firefox" } }, "multiplex": { "enabled": true } }, { "type": "direct", "tag": "direct" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geoip": [ "private" ], "outbound": "direct" } ], "auto_detect_interface": true } }
日志
支持我们
完整性要求