openclash配置
运行状态页:
覆写模块:
插件设置:
模式设置:
流量控制:
DNS设置:
流媒体增强:
黑白名单:
外部控制:
IPV6设置:
第三方规则订阅:
GEO数据库订阅:
大陆白名单订阅:
定时重启:
版本更新:
开发者选项:
#!/bin/sh
. /usr/share/openclash/log.sh
. /lib/functions.sh
# This script is called by /etc/init.d/openclash
# Add your custom firewall rules here, they will be added after the end of the OpenClash iptables rules
LOG_OUT "Tip: Start Add Custom Firewall Rules..."
# 以下是广告过滤规则拉取脚本
LOG_OUT "拉取 anti-AD 广告过滤规则…"
curl -s https://anti-ad.net/anti-ad-for-dnsmasq.conf -o /tmp/dnsmasq.d/anti-ad-for-dnsmasq.conf
# 广告过滤规则拉取脚本结束
# 以下是 GitHub520 加速规则拉取脚本
# LOG_OUT "拉取 GitHub520 加速规则…"
# sed -i '/# GitHub520 Host Start/,/# GitHub520 Host End/d' /etc/hosts
# curl https://raw.hellogithub.com/hosts >> /etc/hosts
# sed -i '/^$/d' /etc/hosts
# sed -i '/!/d' /etc/hosts
# GitHub520 加速规则拉取脚本结束
# 清理 DNS 缓存
LOG_OUT "清理 DNS 缓存…"
/etc/init.d/dnsmasq reload
exit 0
覆写设置:
常规设置:
DNS设置:
META设置:
smart设置:
规则设置:
开发者设置:
一键生成:
规则附加:
配置订阅:
评论
发表评论