Skip to content
项目

关于

在 OpenWrt 上使用 sing-box 实现透明代理。

系统与基础设施

这些数字如何统计

实测星标增长

24小时
+1
7天
+3
15天
+7
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.zh.md

原文

GitHub License GitHub Tag GitHub Downloads (all assets, all releases) GitHub Repo stars Telegram

中文 | English

Momo

在 OpenWrt 上使用 sing-box 进行透明代理。

环境要求

  • OpenWrt >= 24.10
  • Linux Kernel >= 5.13
  • firewall4

功能

  • 透明代理 (Redirect/TPROXY/TUN, IPv4 和/或 IPv6)
  • 访问控制
  • 配置文件编辑器
  • 定时重启

安装和更新

A. 从软件源安装(推荐)

  1. 添加源
# 只需运行一次
wget -O - https://github.com/nikkinikki-org/OpenWrt-momo/raw/refs/heads/main/feed.sh | ash
  1. 安装
# 你可以从 shell 执行命令安装或者从 LuCI 的`软件包`菜单安装
# for opkg
opkg install momo
opkg install luci-app-momo
opkg install luci-i18n-momo-zh-cn
# for apk
apk add momo
apk add luci-app-momo
apk add luci-i18n-momo-zh-cn

B. 从发行版安装

wget -O - https://github.com/nikkinikki-org/OpenWrt-momo/raw/refs/heads/main/install.sh | ash

卸载并重置

wget -O - https://github.com/nikkinikki-org/OpenWrt-momo/raw/refs/heads/main/uninstall.sh | ash

如何使用

查看 Wiki

如何工作

  1. 启动 sing-box。
  2. 设置定时重启。
  3. 从配置文件读取必要的参数。
  4. 配置 IP 规则/路由。
  5. 生成防火墙配置并应用。

注意上述步骤可能因配置而变动。

编译

# 添加源
echo "src-git momo https://github.com/nikkinikki-org/OpenWrt-momo.git;main" >> "feeds.conf.default"
# 更新并安装源
./scripts/feeds update -a
./scripts/feeds install -a
# 编译
make package/luci-app-momo/compile

编译结果可以在bin/packages/your_architecture/momo内找到。

依赖

  • ca-bundle
  • curl
  • firewall4
  • ip-full
  • kmod-inet-diag
  • kmod-nft-socket
  • kmod-nft-tproxy
  • kmod-tun
  • sing-box >= 1.12

贡献者

探索相关项目

加载中…