socks5-server/vendor/github.com/armon/go-socks5
dependabot[bot] 93554c03aa
Bump golang.org/x/net from 0.1.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 22:23:38 +00:00
..
.gitignore minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
.travis.yml minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
auth.go minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
credentials.go minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
LICENSE minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
README.md minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
request.go minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
resolver.go minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
ruleset.go minimal docker image aprox 3mb 2018-04-15 23:08:32 +05:00
socks5.go Bump golang.org/x/net from 0.1.0 to 0.17.0 2023-10-11 22:23:38 +00:00

go-socks5 Build Status

Provides the socks5 package that implements a SOCKS5 server. SOCKS (Secure Sockets) is used to route traffic between a client and server through an intermediate proxy layer. This can be used to bypass firewalls or NATs.

Feature

The package has the following features:

  • "No Auth" mode
  • User/Password authentication
  • Support for the CONNECT command
  • Rules to do granular filtering of commands
  • Custom DNS resolution
  • Unit tests

TODO

The package still needs the following:

  • Support for the BIND command
  • Support for the ASSOCIATE command

Example

Below is a simple example of usage

// Create a SOCKS5 server
conf := &socks5.Config{}
server, err := socks5.New(conf)
if err != nil {
  panic(err)
}

// Create SOCKS5 proxy on localhost port 8000
if err := server.ListenAndServe("tcp", "127.0.0.1:8000"); err != nil {
  panic(err)
}