Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] clash开启TUN模式之后,流量可以正常代理,但是被代理的服务收不到任何返回 #1039

Closed
xiaoxuanyo opened this issue May 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xiaoxuanyo
Copy link

xiaoxuanyo commented May 19, 2024

问题描述 / Describe the bug

这是我的配置

allow-lan: true
bind-address: '*'
mode: rule
log-level: info
external-controller: '0.0.0.0:9090'

tun:
    enable: true
    stack: system 
    auto-route: true 
    auto-redir: true 
    auto-detect-interface: true

dns:
    enable: true
    ipv6: false
    default-nameserver: [223.5.5.5, 119.29.29.29]
    enhanced-mode: fake-ip
    fake-ip-range: 198.18.0.1/16
    # use-hosts: true
    nameserver: ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query']
    fallback: ['https://doh.dns.sb/dns-query', 'https://dns.cloudflare.com/dns-query', 'https://dns.twnic.tw/dns-query', 'tls://8.8.4.4:853']

这是clash的日志


08:30:03 INF [Config] initial compatible provider name=故障转移
08:30:03 INF [Config] initial compatible provider name=自动选择
08:30:03 INF [Config] initial compatible provider name=BH专线版
08:30:03 INF [API] listening addr=[::]:9090
08:30:03 INF [Inbound] TUN listening iface=utun gateway=198.18.0.1
08:30:19 INF [UDP] connected lAddr=198.18.0.1:52635 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:30:19 INF [UDP] connected lAddr=198.18.0.1:57093 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:30:19 INF [UDP] connected lAddr=198.18.0.1:45070 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:30:19 INF [UDP] connected lAddr=198.18.0.1:37272 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:30:19 INF [TCP] connected lAddr=198.18.0.1:56262 rAddr=31.13.94.41:80 mode=rule rule=Match() proxy=BH专线版[🇨🇳负载均衡节点主.]
08:40:03 INF [TCP] connected lAddr=198.18.0.1:52060 rAddr=31.13.94.10:80 mode=rule rule=Match() proxy=BH专线版[🇨🇳负载均衡节点主.]
08:40:04 INF [UDP] connected lAddr=198.18.0.1:59380 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:04 INF [UDP] connected lAddr=198.18.0.1:56411 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:04 INF [UDP] connected lAddr=198.18.0.1:35083 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:04 INF [UDP] connected lAddr=198.18.0.1:40271 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:04 INF [TCP] connected lAddr=198.18.0.1:57698 rAddr=31.13.73.169:80 mode=rule rule=Match() proxy=BH专线版[🇨🇳负载均衡节点主.]
08:40:06 INF [UDP] connected lAddr=198.18.0.1:34987 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:06 INF [UDP] connected lAddr=198.18.0.1:53620 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:06 INF [UDP] connected lAddr=198.18.0.1:57100 rAddr=10.0.5.222:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:06 INF [UDP] connected lAddr=198.18.0.1:44397 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:06 INF [TCP] connected lAddr=198.18.0.1:57704 rAddr=31.13.73.169:80 mode=rule rule=Match() proxy=BH专线版[🇨🇳负载均衡节点主.]
08:40:07 INF [UDP] connected lAddr=198.18.0.1:33294 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:07 INF [UDP] connected lAddr=198.18.0.1:51993 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:07 INF [UDP] connected lAddr=198.18.0.1:55756 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:07 INF [UDP] connected lAddr=198.18.0.1:54261 rAddr=10.0.3.186:53 mode=rule rule=IPCIDR(10.0.0.0/8) proxy=DIRECT
08:40:07 INF [TCP] connected lAddr=198.18.0.1:56466 rAddr=199.16.158.182:80 mode=rule rule=Match() proxy=BH专线版[🇨🇳负载均衡节点主.]

这是curl谷歌的结果

[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
[root@clash-59d4594745-4kc86 /]# curl www.google.com
curl: (52) Empty reply from server

复现步骤 / To Reproduce

linxu安装clash 支持TUN模式的按上述配置就会出现

操作系统 / OS

Linux

操作系统版本 / OS Version

Alibaba Cloud Linux 3 (Soaring Falcon) 5.10.134-16.1.al8.x86_64

日志 / Log

日志如上

@xiaoxuanyo xiaoxuanyo added the bug Something isn't working label May 19, 2024
@xishang0128
Copy link
Contributor

xishang0128 commented May 26, 2024

这是premium内核的日志格式,verge-rev并没有使用premium内核

@xishang0128 xishang0128 closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants