{"id":13557415,"url":"https://github.com/rofl0r/nat-tunnel","last_synced_at":"2025-03-17T04:33:50.382Z","repository":{"id":46154793,"uuid":"149945509","full_name":"rofl0r/nat-tunnel","owner":"rofl0r","description":"NAT Tunnel: to effortlessly serve from behind NAT","archived":false,"fork":false,"pushed_at":"2021-11-10T18:18:24.000Z","size":19,"stargazers_count":87,"open_issues_count":2,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-14T12:46:33.630Z","etag":null,"topics":["nat","port-forwarding","proxy","server","tcp","tunnel","tunnel-client","tunnel-server"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rofl0r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-23T03:45:00.000Z","updated_at":"2024-08-12T19:41:53.000Z","dependencies_parsed_at":"2022-08-26T16:51:14.922Z","dependency_job_id":null,"html_url":"https://github.com/rofl0r/nat-tunnel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fnat-tunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fnat-tunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fnat-tunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fnat-tunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rofl0r","download_url":"https://codeload.github.com/rofl0r/nat-tunnel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221672307,"owners_count":16861433,"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":["nat","port-forwarding","proxy","server","tcp","tunnel","tunnel-client","tunnel-server"],"created_at":"2024-08-01T12:04:20.341Z","updated_at":"2024-10-27T12:01:49.911Z","avatar_url":"https://github.com/rofl0r.png","language":"Python","funding_links":[],"categories":["Python","\u003ca id=\"01e6651181d405ecdcd92a452989e7e0\"\u003e\u003c/a\u003e工具","server"],"sub_categories":["\u003ca id=\"9d6789f22a280f5bb6491d1353b02384\"\u003e\u003c/a\u003e隧道\u0026\u0026穿透"],"readme":"NAT Tunnel v0.01\n----------------\nIf you have access to a server with public IP and unfiltered ports\nyou can run NAT Tunnel (NT)  server on the server, and NT client\non your box behind NAT.\nthe server requires 2 open ports: one for communication with the\nNT client (--admin), the other for regular clients to connect to\n(--public: this is the port you want your users to use).\n\nThe NT client opens a connection to the server's admin ip/port.\nAs soon as the server receives a new connection, it signals the\nNT client, which then creates a new tunnel connection to the\nserver, which is then connected to the desired service on the\nNT client's side (--local)\n\nThe connection between NT Client and NT Server on the admin\ninterface is protected by a shared secret against unauthorized use.\nAn adversary who can intercept packets could crack the secret\nif it's of insufficient complexity. At least 10 random\ncharacters and numbers are recommended.\n\nExample:\nYou have a HTTP server listening on your local machine on port 80.\nYou want to make it available on your cloud server/VPS/etc's public\nIP on port 7000.\nWe use port 8000 on the cloud server for the control channel.\n\nServer:\n\n    natsrv.py --mode server --secret s3cretP4ss --public 0.0.0.0:7000 --admin 0.0.0.0:8000\n\nClient:\n\n    natsrv.py --mode client --secret s3cretP4ss --local localhost:80 --admin example.com:8000\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofl0r%2Fnat-tunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frofl0r%2Fnat-tunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofl0r%2Fnat-tunnel/lists"}