-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] dns-hijack没有按预期工作 #1689
Labels
bug
Something isn't working
Comments
2.0.3-alpha dns 也沒辦法關掉,看來目前DNS部分還有些問題 |
我也关注到了这个问题,这对我非常重要,急待解决 |
@ForestL18 协议和IP匹配没问题,端口匹配不生效 |
你劫持链接里是填的any+随意端口吗? |
这个行为很奇怪 |
如果对任意地址指定一个端口劫持的话,很容易误伤导致某些应用无法正常动作 |
劫持的逻辑是 劫持指定的IP:port或者劫持任意IP的53端口 |
这是写配置的人应该注意的问题,这样的隐式操作反而会让配置和实际行为不符,理解不了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
验证步骤
操作系统
Linux
系统版本
Arch Linux
Mihomo 版本
Mihomo Meta alpha-9de9f1e linux amd64 with go1.23.3 Wed Nov 27 03:05:48 UTC 2024
Use tags: with_gvisor
配置文件
描述
dns-hijack
开启后,总是会拦截所有的DNS流量,不管是不是跟设置的值匹配。一开始我写的是只拦截udp53端口,但发现tcp的也被拦截了。后来发现不管我怎么写都没用,甚至随便写个端口都会被拦截。
现在我验证的情况是,只有空列表
[]
不拦截,默认值或者随便写个值都是拦截全部。重现方式
用上面的配置文件启动,然后用dig或者drill发dns请求。
注意看下面日志的最后两行,DNS都被拦截了,但不跟设置匹配。
日志
The text was updated successfully, but these errors were encountered: