一个CLI工具,通过wgcf控制Cloudflare WARP,并使用nftables强制断网开关:在隧道断开时阻止所有非隧道流量。

Stars

7

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-12

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它利用nftables的drop裁决实现不可绕过的断网开关,刻意排除DNS和局域网豁免以完全避免泄漏,并能与Tailscale无缝协作。

适合谁使用

  • 注重隐私的Cloudflare WARP用户
  • 需要为WireGuard隧道提供可靠断网开关的用户
  • Arch Linux(已测试)和Debian/Ubuntu用户
  • 同时运行Tailscale的开发人员或系统管理员

典型使用场景

  • 当WARP隧道意外断开时防止真实IP泄漏
  • 确保只有隧道流量离开设备,阻止所有其他出站连接
  • 在Tailscale和其他nftables规则共存的情况下运行断网开关
  • 通过systemd服务自动在启动时设置WARP和断网开关

项目优势

  • 通过nftables的drop裁决实现即时且不可绕过的阻断
  • 无DNS或局域网豁免,彻底杜绝ISP DNS或本地子网泄漏
  • 同时支持IPv4和IPv6,包括邻居发现协议
  • 通过nftables.service和wg-quick@wgcf.service实现启动持久化

使用前须知

  • 需要预先配置wgcf并生成`/etc/wireguard/wgcf.conf`
  • 断网开关激活期间有意隔离局域网访问(无本地子网流量)
  • Debian/Ubuntu支持已实现但尚未在实际硬件上确认

README 快速开始

Usage

项目描述

Minimal CLI tool to manage a Cloudflare WARP (wgcf) tunnel with an nftables kill switch that blocks all traffic unless the VPN is active, preventing IP leaks.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

PostmanReminisce
PostmanReminisce GitHub avatar

Wisp-VPN

Wisp VPN is an open-source, free Windows VPN client based on WireGuard targeting users in Russia and CIS to bypass censorship without registration, logs, or speed limits.

C#
118
bjan
精选
bjan GitHub avatar

claudemux

Claudemux is a lightweight, dependency-minimal message bus that lets multiple Claude Code sessions communicate in real-time over tmux, enabling one session to ask another a question and receive the answer without manual intervention.

AI 与机器学习AI 智能体
9
l0ng-ai
精选
l0ng-ai GitHub avatar

tty7

tty7 is a fast, GPU-accelerated terminal workbench with persistent sessions, built-in input tools, SSH support, and coding agent awareness.

开发者工具CLI 与终端
359