Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A fully featured implementation of the SOCKS 5 protocol in golang. Command CONNECT ✅, BIND 🛠, UDP ASSOCIATE ✅.

License

NotificationsYou must be signed in to change notification settings

ezh0v/socks5

Repository files navigation

Gopher socks logo

SOCKS 5

licensego versiongo docgo reporttests

Report Bug |Request Feature

A fully featured implementation of the SOCKS 5 protocol in golang.

CONNECTBINDUDP ASSOCIATE
✅ - implemented🛠 - in progress✅ - implemented
Gopher socks logo

Installation

go get github.com/ezh0v/socks5

Getting Started

Create your.go file. For example:main.go.

package mainimport ("context""log""os/signal""syscall""github.com/ezh0v/socks5")funcmain() {ctx,stop:=signal.NotifyContext(context.Background(),syscall.SIGINT,syscall.SIGTERM)deferstop()srv:=socks5.New()gofunc() {iferr:=srv.ListenAndServe();err!=nil {log.Fatal(err)}}()<-ctx.Done()iferr:=srv.Shutdown();err!=nil {log.Fatal(err)}}

Run your server:

go run main.go

The following curl example shows how to use the proxy server:

curl -x socks5://127.0.0.1:1080 http://example.com

See thetests andexamples for more information about package.

FAQ

  • Why can't connect to socks proxy server?

    Not all applications and browsers support socks authentication or socks protocol. You may needextension for Chrome or another browser.

If you have any questions, you can ask inGitHub Discussions.

Note

  • The proof of work for the UDP association was done usingqBittorrent - a BitTorrent client.

Contributing

Feel free to open tickets or send pull requests with improvements. Thanks in advance for your help!

Please follow thecontribution guidelines.

References

  • RFC 1928 SOCKS Protocol Version 5
  • RFC 1929 Username/Password Authentication for SOCKS V5

Licenses

About

A fully featured implementation of the SOCKS 5 protocol in golang. Command CONNECT ✅, BIND 🛠, UDP ASSOCIATE ✅.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp