Skip to content

nxdp/s5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S5

A minimal SOCKS5 proxy.

It supports:

  • CONNECT command only (TCP)
  • Username and password authentication
  • IPv4, IPv6 and domain targets
  • Configurable timeout and buffer size
  • Active connection counter

This project is focused on simplicity and readability.


Build

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -trimpath -ldflags="-s -w -buildid=" -o s5

Run

./s5 [flags]

Flags

-l string
    listen address (default "127.0.0.1:1080")

-u string
    username (default "admin")

-p string
    password (default "admin")

-b int
    buffer size in bytes (default 65536)

-t duration
    connection timeout (default 5s)

Example

./s5 -l 0.0.0.0:1080 -u user -p secret

Then configure your client to use:

  • SOCKS5
  • Host: your server IP
  • Port: 1080
  • Username and password you set

About

A minimal SOCKS5 proxy

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages