Skip to content

0990/socks5

Folders and files

NameName
Last commit message
Last commit date
Sep 28, 2023
Oct 26, 2020
Feb 21, 2025
Sep 6, 2023
Oct 20, 2021
Sep 28, 2023
Oct 26, 2020
Sep 6, 2023
Jan 5, 2023
Jan 10, 2022
Sep 6, 2023
Jul 10, 2020
Feb 21, 2025
Oct 26, 2020
Mar 16, 2023
Jun 10, 2023
Feb 21, 2025
Feb 21, 2025
Sep 28, 2023
Sep 28, 2023
Sep 28, 2023
Oct 14, 2020
Oct 20, 2021
Feb 21, 2025
Oct 20, 2021
Oct 20, 2021
Oct 20, 2021
Sep 28, 2023
Dec 17, 2022
Feb 21, 2025
Sep 28, 2023

Repository files navigation

socks5

中文文档
A lightweight SOCKS proxy server that supports socks4, socks4a, and socks5 protocols. The code is simple and easy to read, just like the original SOCKS protocol.

Feature

Usage

Download the latest program for your operating system and architecture from the Release page. Extracting,then execute the binary file directly (Linux platform requires execution permission)

./ss5

or

./ss5 -c ./ss5.json

Docker installation

Configuration

The ss5.json file in the extracted directory is the configuration file
Simple configuration instructions:

 ListenPort The listening port for TCP and UDP proxies, default is 1080
 UserName,Password Fill in if username/password authentication is required, default is empty
 LogLevel Log level (debug, info, warn, error)

Advanced configuration

Package Usage

go get github.com/0990/socks5  

Here is a simple example:

s := socks5.NewServer(socks5.ServerCfg{
	    ListenPort: 1080,
	    UserName:   "",
	    Password:   "",
	    UDPTimout:  60,
	    TCPTimeout: 60,
	    LogLevel:"error"
})
err := s.Run()
if err != nil {
	log.Fatalln(err)
}

TODO

  • Support BIND command

Thanks

txthinking/socks5