mirror of https://github.com/fatedier/frp.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 years ago | |
---|---|---|
.. | ||
.gitignore | 8 years ago | |
.travis.yml | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
auth.go | 8 years ago | |
auth_test.go | 7 years ago | |
credentials.go | 8 years ago | |
credentials_test.go | 7 years ago | |
request.go | 8 years ago | |
request_test.go | 7 years ago | |
resolver.go | 8 years ago | |
resolver_test.go | 7 years ago | |
ruleset.go | 8 years ago | |
ruleset_test.go | 7 years ago | |
socks5.go | 8 years ago | |
socks5_test.go | 7 years ago |
README.md
go-socks5 
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)
}