1
0
Fork 0

Initial commit

master
Ambrose Chua 2017-09-19 13:21:02 +08:00
parent e75332964e
commit 70fafc42b1
15 changed files with 34 additions and 53 deletions

View File

@ -1,45 +1,8 @@
go-socks5 [![Build Status](https://travis-ci.org/armon/go-socks5.png)](https://travis-ci.org/armon/go-socks5)
=========
Provides the `socks5` package that implements a [SOCKS5 server](http://en.wikipedia.org/wiki/SOCKS).
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.
# Work in progress!
Feature
=======
# bypass
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
```go
// 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)
}
```
A SOCKS5 proxy that allows you to bypass most firewalls.
SOCKS5 library by @armon

BIN
bypass Executable file

Binary file not shown.

18
bypass.go Normal file
View File

@ -0,0 +1,18 @@
package main
import (
"github.com/serverwentdown/bypass/socks"
)
func main() {
conf := &socks.Config{
}
server, err := socks.New(conf)
if err != nil {
panic(err)
}
if err := server.ListenAndServe("tcp", "127.0.0.1:8000"); err != nil {
panic(err)
}
}

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"fmt"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"bytes"

View File

@ -1,4 +1,4 @@
package socks5
package socks
// CredentialStore is used to support user/pass authentication
type CredentialStore interface {

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"testing"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"fmt"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"bytes"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"net"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"testing"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"golang.org/x/net/context"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"testing"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"bufio"

View File

@ -1,4 +1,4 @@
package socks5
package socks
import (
"bytes"