{"id":51422989,"url":"https://github.com/paltaio/zeronat","last_synced_at":"2026-07-05T01:01:41.361Z","repository":{"id":362394295,"uuid":"1258826714","full_name":"paltaio/zeronat","owner":"paltaio","description":"Minimal encrypted reverse tunnel for services behind CG-NAT","archived":false,"fork":false,"pushed_at":"2026-06-29T00:52:38.000Z","size":741,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T01:20:41.516Z","etag":null,"topics":["cgnat","l2","pppoe","rust","tcp","tunnel","udp"],"latest_commit_sha":null,"homepage":"https://paltaio.github.io/zeronat/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paltaio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-04T00:42:06.000Z","updated_at":"2026-06-29T00:52:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/paltaio/zeronat","commit_stats":null,"previous_names":["paltaio/zeronat"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/paltaio/zeronat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fzeronat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fzeronat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fzeronat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fzeronat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paltaio","download_url":"https://codeload.github.com/paltaio/zeronat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fzeronat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35140189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cgnat","l2","pppoe","rust","tcp","tunnel","udp"],"created_at":"2026-07-05T01:01:37.459Z","updated_at":"2026-07-05T01:01:40.440Z","avatar_url":"https://github.com/paltaio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zeronat\n\nMinimal encrypted reverse tunnel for services behind CG-NAT. Single static Rust binary, TCP + UDP, Noise-encrypted.\n\nYou have a service behind CG-NAT (home/office) and a cheap cloud VM with a public IP. zeronat exposes your local ports through the VM without creating accounts, no third-party services, just a VPS.\n\nThe server runs on the public host. The client runs behind NAT, dials out, and holds one control connection. A hit on a public port is forwarded to the matching local service on the client. Every connection is Noise-encrypted (`NNpsk0`, X25519 + ChaCha20-Poly1305 + BLAKE2s) from a shared secret.\n\n## Install\n\n```bash\ncurl -fsSL https://paltaio.github.io/zeronat/get.sh | sh\n```\n\nPicks Docker or a systemd service, generates the secret, asks what to forward, and prints the command to run behind CG-NAT.\n\n## Usage\n\n```bash\n# On the public host:\nZERONAT_SECRET=somelongsecret zeronat server --control 2222 --tcp 443 --udp 51820\n\n# Behind CG-NAT:\nZERONAT_SECRET=somelongsecret zeronat client --server \u003cpublic-ip\u003e:2222 --tcp 443 --udp 51820\n```\n\n`--tcp 443` maps to `127.0.0.1:443`. Remap with `--tcp 443:10.0.0.5:443`; `--udp` works the same. Open the control port (2222, UDP and TCP) on the server's firewall.\n\nRouting, all-ports forwarding, the TAP bridge, DHT discovery, and the full CLI live at https://paltaio.github.io/zeronat/.\n\n## License\n\nMIT, Copyright (c) 2026 Palta Studios. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaltaio%2Fzeronat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaltaio%2Fzeronat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaltaio%2Fzeronat/lists"}