• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Apr-2019-

.gitignoreH A D15-Apr-2019252 2317

.travis.ymlH A D15-Apr-201933 54

LICENSEH A D15-Apr-20191.1 KiB2116

README.mdH A D15-Apr-20191 KiB4634

auth.goH A D15-Apr-20193.8 KiB152102

credentials.goH A D15-Apr-2019403 1812

request.goH A D15-Apr-20198.9 KiB365274

resolver.goH A D15-Apr-2019530 2416

ruleset.goH A D15-Apr-2019998 4229

socks5.goH A D15-Apr-20194.3 KiB173111

README.md

1go-socks5 [![Build Status](https://travis-ci.org/armon/go-socks5.png)](https://travis-ci.org/armon/go-socks5)
2=========
3
4Provides the `socks5` package that implements a [SOCKS5 server](http://en.wikipedia.org/wiki/SOCKS).
5SOCKS (Secure Sockets) is used to route traffic between a client and server through
6an intermediate proxy layer. This can be used to bypass firewalls or NATs.
7
8Feature
9=======
10
11The package has the following features:
12* "No Auth" mode
13* User/Password authentication
14* Support for the CONNECT command
15* Rules to do granular filtering of commands
16* Custom DNS resolution
17* Unit tests
18
19TODO
20====
21
22The package still needs the following:
23* Support for the BIND command
24* Support for the ASSOCIATE command
25
26
27Example
28=======
29
30Below is a simple example of usage
31
32```go
33// Create a SOCKS5 server
34conf := &socks5.Config{}
35server, err := socks5.New(conf)
36if err != nil {
37  panic(err)
38}
39
40// Create SOCKS5 proxy on localhost port 8000
41if err := server.ListenAndServe("tcp", "127.0.0.1:8000"); err != nil {
42  panic(err)
43}
44```
45
46