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

..03-May-2022-

.gitignoreH A D21-Feb-2018252 2317

.travis.ymlH A D21-Feb-201833 54

LICENSEH A D21-Feb-20181.1 KiB2116

README.mdH A D21-Feb-20181 KiB4634

auth.goH A D21-Feb-20183.8 KiB152102

auth_test.goH A D21-Feb-20182.4 KiB12094

credentials.goH A D21-Feb-2018403 1812

credentials_test.goH A D21-Feb-2018332 2519

request.goH A D21-Feb-20188.9 KiB365274

request_test.goH A D21-Feb-20183 KiB170129

resolver.goH A D21-Feb-2018530 2416

resolver_test.goH A D21-Feb-2018310 2216

ruleset.goH A D21-Feb-2018998 4229

ruleset_test.goH A D21-Feb-2018492 2518

socks5.goH A D21-Feb-20184.3 KiB173111

socks5_test.goH A D21-Feb-20182.1 KiB11186

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