{"id":15706721,"url":"https://github.com/ccbikai/without-ipv4","last_synced_at":"2025-05-12T13:45:48.913Z","repository":{"id":237256234,"uuid":"793949139","full_name":"ccbikai/without-ipv4","owner":"ccbikai","description":"没有公网 IPv4 也能玩转 Homelab 远程访问","archived":false,"fork":false,"pushed_at":"2024-05-02T13:29:03.000Z","size":40,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T03:59:46.111Z","etag":null,"topics":["homelab","ipv4","ipv6","natmap"],"latest_commit_sha":null,"homepage":"https://chi.miantiao.me/posts/without-ipv4/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccbikai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-30T07:11:57.000Z","updated_at":"2025-05-01T17:19:36.000Z","dependencies_parsed_at":"2024-05-02T14:50:19.495Z","dependency_job_id":"0b54cdb4-dea4-4ec0-8bcd-7c7967501cc1","html_url":"https://github.com/ccbikai/without-ipv4","commit_stats":null,"previous_names":["ccbikai/without-ipv4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccbikai%2Fwithout-ipv4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccbikai%2Fwithout-ipv4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccbikai%2Fwithout-ipv4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccbikai%2Fwithout-ipv4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccbikai","download_url":"https://codeload.github.com/ccbikai/without-ipv4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253749942,"owners_count":21958224,"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":["homelab","ipv4","ipv6","natmap"],"created_at":"2024-10-03T20:27:17.764Z","updated_at":"2025-05-12T13:45:48.888Z","avatar_url":"https://github.com/ccbikai.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 没有公网 IPv4 也能玩转 Homelab 远程访问\n\n家用 Homelab 远程访问的场景大多有三个：\n\n1. 共享内部服务到外网访问 (比如 RSSHub)；\n2. 外部设备连接家庭内网，访问内网的各种服务/设备；\n3. PT 连通性和上传速度。\n\n常用的方案有 FRP 代理、IPv6、Zerotier 等，但都有各自的缺点：\n\n1. FRP 非直连，依赖代理服务器带宽，不一定跑慢带宽；\n2. IPv6 要求外部设备的网络也支持 IPv6，好多办公网络是不支持的；\n3. Zerotier 有时间不能直连，需要中转速度很慢；\n4. **都无法解决 PT 上传**的问题。\n\n**我现在折腾的方案用了大概两年，稳定性很好，几乎可以媲美公网 IPv4。**\n\n但是也有一些前置条件：\n\n1. 宽带 NAT 为 NAT1(Full Cone)；\n2. 路由拨号，路由器系统最好是 Openwrt (其他 Linux 发行版也行，但无法抄作业)。\n3. 有一个内网设备支持运行 Clash (运行在主路由也行)。\n\n也有一些好处：\n\n1. 不需要代理服务器，可以跑满带宽。\n2. 不依赖 IPv6，有 IPv6 更好一些。\n3. 支持 PT 上传。\n\n**如果你的网络和设备满足上面的条件，就可以按照我的方案来尝试了。**\n\n此仓库的代码是用来部署到 Vercel 服务端的, 相关教程见：\u003chttps://chi.miantiao.me/posts/without-ipv4/\u003e\n\n## 部署教程\n\n1. 通过下面按钮一键部署此下面到 Vercel\n\n[![Vercel](https://vercel.com/button)](https://vercel.com/new/miantiao/clone?repository-url=https%3A%2F%2Fgithub.com%2Fccbikai%2Fwithout-ipv4)\n\n2. 创建 KV Database 存储，并且关联到此项目\n\n![image](https://github.com/ccbikai/without-ipv4/assets/2959393/41d52fa9-0e90-4572-a45d-5893bab68bf1)\n\n3. 再 Deployments 中重写部署一次\n\n![image](https://github.com/ccbikai/without-ipv4/assets/2959393/35e617fe-ac06-4e82-8aab-f5a583a3f134)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccbikai%2Fwithout-ipv4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccbikai%2Fwithout-ipv4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccbikai%2Fwithout-ipv4/lists"}