{"id":24760919,"url":"https://github.com/ziozzang/socks5-proxy","last_synced_at":"2025-10-05T21:49:58.964Z","repository":{"id":68376652,"uuid":"41676895","full_name":"ziozzang/socks5-proxy","owner":"ziozzang","description":"Socks5 Proxy with Go Lang. support USER_ID/PASSWORD. able to bypass HTTPS(SNI) censorship","archived":false,"fork":false,"pushed_at":"2021-03-13T12:14:21.000Z","size":16,"stargazers_count":33,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T11:46:59.566Z","etag":null,"topics":["anti-censorship","authentication","golang","proxy","proxy-server","socks","socks5-proxy"],"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/ziozzang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-08-31T13:28:59.000Z","updated_at":"2024-10-13T04:24:07.000Z","dependencies_parsed_at":"2023-04-24T14:02:14.434Z","dependency_job_id":null,"html_url":"https://github.com/ziozzang/socks5-proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ziozzang/socks5-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziozzang%2Fsocks5-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziozzang%2Fsocks5-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziozzang%2Fsocks5-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziozzang%2Fsocks5-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziozzang","download_url":"https://codeload.github.com/ziozzang/socks5-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziozzang%2Fsocks5-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278526244,"owners_count":26001325,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["anti-censorship","authentication","golang","proxy","proxy-server","socks","socks5-proxy"],"created_at":"2025-01-28T18:20:05.424Z","updated_at":"2025-10-05T21:49:58.925Z","avatar_url":"https://github.com/ziozzang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"SOCKS 5 Proxy with Go Lang\n=====\n\nOriginal Library was imported from http://github.com/oov/socks5\n\nI just modified and build for personal use.\n\nthis code support configuration loading.\n\n* IP mask must be CIDR format like \"1.2.3.0/24\". If you want allow all client, use CIDR as \"0.0.0.0/0\"\n* If ID/PW is supplied, use that. or IP restrictions\n\nAdditional Feature\n-----\n* HTTPS(SNI) Censorship in korea avoid function.\n    * you can check the code at \"socks5/server.go\"\n    * Tested 2019-02-19 (SK Broadband, Korea)\n\n* IPv6 Support\n    * Some ISP only support IPv6 connection environment (Ex: Mobile phone tethering). and this proxy can support that.\n    * tested OK. (2021-03-13 / SK telecomm, iPhone + Macbook Tethering, Korea)\n\n* Can be run as Cascade/Upstream Proxy.\n    * You can setup with Adguard or some program. and works well :)\n\nInstallation\n============\n* if you want to use with windows, use released binary.\n* if you want to use with linux(x86_64), just execute these command in console.\n```\nwget https://github.com/ziozzang/socks5-proxy/releases/download/1.0/socks5-proxy \u0026\u0026 chmod +x socks5-proxy\nwget https://github.com/ziozzang/socks5-proxy/releases/download/1.0/socks5-proxy.config.template \n```\n\n\nor you can run with docker. :)\n\n```\n\ndocker build -t socks5proxy .\ndocker run --rm -it -v `pwd`/socks5-proxy.config:/app/socks5-proxy.config --net=host socks5proxy\n\n```\n\n* don't forget to edit configuration.\n\nOriginal socks5\n======\n\nPackage socks5 implements a \"SOCKS Protocol Version 5\" server.\n\nThis server supports a subset of RFC 1928:\n\n* auth methods: \"NO AUTHENTICATION REQUIRED\", \"USERNAME/PASSWORD\"\n* commands: \"CONNECT\"\n* address types: \"IP V4 address\", \"DOMAINNAME\", \"IP V6 address\"\n(but tested \"DOMAINNAME\" only)\n\nINSTALL\n-------\n\n```sh\ngo get -u github.com/oov/socks5\n```\n\nUSAGE\n-----\n\n```go\npackage main\n\nimport (\n\t\"github.com/oov/socks5\"\n\t\"log\"\n)\n\nfunc main() {\n\tsrv := socks5.New()\n\tsrv.AuthUsernamePasswordCallback = func(c *socks5.Conn, username, password []byte) error {\n\t\tuser := string(username)\n\t\tif user != \"guest\" {\n\t\t\treturn socks5.ErrAuthenticationFailed\n\t\t}\n\n\t\tlog.Printf(\"Welcome %v!\", user)\n\t\tc.Data = user\n\t\treturn nil\n\t}\n\tsrv.HandleConnectFunc(func(c *socks5.Conn, host string) (newHost string, err error) {\n\t\tif host == \"example.com:80\" {\n\t\t\treturn host, socks5.ErrConnectionNotAllowedByRuleset\n\t\t}\n\t\tif user, ok := c.Data.(string); ok {\n\t\t\tlog.Printf(\"%v connecting to %v\", user, host)\n\t\t}\n\t\treturn host, nil\n\t})\n\tsrv.HandleCloseFunc(func(c *socks5.Conn) {\n\t\tif user, ok := c.Data.(string); ok {\n\t\t\tlog.Printf(\"Goodbye %v!\", user)\n\t\t}\n\t})\n\n\tsrv.ListenAndServe(\":12345\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziozzang%2Fsocks5-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziozzang%2Fsocks5-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziozzang%2Fsocks5-proxy/lists"}