forked fromarmon/go-socks5
- Notifications
You must be signed in to change notification settings - Fork0
luscis/go-socks5
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Provides thesocks5
package that implements aSOCKS5 server.SOCKS (Secure Sockets) is used to route traffic between a client and server throughan intermediate proxy layer. This can be used to bypass firewalls or NATs.
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
The package still needs the following:
- Support for the BIND command
- Support for the ASSOCIATE command
Below is a simple example of usage
// Create a SOCKS5 serverconf:=&socks5.Config{}server,err:=socks5.New(conf)iferr!=nil {panic(err)}// Create SOCKS5 proxy on localhost port 8000iferr:=server.ListenAndServe("tcp","127.0.0.1:8000");err!=nil {panic(err)}