TGViewer
CF中转IP CF中转IP @cf_nat · 11.2K subscribers
Post #38840 27.1K
cfnat-20260417.zip91.3 MB
Usage of cfnat:
-addr string
本地监听的 IP 和端口 (default "0.0.0.0:1234")
-code int
HTTP/HTTPS 响应状态码 (default 200)
-colo string
筛选数据中心例如 HKG,SJC,LAX (多个数据中心用逗号隔开,留空则忽略匹配)
-delay int
有效延迟(毫秒),超过此延迟将断开连接 (default 300)
-domain string
响应状态码检查的域名地址 (default "cloudflaremirrors.com/debian")
-ipnum int
提取的有效IP数量 (default 20)
-ips string
指定生成IPv4还是IPv6地址 (4或6) (default "4")
-num int
目标负载 IP 数量 (default 5)
-port int
转发的目标端口 (default 443)
-random
是否随机生成IP,如果为false,则从CIDR中拆分出所有IP (default true)
-task int
并发请求最大协程数 (default 100)
-tls
是否为 TLS 端口 (default true)
2024年9月8日 已经更新对windows 7 以及 安卓termux支持
2024年9月22日 修复一些bug,删除一些不必要的参数
2024年10月22日 更改状态检测机制,一次检查失败直接切换IP,新增armv5 v6 v7 独立版本
2024年10月30日 修复了一些bug,状态检测改成2次连续失败再切换,此版本后续基本没有再更新的必要
2025年12月10日 通过引入 IPManager 封装状态管理 + Context 控制 goroutine 生命周期,解决了旧版本全局变量不安全、goroutine 无法优雅退出的问题,同时进行了代码模块化拆分和 API 现代化升级。
2026年4月17日 修复cloudflare 禁止 ip直接 trae的问题。
  • 👍 49
  • ❤ 10
  • 🔥 2
  • 😁 2
  • 🖕 2
  • ⚡ 1
  • 👏 1
More from @cf_nat
  1. Jul 26, 2026用今天嫖来的claude max 20x逆向了warp-svc,搞了个小玩具。看到类似更完善的项目usque,不过轮子还是自己造的圆。😁
  2. Jul 1, 2026win gui和 windows版本x-tunnel源码
  3. Jul 1, 2026做了一个带tun模式分流的客户端,无缝替换之前的版本。
  4. Jun 8, 2026app源码
  5. Jun 8, 2026极简版的CF优选IP
  6. Apr 17, 2026x-tunnel 源码,献给有需要的人。没啥技术含量,只希望这种应用思路激发更多的创作空间。
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →