Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

SOCKS5 server in Golang

License

NotificationsYou must be signed in to change notification settings

luscis/go-socks5

 
 

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.

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 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)}

About

SOCKS5 server in Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go100.0%

[8]ページ先頭

©2009-2025 Movatter.jp