{"id":7688726,"url":"https://github.com/haixuxu/go-gwk","last_synced_at":"2025-04-23T20:32:37.863Z","repository":{"id":189497062,"uuid":"680666357","full_name":"haixuxu/go-gwk","owner":"haixuxu","description":"A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.","archived":false,"fork":false,"pushed_at":"2024-05-10T12:48:13.000Z","size":80,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T20:11:40.524Z","etag":null,"topics":["expose","frp","gwk","nat","ngrok","proxy","reverse-proxy","tunnel"],"latest_commit_sha":null,"homepage":"","language":"Go","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/haixuxu.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}},"created_at":"2023-08-20T02:01:11.000Z","updated_at":"2024-11-10T03:47:55.000Z","dependencies_parsed_at":"2023-08-20T13:29:24.528Z","dependency_job_id":"68eaf862-8d96-4bff-b71a-461f1f363a47","html_url":"https://github.com/haixuxu/go-gwk","commit_stats":null,"previous_names":["xuxihai123/go-gwk","haixuxu/go-gwk"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haixuxu%2Fgo-gwk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haixuxu%2Fgo-gwk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haixuxu%2Fgo-gwk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haixuxu%2Fgo-gwk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haixuxu","download_url":"https://codeload.github.com/haixuxu/go-gwk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250509905,"owners_count":21442519,"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":["expose","frp","gwk","nat","ngrok","proxy","reverse-proxy","tunnel"],"created_at":"2024-04-09T12:03:35.132Z","updated_at":"2025-04-23T20:32:36.974Z","avatar_url":"https://github.com/haixuxu.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# gwk\n\nGwk is a tool that helps you expose your local servers or services to the\ninternet, even in a private network. It supports both TCP and subdomain modes.\n\n# Download\n\n[Download](https://github.com/xuxihai123/go-gwk/releases)\n\n## build\n\n```bash\nbash package.sh\n```\n\n## usage\n\nserverHost default is `gank.75cos.com`\n\n```bash\n# example 1 , detault dispatch to 127.0.0.1:8080\ngwk\n```\n\n## client more  example\n\n```bash\n# example 2\ngwk  --port 8080\n# example 3\ngwk  --subdomain testabc001 --port 8000\n# example 4\ngwk  -c client.json\n```\n\n## develop \n\n\n1. generate root CA\n\n```bash\nbash ./scripts/gen_rootca.sh\n```\n\n2. generate domain cert\n\n```bash\nbash ./scripts/gen_certbyca.sh\n```\n\n3. move `certs` to `etc` directory\n\n\n## client\n\n```bash\ngo run ./bin/gwk/main.go  -c etc/client.json\n```\n\nclient.json\n\n```json\n{\n  \"serverHost\": \"gank007.com\",\n  \"serverPort\": 4443,\n  \"tunnels\": {\n    \"tcp001\": {\n      \"protocol\": \"tcp\",\n      \"localPort\": 5000,\n      \"remotePort\": 7200\n    },\n    \"tcp002\": {\n      \"protocol\": \"tcp\",\n      \"localPort\": 5000,\n      \"remotePort\": 7500\n    },\n    \"webapp02\": {\n      \"protocol\": \"web\",\n      \"localPort\": 4900,\n      \"subdomain\": \"app02\"\n    },\n    \"webappmob\": {\n      \"protocol\": \"web\",\n      \"localPort\": 9000,\n      \"subdomain\": \"mob\"\n    }\n  }\n}\n```\n\n## setup a gwk server\n\n```bash\ngo run ./bin/gwkd/main.go  -c etc/server.json\n```\n\nserver.json\n\n```json\n{\n  \"serverHost\": \"gank007.com\",\n  \"serverPort\": 4443,\n  \"httpAddr\": 8080,\n  \"httpsAddr\": 8043,\n  \"tlsCA\":\"./scripts/certs/rootCA.crt\",\n  \"tlsCrt\":\"./scripts/certs/gank007.com/my.crt\",\n  \"tlsKey\":\"./scripts/certs/gank007.com/my.key.pem\"\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaixuxu%2Fgo-gwk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaixuxu%2Fgo-gwk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaixuxu%2Fgo-gwk/lists"}