路由器科学上网与去广告终极指南:AX88U 梅林固件篇
路由器科学上网,全家设备受益。
相比在每台设备上单独配置代理,直接在路由器上部署科学上网插件,可以让家里所有设备(手机、电脑、平板、智能家居)自动翻墙,无需逐台配置。本文以华硕 AX88U 刷梅林固件为例,详细介绍科学上网插件安装、协议选择、一键部署脚本和去广告规则配置。
一、梅林固件与科学上网插件
Section titled “一、梅林固件与科学上网插件”什么是梅林固件?
Section titled “什么是梅林固件?”梅林固件(Asuswrt-Merlin)是华硕路由器的第三方开源固件,在官方固件基础上增加了更多功能,包括软件中心、SSH 访问、科学上网插件支持等。
AX88U 支持的梅林版本
Section titled “AX88U 支持的梅林版本”| 固件类型 | 平台 | CPU | 架构 | 说明 |
|---|---|---|---|---|
| 梅林改版 | axhnd | BCM4908 | ARMV8 | 推荐,功能最全 |
| 华硕官改 | axhnd | BCM4908 | ARMV8 | 官方修改版 |
主流科学上网插件
Section titled “主流科学上网插件”| 插件 | Stars | 支持协议 | 特点 |
|---|---|---|---|
| fancyss | ⭐ 13,600 | SS/SSR/V2Ray/Xray | 最老牌,功能全面 |
| vClash | ⭐ 821 | Clash | 支持规则分流 |
| koolss | ⭐ 4,669 | SS/SSR | 轻量级 |
fancyss 插件详解
Section titled “fancyss 插件详解”fancyss 是梅林固件上最著名的科学上网插件,支持多种架构:
- fancyss_hnd: 适用于 hnd/axhnd/axhnd.675x 平台(AX88U 用这个)
- fancyss_arm384: 适用于梅林 384 改版
- fancyss_arm: 适用于梅林 380 改版(已停止维护)
支持功能:
- ✅ SS/SSR/V2Ray/Xray 协议
- ✅ 游戏模式
- ✅ 节点订阅
- ✅ 回国模式
- ✅ 故障转移
- ✅ 多核支持
- ✅ TCP Fast Open
安装方法:
1. 下载对应版本的离线安装包
2. 进入路由器软件中心 → 离线安装
3. 上传安装包,点击安装
4. 安装完成后在软件中心启用
项目地址:https://github.com/hq450/fancyss
二、协议对比与选择
Section titled “二、协议对比与选择”主流协议对比
Section titled “主流协议对比”| 协议 | 抗封锁能力 | 资源消耗 | 速度 | 伪装能力 | 推荐指数 |
|---|---|---|---|---|---|
| Xray (VLESS + XTLS) | ⭐⭐⭐⭐⭐ | 中 | 快 | 强 | ⭐⭐⭐⭐⭐ |
| Hysteria 2 | ⭐⭐⭐⭐⭐ | 低 | 极快 | 强 | ⭐⭐⭐⭐⭐ |
| TUIC | ⭐⭐⭐⭐ | 低 | 快 | 强 | ⭐⭐⭐⭐ |
| Shadowsocks | ⭐⭐⭐ | 极低 | 快 | 弱 | ⭐⭐⭐ |
| VMess | ⭐⭐⭐⭐ | 中 | 快 | 中 | ⭐⭐⭐⭐ |
| Trojan | ⭐⭐⭐⭐ | 中 | 快 | 强 | ⭐⭐⭐⭐ |
| NaiveProxy | ⭐⭐⭐⭐⭐ | 中 | 中 | 极强 | ⭐⭐⭐⭐ |
| WireGuard | ⭐⭐⭐ | 极低 | 快 | 弱 | ⭐⭐⭐ |
1. Xray (VLESS + XTLS) ⭐ 最推荐
Section titled “1. Xray (VLESS + XTLS) ⭐ 最推荐”特点:
- 基于 V2Ray 的增强版,性能更强
- VLESS 协议 + XTLS 加密,几乎无法识别
- 支持 Reality 伪装,模拟真实网站流量
- 资源消耗适中,适合路由器运行
适用场景:高封锁环境,需要最强抗检测能力
一键安装:
# mack-a/v2ray-agent 八合一脚本 wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
项目地址:https://github.com/mack-a/v2ray-agent
2. Hysteria 2 ⭐ 速度最快
Section titled “2. Hysteria 2 ⭐ 速度最快”特点:
- 基于 QUIC 协议,抗封锁能力极强
- 使用 UDP 协议,速度极快
- 资源消耗低,适合路由器
- 支持端口跳跃,更难被封
适用场景:追求极致速度,网络环境较好
一键安装:
# 官方安装脚本 bash <(curl -fsSL https://get.hy2.sh/)
项目地址:https://github.com/apernet/hysteria
3. TUIC ⭐ 低延迟
Section titled “3. TUIC ⭐ 低延迟”特点:
- 基于 QUIC 协议,低延迟
- 抗封锁能力强
- 资源消耗低
- 适合游戏和实时应用
适用场景:游戏加速,低延迟需求
4. Shadowsocks ⭐ 最轻量
Section titled “4. Shadowsocks ⭐ 最轻量”特点:
- 资源消耗极低,最适合路由器
- 部署简单,兼容性好
- 但抗封锁能力较弱,容易被识别
适用场景:资源有限的路由器,低封锁环境
5. NaiveProxy ⭐ 伪装最强
Section titled “5. NaiveProxy ⭐ 伪装最强”特点:
- 基于 Chrome 网络协议,伪装成正常 HTTPS 流量
- 抗封锁能力极强,几乎无法识别
- 但速度相对较慢
适用场景:极高封锁环境,需要最强伪装
路由器推荐协议组合
Section titled “路由器推荐协议组合”| 优先级 | 协议 | 原因 |
|---|---|---|
| 第一 | Xray (VLESS+Reality) | 抗封锁强,资源消耗适中 |
| 第二 | Hysteria 2 | 速度快,资源消耗低 |
| 第三 | TUIC | 低延迟,适合游戏 |
| 备用 | Shadowsocks | 资源消耗极低,兼容性好 |
三、一键部署脚本
Section titled “三、一键部署脚本”1. mack-a/v2ray-agent ⭐ 最全面
Section titled “1. mack-a/v2ray-agent ⭐ 最全面”支持协议:Xray、V2Ray、Trojan、Hysteria2、TUIC、Sing-box
特点:
- 八合一脚本,支持多种协议
- 自动申请证书
- 支持订阅链接生成
- 支持多用户管理
安装命令:
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
项目地址:https://github.com/mack-a/v2ray-agent
Stars:⭐ 21,020
2. fscarmen/sing-box ⭐ 功能强大
Section titled “2. fscarmen/sing-box ⭐ 功能强大”支持协议:Reality、Hysteria2、TUIC、Trojan、Shadowsocks、AnyTLS、ShadowTLS、Vmess、VLESS、NaiveProxy
特点:
- 支持 Argo 隧道
- 自签/acme 双证书切换
- 多客户端订阅(Clash/V2rayN/ShadowRocket)
- 无须域名即可使用
安装命令:
bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)
项目地址:https://github.com/fscarmen/sing-box
Stars:⭐ 4,777
3. yonggekkk/sing-box-yg ⭐ 独家功能
Section titled “3. yonggekkk/sing-box-yg ⭐ 独家功能”支持协议:Sing-box 五合一
特点:
- 三大独家功能
- 自签/acme 双证书切换
- Argo 固定临时双隧道
- Psiphon 赛风 VPN 分流
安装命令:
bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
项目地址:https://github.com/yonggekkk/sing-box-yg
Stars:⭐ 9,108
4. MHSanaei/3x-ui ⭐ 面板管理
Section titled “4. MHSanaei/3x-ui ⭐ 面板管理”支持协议:Vmess、Vless、Trojan、ShadowSocks、Wireguard、Hysteria、Tunnel、Mixed、HTTP、Tun
特点:
- Web 面板管理
- 多用户支持
- 流量统计
- IP 限制
安装命令:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
项目地址:https://github.com/MHSanaei/3x-ui
Stars:⭐ 40,304
5. Xray 官方安装
Section titled “5. Xray 官方安装”安装命令:
# 官方脚本 bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install
项目地址:https://github.com/XTLS/Xray-core
Stars:⭐ 39,463
四、去广告与分流规则
Section titled “四、去广告与分流规则”去广告方案对比
Section titled “去广告方案对比”| 方案 | 原理 | 优点 | 缺点 | 适用场景 |
|---|---|---|---|---|
| DNS 去广告 | 拦截广告域名解析 | 全设备生效,无需配置 | 无法去视频广告 | 路由器全局 |
| 代理规则去广告 | 通过代理规则拦截 | 精准,可去视频广告 | 需配置代理 | 科学上网时 |
| 浏览器插件 | 浏览器层面拦截 | 最精准 | 仅浏览器有效 | 电脑浏览器 |
DNS 去广告方案
Section titled “DNS 去广告方案”1. SmartDNS + 去广告规则
Section titled “1. SmartDNS + 去广告规则”SmartDNS 是一个本地 DNS 服务器,支持 DoH/DoT/DoQ,可以配合去广告规则使用。
项目地址:https://github.com/pymumu/smartdns
Stars:⭐ 10,912
安装方法:
# 梅林固件可通过软件中心安装 # 或手动安装 opkg install smartdns
配置去广告:
# 在 smartdns 配置中添加广告规则 conf-file /etc/smartdns/anti-ad.conf
2. anti-AD 规则 ⭐ 最全面
Section titled “2. anti-AD 规则 ⭐ 最全面”特点:
- 中文区命中率最高的广告过滤列表
- 支持 SmartDNS、AdGuardHome、dnsmasq、Clash 等
- 每 8 小时更新
项目地址:https://github.com/privacy-protection-tools/anti-AD
Stars:⭐ 10,462
使用方法:
# 下载规则 wget https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad.conf
# 或 dnsmasq 格式 wget https://anti-ad.net/anti-ad-for-dnsmasq.conf -O /etc/dnsmasq.d/anti-ad.conf
3. AWAvenue Ads Rule ⭐ 社区推荐
Section titled “3. AWAvenue Ads Rule ⭐ 社区推荐”特点:
- 众多优秀广告规则的上游
- 适配 AdGuard/Home/DNS、ClashMeta、QuantumultX 等
- 开源社区最棒的广告过滤器之一
项目地址:https://github.com/TG-Twilight/AWAvenue-Ads-Rule
Stars:⭐ 6,021
4. 217heidai/adblockfilters ⭐ 自动更新
Section titled “4. 217heidai/adblockfilters ⭐ 自动更新”特点:
- 去广告合并规则
- 每 8 小时更新一次
- 支持多种格式
项目地址:https://github.com/217heidai/adblockfilters
Stars:⭐ 7,107
代理分流规则
Section titled “代理分流规则”1. Loyalsoldier/clash-rules ⭐ 最流行
Section titled “1. Loyalsoldier/clash-rules ⭐ 最流行”特点:
- Clash Premium 规则集
- 直连、代理、广告屏蔽分类清晰
- 自动更新
项目地址:https://github.com/Loyalsoldier/clash-rules
Stars:⭐ 26,998
规则列表:
- Lancidr.txt - 局域网 IP 段
- Direct.txt - 国内域名直连
- Proxy.txt - 国外域名代理
- Reject.txt - 广告域名屏蔽
2. Loyalsoldier/v2ray-rules-dat ⭐ 最全面
Section titled “2. Loyalsoldier/v2ray-rules-dat ⭐ 最全面”特点:
- V2Ray/Xray 路由规则文件加强版
- 可代替官方 geoip.dat 和 geosite.dat
- 支持 V2Ray、Xray、mihomo、Hysteria 等
项目地址:https://github.com/Loyalsoldier/v2ray-rules-dat
Stars:⭐ 19,996
3. ChinaDNS-ng ⭐ 智能分流
Section titled “3. ChinaDNS-ng ⭐ 智能分流”特点:
- 域名分流,国内域名直连,国外域名走代理
- 支持 ipset/nftset
- 支持 UDP/TCP/DoT
项目地址:https://github.com/zfl9/chinadns-ng
Stars:⭐ 1,363
路由器规则配置示例
Section titled “路由器规则配置示例”fancyss 插件配置
Section titled “fancyss 插件配置”- 打开 fancyss 插件
- 进入路由器后台 → 软件中心 → 科学上网
- 配置节点
- 选择协议类型(V2Ray/Xray/SS/SSR)
- 输入节点信息或订阅链接
- 配置分流规则
- 大陆白名单模式:国内直连,国外代理
- 游戏模式:游戏流量直连
- 回国模式:国外直连,国内代理
- 配置 DNS
- 推荐启用 ChinaDNS-ng
- 配置国内 DNS(如阿里 DNS、腾讯 DNS)
- 配置国外 DNS(如 Google DNS、Cloudflare DNS)
- 启用广告过滤
- 在插件设置中启用广告过滤
- 或配合 SmartDNS + anti-AD 规则
订阅规则地址
Section titled “订阅规则地址”| 规则类型 | 地址 |
|---|---|
| fancyss 规则 | https://github.com/hq450/fancyss\_history\_package |
| anti-AD SmartDNS | https://anti-ad.net/anti-ad-for-smartdns.conf |
| anti-AD dnsmasq | https://anti-ad.net/anti-ad-for-dnsmasq.conf |
| Clash 规则 | https://github.com/Loyalsoldier/clash-rules |
| V2Ray 规则 | https://github.com/Loyalsoldier/v2ray-rules-dat |
五、AX88U 完整配置流程
Section titled “五、AX88U 完整配置流程”步骤 1:刷梅林固件
Section titled “步骤 1:刷梅林固件”- 下载 AX88U 梅林改版固件
- 进入路由器恢复模式(按住 Reset 键开机)
- 通过 TFTP 或 Web 界面刷入固件
- 等待重启完成
步骤 2:安装软件中心
Section titled “步骤 2:安装软件中心”- 进入路由器后台
- 启用 SSH 功能
- 通过 SSH 安装软件中心
步骤 3:安装 fancyss 插件
Section titled “步骤 3:安装 fancyss 插件”- 下载 fancyss_hnd 离线安装包
- 进入软件中心 → 离线安装
- 上传安装包并安装
步骤 4:配置科学上网
Section titled “步骤 4:配置科学上网”- 打开科学上网插件
- 添加节点(手动输入或订阅链接)
- 选择分流模式(大陆白名单)
- 启用插件
步骤 5:配置去广告
Section titled “步骤 5:配置去广告”- 安装 SmartDNS(通过软件中心或手动安装)
- 下载 anti-AD 规则
- 配置 SmartDNS 使用去广告规则
- 将路由器 DNS 指向 SmartDNS
步骤 6:验证配置
Section titled “步骤 6:验证配置”- 访问国内网站(如百度),确认直连
- 访问国外网站(如 Google),确认代理
- 访问广告页面,确认广告被拦截
六、常见问题
Section titled “六、常见问题”Q1:路由器性能不足?
Section titled “Q1:路由器性能不足?”A:AX88U 的 BCM4908 处理器性能强劲,可以流畅运行 Xray/Hysteria2。如果性能不足,可以:
- 使用 Shadowsocks 替代 Xray(资源消耗更低)
- 关闭日志记录
- 减少并发连接数
Q2:某些网站打不开?
Section titled “Q2:某些网站打不开?”A:检查分流规则,可能需要手动添加规则:
- 国内网站被错误代理 → 添加到直连列表
- 国外网站被错误直连 → 添加到代理列表
Q3:去广告不完全?
Section titled “Q3:去广告不完全?”A:
- 视频广告通常无法通过 DNS 拦截,需要配合浏览器插件
- 更新去广告规则到最新版本
- 使用多个去广告规则叠加
Q4:游戏延迟高?
Section titled “Q4:游戏延迟高?”A:
- 启用游戏模式,游戏流量直连
- 使用 TUIC 或 Hysteria2 协议(低延迟)
- 选择距离近的服务器节点
七、资源汇总
Section titled “七、资源汇总”梅林固件与插件
Section titled “梅林固件与插件”| 项目 | Stars | 说明 |
|---|---|---|
| hq450/fancyss | ⭐ 13,600 | 最全面的科学上网插件 |
| koolshare/koolshare.github.io | ⭐ 4,669 | Koolshare 软件中心 |
| vxiaov/vClash | ⭐ 821 | Clash 插件 |
一键部署脚本
Section titled “一键部署脚本”| 项目 | Stars | 支持协议 |
|---|---|---|
| mack-a/v2ray-agent | ⭐ 21,020 | Xray/V2Ray/Trojan/Hysteria2/TUIC/Sing-box |
| MHSanaei/3x-ui | ⭐ 40,304 | 多协议面板 |
| yonggekkk/sing-box-yg | ⭐ 9,108 | Sing-box 五合一 |
| fscarmen/sing-box | ⭐ 4,777 | Sing-box 全家桶 |
| 项目 | Stars | 说明 |
|---|---|---|
| XTLS/Xray-core | ⭐ 39,463 | Xray 核心 |
| apernet/hysteria | ⭐ 21,746 | Hysteria 2 协议 |
| SagerNet/sing-box | ⭐ 34,861 | Sing-box 平台 |
| 项目 | Stars | 说明 |
|---|---|---|
| privacy-protection-tools/anti-AD | ⭐ 10,462 | 中文区最全面的广告过滤 |
| 217heidai/adblockfilters | ⭐ 7,107 | 每 8 小时更新 |
| TG-Twilight/AWAvenue-Ads-Rule | ⭐ 6,021 | 社区推荐 |
| Loyalsoldier/clash-rules | ⭐ 26,998 | Clash 规则集 |
| Loyalsoldier/v2ray-rules-dat | ⭐ 19,996 | V2Ray 规则文件 |
DNS 工具
Section titled “DNS 工具”| 项目 | Stars | 说明 |
|---|---|---|
| pymumu/smartdns | ⭐ 10,912 | 本地 DNS 服务器 |
| zfl9/chinadns-ng | ⭐ 1,363 | 智能分流 DNS |
路由器科学上网 + 去广告,一劳永逸。
相比在每台设备上单独配置,路由器级别的科学上网和去广告有以下优势:
- ✅ 全家设备自动生效,无需逐台配置
- ✅ 手机、电脑、平板、智能家居全覆盖
- ✅ 去广告全设备生效,包括 App 内广告
- ✅ 24 小时运行,无需手动开关
推荐组合:
- 路由器:AX88U + 梅林改版固件
- 科学上网插件:fancyss_hnd
- 协议:Xray (VLESS + Reality) 或 Hysteria 2
- 去广告:SmartDNS + anti-AD 规则
- 分流:ChinaDNS-ng + 大陆白名单模式
本文整理自 GitHub 开源项目,持续更新中
最后更新:2026-06-11