{"id":17703217,"url":"https://github.com/cmliu/cfnat-windows-gui","last_synced_at":"2025-04-13T08:55:51.561Z","repository":{"id":258028223,"uuid":"871737004","full_name":"cmliu/CFnat-Windows-GUI","owner":"cmliu","description":"CFnat 为 Windows 用户设计的 GUI 程序界面。","archived":false,"fork":false,"pushed_at":"2024-11-25T17:22:15.000Z","size":529,"stargazers_count":1274,"open_issues_count":7,"forks_count":508,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T05:06:35.735Z","etag":null,"topics":["cfnat","cloudflare","cloudflare-ip","cloudflare-ips"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T19:45:58.000Z","updated_at":"2025-04-05T13:15:17.000Z","dependencies_parsed_at":"2024-12-06T06:10:55.105Z","dependency_job_id":null,"html_url":"https://github.com/cmliu/CFnat-Windows-GUI","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.2941176470588235,"last_synced_commit":"509de00b374e69104da61642af6ddc7ff109fe59"},"previous_names":["cmliu/cfnat-windows-gui"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCFnat-Windows-GUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCFnat-Windows-GUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCFnat-Windows-GUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmliu%2FCFnat-Windows-GUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmliu","download_url":"https://codeload.github.com/cmliu/CFnat-Windows-GUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688545,"owners_count":21145764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cfnat","cloudflare","cloudflare-ip","cloudflare-ips"],"created_at":"2024-10-24T20:05:46.596Z","updated_at":"2025-04-13T08:55:51.535Z","avatar_url":"https://github.com/cmliu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CFnat-Windows-GUI\n首先声明，这款软件并非我原创开发，而是目前了解到由 **股神** 在 [CF中转IP 频道](https://t.me/CF_NAT/38840) 发布的一款实时筛选 Cloudflare 数据中心的软件。我所编写的GUI是在这位开发者的原始版本基础上进行的**二次开发**。\n\nCFNAT 是一款自动查找并优化 Cloudflare IP 转发的工具，旨在**解决泛播 IP 路由不稳定的问题**。如果你曾找到过速度不错的 Cloudflare IP，CFNAT 能帮助你快速筛选出最佳 IP 并实现端口转发，从而提升网络使用体验。因此，这款工具对于**移动、广电网络用户来说尤为明显**！\n\n- **视频教程：[CFnat Win 最强官方优选！Cloudflare优选新思路，专治泛播IP动态路由，提升网络体验！](https://youtu.be/N2Y9TsiBgls)**\n- **相关项目：[CFnat-Docker](https://github.com/cmliu/CFnat-Docker)**\n- **Telegram交流群：[@CMLiussss](https://t.me/CMLiussss)**\n\n# 免责声明\nCFnat 相关项目仅供教育、研究和安全测试目的而设计和开发。本项目旨在为安全研究人员、学术界人士及技术爱好者提供一个探索和实践网络通信技术的工具。\n在下载和使用本项目代码时，使用者必须严格遵守其所适用的法律和规定。使用者有责任确保其行为符合所在地区的法律框架、规章制度及其他相关规定。\n\n### 使用条款\n\n- **教育与研究用途**：本软件仅可用于网络技术和编程领域的学习、研究和安全测试。\n- **禁止非法使用**：严禁将 **CFnat-Windows-GUI** 用于任何非法活动或违反使用者所在地区法律法规的行为。\n- **使用时限**：基于学习和研究目的，建议用户在完成研究或学习后，或在安装后的**24小时内，删除本软件及所有相关文件。**\n- **免责声明**：**CFnat-Windows-GUI** 的创建者和贡献者不对因使用或滥用本软件而导致的任何损害或法律问题负责。\n- **用户责任**：**用户对使用本软件的方式以及由此产生的任何后果完全负责。**\n- **无技术支持**：本软件的创建者不提供任何技术支持或使用协助。\n- **知情同意**：使用 **CFnat-Windows-GUI** 即表示您已阅读并理解本免责声明，并同意受其条款的约束。\n\n**请记住**：本软件的主要目的是促进学习、研究和安全测试。作者不支持或认可任何其他用途。使用者应当在合法和负责任的前提下使用本工具。\n\n---\n\n![GUI](./gui.png)\n\n## 参数说明\n- 也可直接使用`cmd`带参执行原程序，例如：`cfnat-windows-amd64.exe -addr=\"0.0.0.0:1234\" -colo=HKG -delay=100 -port=80 -tls=false`\n```\n  -addr string\n        服务端口: 本地监听的 IP 和端口 (default \"0.0.0.0:1234\")\n  -code int\n        HTTP/HTTPS 响应状态码 (default 200)\n  -colo string\n        数据中心: 筛选数据中心例如 HKG,SJC,LAX (多个数据中心用逗号隔开,留空则忽略匹配)\n  -delay int\n        有效延迟（毫秒）: 超过此延迟将断开连接 (default 300)\n  -domain string\n        响应状态码检查的域名地址 (default \"cloudflaremirrors.com/debian\")\n  -ipnum int\n        有效IP数: 提取的有效IP数量 (default 20)\n  -ips string\n        转发IP类型: 指定生成IPv4还是IPv6地址 (4或6) (default \"4\")\n  -num int\n        负载IP数: 目标负载 IP 数量 (default 10)\n  -port int\n        转发目标端口 (default 443)\n  -random\n        是否随机生成IP，如果为false，则从CIDR中拆分出所有IP (default true)\n  -tls\n        是否为 TLS 端口 (default true)\n  -task int\n        最大并发请求数: 并发请求最大协程数 (default 100)\n```\n\n## 经验之谈\n1. **CFnat**和**梯子**在**同一台设备上运行**时使用**本地服务IP:端口**连接。\n2. **CFnat**和**梯子**分别处在**同一局域网内的两台设备上运行**时使用**内网服务IP:端口**连接。\n3. 如果你是使用 [cmliu/edgetunnel](https://github.com/cmliu/edgetunnel) 的节点，可将**本地服务IP:端口**和**内网服务IP:端口**都添加至`ADD`变量里，直接订阅食用即可\n4. **移动/广电**用户设置数据中心`HKG`直接起飞！**电信/联通**用户设置`SJC,LAX`！\n5. 在跑过一次优选之后，可在`colo`文件夹里可以看到`ip.csv`扫描结果, 里面就能看到你的当前网络网络环境下能跑出来的所有数据中心！\n\n## GUI文件结构\n```shell\nCFnat Windows GUI.exe      # GUI本体\ncfnat.ini                  # GUI配置文件\ncfnat-windows-386.exe      # cfnat x86_32位 原程序本体\ncfnat-windows-amd64.exe    # cfnat x86_64位 原程序本体\ncfnat-windows-arm.exe      # cfnat arm_32位 原程序本体\ncfnat-windows-arm64.exe    # cfnat arm_64位 原程序本体\ncfnat-windows7-386.exe     # cfnat Win7_x86_32位 原程序本体 Win7专用\ncfnat-windows7-amd64.exe   # cfnat Win7_x86_64位 原程序本体 Win7专用\ncolo\n ├─ colo-windows-386.exe   # colo x86_32位 用于生成缓存IP库\n ├─ colo-windows-amd64.exe # colo x86_64位 用于生成缓存IP库\n ├─ colo-windows-arm.exe   # colo arm_32位 用于生成缓存IP库\n ├─ colo-windows-arm64.exe # colo arm_64位 用于生成缓存IP库\n ├─ ip.csv                 # colo 扫描结果 用于生成缓存IP库\n ├─ ips-v4.txt             # IPv4库\n ├─ ips-v6.txt             # IPv6库\n └─ locations.json         # CF数据中心json文件\nips-v4.txt                 # 缓存IPv4库\nips-v6.txt                 # 缓存IPv6库\nlocations.json             # CF数据中心json文件\nNewtonsoft.Json.dll        # 验证版本信息组件\nNewtonsoft.Json.xml        # 验证版本信息组件\n```\n\n## Star 星星走起\n[![Stargazers over time](https://starchart.cc/cmliu/CFnat-Windows-GUI.svg?variant=adaptive)](https://starchart.cc/cmliu/CFnat-Windows-GUI)\n\n# 致谢\n我自己的脑洞，ChatGPT，[股神](https://t.me/CF_NAT/38840)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcfnat-windows-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmliu%2Fcfnat-windows-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmliu%2Fcfnat-windows-gui/lists"}