1
0
Fork 0
NotesUESTC/网络技术/科学上网/Clash/Clash设置白名单.md

18 lines
730 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Clash设置白名单
> 2024/02/13 @zhanli.
最近在使用Clash的时候发现局域网、知乎、部分网站开启了Clash后无法访问。所以需要配置Clash的白名单。打开路径`C:\Users\Administrator\.config\clash`[Windows平台]下的`config.yaml`。添加或者修改`cfw-bypass`,其中*表示通配符。在linux平台可能是`~/.config\clash`下面的`config.yaml`文件。
```yaml
mixed-port: 7890
allow-lan: true
external-controller: 127.0.0.1:49090
secret: ''
# 下面列表示不用代理的网址
cfw-bypass:
- 'logzhan.ticp.io' # 私有域名
- '*.zhihu.com' # 知乎
```
经过实际测试之前由于开启clash导致的`zhihu`以及个人域名都可以正常访问了。