Clash Verge 是基于 Clash 的高级网络管理工具,能够帮助用户轻松配置和管理网络规则。以下是 Clash Verge 规则配置的详细说明
Clash Verge 规则配置类别
Clash Verge 支持多种类型的规则,用户可以根据需求选择或组合不同的规则类型来实现特定的网络管理目标。
1 流量控制规则
- 域名过滤规则:阻止或允许特定域名的访问。
{ "name": "允许访问某个域名", "source": ".../", "destination": "某域名", "port": [], "allow": true } - IP 过滤规则:限制或允许特定 IP 的访问。
{ "name": "限制某 IP 访问", "source": "某 IP", "destination": ".../", "port": [], "allow": false } - 端口控制规则:管理特定端口的流量。
{ "name": "限制某个端口", "source": ".../", "destination": ".../", "port": ["80", "443"], "allow": false } - 限流规则:限制某个 IP 或域名的访问频率。
{ "name": "限流某个 IP", "source": "某 IP", "destination": ".../", "port": [], "bandwidth": 100000, "burst": 100 } - 随机化访问控制规则:随机化访问控制,防止恶意攻击。
{ "name": "随机化访问控制", "source": ".../", "destination": ".../", "port": ["80"], "random": true, "probability": 0.5 }
2 访问控制规则
- URL 过滤规则:根据 URL 过滤访问。
{ "name": "允许访问特定网站", "source": ".../", "destination": "www.example.com", "port": ["80"], "url": ["^/.*"] } - 路径过滤规则:限制访问特定路径。
{ "name": "限制访问某个路径", "source": ".../", "destination": ".../", "port": ["80"], "url": ["^/abc/.*"] }
3 安全防护规则
- 防火墙规则:阻止恶意流量。
{ "name": "防火墙规则", "source": ".../", "destination": ".../", "port": ["80", "443"], "allow": false } - DDoS 防护规则:防止 DDoS攻击。
{ "name": "防 DDoS 攻击", "source": ".../", "destination": ".../", "port": ["80"], "rate": { "window": 100, "burst": 100, "threshold": 100 } } - IP 地址限制规则:限制来自特定 IP 的访问。
{ "name": "限制某 IP 访问", "source": ".../", "destination": ".../", "port": [], "allow": false, "ip": ["192.168.1.1"] }
4 运维优化规则
- 负载均衡规则:分配流量到多个目标。
{ "name": "负载均衡", "source": ".../", "destination": ".../", "port": ["80"], "target": ["服务器1", "服务器2"] } - 健康检查规则:检查目标服务器的状态。
{ "name": "健康检查", "source": ".../", "destination": ".../", "port": ["80"], "health_check": { "type": "http", "path": "/health", "interval": 30 } } - 会员认证规则:验证用户身份。
{ "name": "会员认证", "source": ".../", "destination": ".../", "port": ["80"], "auth": { "type": "basic", "username": "admin", "password": "password" } }
5 统计分析规则
- 流量统计规则:记录和分析流量。
{ "name": "流量统计", "source": ".../", "destination": ".../", "port": ["80"], "counter": { "name": "访问次数", "type": "ip", "counter": 100 } } - 错误日志规则:记录和分析错误日志。
{ "name": "错误日志", "source": ".../", "destination": ".../", "port": ["80"], "log": { "type": "syslog", "facility": "local", "level": "debug" } }
6 装备管理规则
- 设备认证规则:验证设备身份。
{ "name": "设备认证", "source": ".../", "destination": ".../", "port": ["80"], "auth": { "type": "radius", "identifier": "设备ID", "secret": "设备密钥" } } - 配置更新规则:自动更新设备配置。
{ "name": "配置更新", "source": ".../", "destination": ".../", "port": ["80"], "update": { "type": "http", "url": "http://update.example.com/update.conf", "interval": 60 } }
7 故障修复规则
- 自动故障修复规则:自动处理故障。
{ "name": "自动故障修复", "source": ".../", "destination": ".../", "port": ["80"], "fix": { "type": "reset", "interval": 300 } } - 重启规则:在故障时重启设备。
{ "name": "设备重启", "source": ".../", "destination": ".../", "port": ["80"], "action": { "type": "restart", "interval": 300 } }
Clash Verge 规则配置步骤
-
登录 Clash Verge 平台:
使用管理员账号登录到 Clash Verge 控台。
-
进入规则管理界面:
点击左侧导航栏中的“规则”或类似选项,进入规

@版权声明
转载原创文章请注明转载自原子VPN|多平台网络连接与线路优化工具,支持节点切换、网络测速及电脑手机端使用,满足不同网络环境下的连接需求,网站地址:https://yuanziapp.com.cn/