{"id":23050585,"url":"https://github.com/ai-ql/go-socks5","last_synced_at":"2025-04-03T03:42:08.504Z","repository":{"id":260585348,"uuid":"881277150","full_name":"AI-QL/go-socks5","owner":"AI-QL","description":"Socks5 Server in Golang","archived":false,"fork":false,"pushed_at":"2024-11-05T14:55:56.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T17:44:28.218Z","etag":null,"topics":["golang","socks5"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/AI-QL/go-socks5","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AI-QL.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":"2024-10-31T08:49:02.000Z","updated_at":"2024-11-05T14:56:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"aca5f93c-ac85-417e-baa9-b978a86315e5","html_url":"https://github.com/AI-QL/go-socks5","commit_stats":null,"previous_names":["ai-ql/go-socks5"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-QL%2Fgo-socks5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-QL%2Fgo-socks5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-QL%2Fgo-socks5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AI-QL%2Fgo-socks5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AI-QL","download_url":"https://codeload.github.com/AI-QL/go-socks5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933356,"owners_count":20857052,"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":["golang","socks5"],"created_at":"2024-12-15T23:34:37.188Z","updated_at":"2025-04-03T03:42:08.485Z","avatar_url":"https://github.com/AI-QL.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Socks5\n\nGo-Socks5 provides the `socks5` package that implements a [SOCKS5 server](http://en.wikipedia.org/wiki/SOCKS).\n\nSOCKS (Secure Sockets) is used to route traffic between a client and server through\nan intermediate proxy layer.\n\nThis can be used to bypass firewalls or NATs.\n\n## Before You Begin\nThis repository only provides a basic socks5 package written in Golang.\n\nIf you need a ready-to-use socks5 proxy server, please refer to: [go-socks5-proxy](https://github.com/AI-QL/go-socks5-proxy).\n\n## Features\n\nThe package has the following features:\n* \"No Auth\" mode\n* User/Password authentication\n* Support for the CONNECT command\n* Support for the BIND command\n* Support for the ASSOCIATE command\n* Rules to do granular filtering of commands\n* Custom DNS resolution\n* Unit tests\n\n\n## Example\n\nBelow is a simple example of usage\n\n```go\n// Create a SOCKS5 server\nconf := \u0026socks5.Config{}\nserver, err := socks5.New(conf)\nif err != nil {\n  panic(err)\n}\n\n// Create SOCKS5 proxy on localhost port 8000\nif err := server.ListenAndServe(\"tcp\", \"127.0.0.1:8000\"); err != nil {\n  panic(err)\n}\n```\n\n## Godoc\n\nRemember to double-check the Godoc, as it will be auto-generated on [pkg.go.dev](https://pkg.go.dev/github.com/AI-QL/go-socks5).\n\n### Step 1: Install `godoc`\nFirst, ensure that you have `godoc` installed. You can install it using the following command:\n\n```bash\ngo install golang.org/x/tools/cmd/godoc@latest\n```\n\n### Step 2: Run `godoc` Server\nNext, run the `godoc` server to serve the documentation for your Go project:\n\n```bash\ngodoc -http=:6060 -index\n```\n\nThis command starts a web server on port 6060, serving the documentation for your Go project.\n\n\n# Reference\n\nThis repository was originally cloned from [go-socks5](https://github.com/armon/go-socks5) due to its long period of inactivity. It is a small yet elegant repo, and we aim to use it as a pilot project to transform it into a comprehensive library with thorough documentation and automation. We will also strive to optimize and enhance it using AI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-ql%2Fgo-socks5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-ql%2Fgo-socks5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-ql%2Fgo-socks5/lists"}