Skip to content
r.

OpenSurge-for-Mac

YTwsy/OpenSurge-for-Mac · Public GitHub repository

Surge-style whole-home gateway and control plane for macOS with IPv4/IPv6 support— mihomo TUN, dnsmasq-powered DHCP/DNS, per-device routing, and an agent-friendly validation workspace.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

OpenSurge-for-Mac live demo screenshot
Captured from the live demo · 2026-11-03

About this project

Author-written excerpt from the project README.

把 Mac 变成可按设备分流的 Surge 风格全屋透明代理网关——既可让指定设备通过旁路由手动接入,也支持 DHCP/DNS 自动接管与实验性下游 IPv6 接管

OpenSurge for Mac 是一个开源的 Surge 风格 macOS 网关与控制面。多数用户可以先从 旁路由模式开始:主路由 DHCP 保持开启,只让需要接入的设备使用稳定 IPv4,并把网关和 DNS 指向 Mac。需要让同一局域网的设备自动接入时,也可以选择局域网 DHCP 接管;有独立 AP、SSID 或 VLAN 时,则可以使用独立下游 LAN。三种模式均可按需启用实验性的 IPv6 接管。

无论采用哪种模式,你都可以为已登记设备配置不同的出口策略:手机和 Mac 一起走规则 分流、游戏机连美服、电视走流媒体节点。在局域网 DHCP 接管和独立下游 LAN 模式下, 接入相应网络的手机、电视、PS5 和 VR 设备,都可以自动从 Mac 获取 DHCP/DNS,无需逐台 修改网关和 DNS。

Requirements and intended audience

把 Mac 变成可按设备分流的 Surge 风格全屋透明代理网关——既可让指定设备通过旁路由手动接入,也支持 DHCP/DNS 自动接管与实验性下游 IPv6 接管

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-28. Source: https://github.com/YTwsy/OpenSurge-for-Mac/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-02. Saved release: v0.3.0 · 2026-10-02. These dates do not guarantee ongoing maintenance.

Technologies
Go
Licence
GPL-3.0. Distributing the software or derivatives can require sharing source under the same licence.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories