openclash 竟然会影响 ddns,求解决方案

2022-05-25 21:37:20 +08:00
 qiubangzhu

最近一直觉得访问家里的 mac 总是访问不了,我一开始没怎么在意。因为其他的设备能访问,我以为是 macos 设置问题,用不了我也有替代方案。但是今天必须要用的时候发现无法通过公网 IP 连回家里 macos ,但不是全都连不上,奇怪就奇怪在这里

unraid ( 192.168.1.3 )映射的是 81 端口。baidu.com:81 可以正常访问

macos ( 192.168.1.10 )映射的是 5500 端口 baidu.com:5500 无法正常访问

这就很奇怪了,同一个局域网的两个设备,竟然有的可以访问有的无法访问

openclash 用的是 faka-ip (增强)模式,搜索一番之后找到几个解决方案也没办法用,目前我切换到 Redir-Host (兼容)模式,没这个问题了 https://github.com/vernesong/OpenClash/issues/877

https://github.com/vernesong/OpenClash/issues/644

https://github.com/vernesong/OpenClash/issues/1119

7626 次点击
所在节点    问与答
9 条回复
Rrrrrr
2022-05-25 21:44:44 +08:00
人老了就不想折腾,我那固件有几个软件。现在换了 passwall ,挺好的。
uptime: 70d 22h 25m 5s
explorerproxy
2022-05-25 23:18:08 +08:00
clash 我也是没搞太明白,规则集和策略组之类看起来挺好用的,还有很多编写好的针对不同场景的规则,用之前感觉真强大,用了之后真的是各种麻烦,还不如用最原始的自定义规则
xlvecle
2022-05-26 02:01:12 +08:00
得看你用的什么 ddns ,如果用公网服务获取 ip 的话会出问题,如果从网卡读 ip 感觉不会有影响
cosette
2022-05-26 06:03:57 +08:00
应该是 fake-ip 的问题,fake-ip 会直接返回`198.18.0.0/16`的 ip ,可能拿到返回之后访问出错了。可以使用 `fake-ip-filter` 字段排除部分域名。
zhuifeng1017
2022-05-26 10:20:16 +08:00
之前用树莓派刷 openwrt 软路由内置了 openclash, 会导致 notion 、google 翻译等无法使用。后面 ping 域名发现被解析到到 fake-ip 地址,后面果断停止掉 openclash 就好了
qiubangzhu
2022-05-26 18:49:17 +08:00
@cosette 可以写一个示例吗?感谢 是放在 全局设置 - 规则设置 - 自定义规则 -里面吗
cosette
2022-05-27 00:18:37 +08:00
@qiubangzhu [官方配置文件示例]( https://github.com/Dreamacro/clash/wiki/configuration),在 `dns`字段下面,我不知道 openclash 是否用的是 clash 的配置格式,
```
# Hostnames in this list will not be resolved with fake IPs
# i.e. questions to these domain names will always be answered with their
# real IP addresses
# fake-ip-filter:
# - '*.lan'
# - localhost.ptlogin2.qq.com
```
guiyun
2022-05-27 16:03:19 +08:00
我是 passwall 分流太麻烦,用的 hello world
qiubangzhu
2022-05-28 14:13:59 +08:00
@xlvecle 用的 ikuai 里面自带的 应该是通过 wan 口获取的吧

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/855308

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX