fatedier 0f1005ff61 using glide 7 jaren geleden
..
.gitignore c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
.travis.yml c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
LICENSE c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
README.md c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
auth.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
auth_test.go 0f1005ff61 using glide 7 jaren geleden
credentials.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
credentials_test.go 0f1005ff61 using glide 7 jaren geleden
request.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
request_test.go 0f1005ff61 using glide 7 jaren geleden
resolver.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
resolver_test.go 0f1005ff61 using glide 7 jaren geleden
ruleset.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
ruleset_test.go 0f1005ff61 using glide 7 jaren geleden
socks5.go c081df40e1 vendor: add github.com/armon/go-socks5 7 jaren geleden
socks5_test.go 0f1005ff61 using glide 7 jaren geleden

README.md

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)
}