Mihomo 流量路径分析报告

Mihomo 流量路径分析报告 基于本机(Arch Linux, Mihomo Clash.Meta 内核)实际配置,分析三类流量在 nftables + ip rule + TUN 三层拦截机制下的完整路径。 1. 环境概况 1.1 系统信息 项目 值 OS Arch Linux 内核 Linux 6.x Mihomo 版本 Clash.Meta 内核 运行命令 /opt/mihomo/bin/mihomo -d /opt/mihomo/etc PID 1057 运行方式 systemd service(enabled) 配置文件 /opt/mihomo/etc/config.yaml 1.2 Mihomo 监听端口 端口 类型 绑定地址 用途 10810 mixed (HTTP+SOCKS) 127.0.0.1 通用代理入站 11000 socks5 127.0.0.1 socks5-in-1 11001 mixed 127.0.0.1 direct 入站(强制 DIRECT) 9090 HTTP 127.0.0.1 external-controller (API) 46569 TCP 0.0.0.0 透明代理(nftables redirect 目标) 1.3 Docker 容器 容器 网络 IP 端口映射 axonhub axonhub_default (bridge) 172.18.0.2 127.0.0.1:8090 → 8090/tcp Docker 网络设备: ...

2026年7月21日

GitLab 远程订阅教程

GitLab 远程订阅教程 适用场景:把代理订阅或静态配置文件托管在 GitLab 私有仓库,通过带访问令牌的仓库直链生成一个可远程读取的订阅地址,供代理客户端定时拉取。你会学到令牌创建、URL 拼接与安全注意事项。 ...

2026年4月4日

Linux 下 Clash 安装与配置

Linux 下 Clash 安装与配置 适用场景:在 Linux 服务器上部署 Clash 作为代理出口,支持订阅导入、系统代理、Web 面板与每周自动更新订阅。本文命令在 X86_64 平台下 CentOS 7 验证(对应 clash-linux-amd64 包)。 ...

2026年4月4日

Windows 使用 Meta 内核

Windows 使用 Meta 内核 适用场景:不依赖 GUI 客户端,在 Windows 上直接使用 Clash.Meta 内核(命令行启动),并用 Yacd 网页面板配合 IIS 进行可视化控制。本文按步骤记录完整流程。 1. 下载并解压 Meta 内核 下载 meta 内核并解压缩: ...

2026年4月4日

搭建 Hysteria2 教程

搭建 Hysteria2 教程 适用场景:搭建一个基于 QUIC 的 Hysteria2 代理服务端,利用 sing-box 的 ACME 功能自动签发 TLS 证书,无需手动管理证书文件。 1. 安装 sing-box bash <(curl -fsSL https://sing-box.app/deb-install.sh) 2. 设置开机自启 sudo systemctl enable sing-box 3. 编辑配置文件 cd /etc/sing-box vim config.json 4. Hysteria2 配置示例 { "log": { "disabled": false, "level": "error", "timestamp": true }, "inbounds": [ { "type": "hysteria2", "tag": "hysteria2-in", "listen": "::", "listen_port": 你的端口, "users": [ { "password": "你的密码" } ], "tls": { "enabled": true, "alpn": [ "h3" ], "certificate_path": "", "key_path": "", "acme": { "domain": [ "你的域名" ], "dns01_challenge": { "provider": "cloudflare", "api_token": "你的dns_token" } } } } ], "outbounds": [ { "type": "direct", "tag": "direct" } ] } 配置要点: ...

2026年4月4日

搭建 Naive Proxy

搭建 Naive Proxy 适用场景:搭建一个基于 HTTP/2 与 Chromium 网络栈的 NaiveProxy 代理服务端,客户端流量伪装为普通 HTTPS 访问。本文记录使用 sing-box 搭建的完整流程。 1. 安装 sing-box bash <(curl -fsSL https://sing-box.app/deb-install.sh) sudo systemctl enable sing-box 2. 生成自签证书 sing-box generate tls-keypair bing.com -m 1000 执行后会输出一份私钥和证书。你可以将输出内容分别保存到以下文件中: ...

2026年4月4日

搭建 Snell Server

搭建 Snell Server 适用场景:为 Surge 客户端搭建一个轻量的自建代理服务端。本文参考 Surge | 部署 Snell Server – DivineEngine,并结合实际部署过程做了简化整理,从安装依赖到 systemd 托管全流程覆盖。 ...

2026年4月4日

Loon 进阶配置示例

Loon 进阶配置示例 适用场景:把 Loon 从"能上网"升级为"按地区自动选路、故障自动转移"的进阶配置。这个文件保存了一份 Loon 进阶配置示例,适合作为分地区策略、故障转移与远程规则的参考模板。 ...

2024年4月18日