Hev Socks5 Server Save

A high-performance socks5 server for Unix (Linux/BSD/macOS)

Project README

HevSocks5Server

status

HevSocks5Server is a simple, lightweight socks5 server for Unix.

Features

  • IPv4/IPv6. (dual stack)
  • Standard CONNECT command.
  • Standard UDP ASSOCIATE command.
  • Extended FWD UDP command. (UDP in TCP)
  • Multiple username/password authentication.

Benchmarks

See here for more details.

Speed

CPU usage

Memory usage

How to Build

Unix

git clone --recursive https://github.com/heiher/hev-socks5-server
cd hev-socks5-server
make

# statically link
make ENABLE_STATIC=1

Android

mkdir hev-socks5-server
cd hev-socks5-server
git clone --recursive https://github.com/heiher/hev-socks5-server jni
cd jni
ndk-build

How to Use

Config

main:
  # Worker threads
  workers: 4
  # Listen port
  port: 1080
  # Listen address (ipv4|ipv6)
  listen-address: '::'
  # UDP listen port
  udp-port: 1080
  # UDP listen address (ipv4|ipv6)
# udp-listen-address: '::1'
  # Listen ipv6 only
  listen-ipv6-only: false
  # Bind source address (ipv4|ipv6)
  bind-address: '::'
  # Domain address type (ipv4|ipv6|unspec)
  domain-address-type: unspec

#auth:
#  file: conf/auth.txt
#  username:
#  password:

#misc:
   # task stack size (bytes)
#  task-stack-size: 8192
   # connect timeout (ms)
#  connect-timeout: 5000
   # read-write timeout (ms)
#  read-write-timeout: 60000
   # stdout, stderr or file-path
#  log-file: stderr
   # debug, info, warn or error
#  log-level: warn
   # If present, run as a daemon with this pid file
#  pid-file: /run/hev-socks5-server.pid
   # If present, set rlimit nofile; else use default value
#  limit-nofile: 65535

Authentication file

<USERNAME> <SPACE> <PASSWORD> <SPACE> <MARK> <LF>

Run

bin/hev-socks5-server conf/main.yml

Live updating authentication file

Send signal SIGUSR1 to socks5 server process after the authentication file is updated.

killall -SIGUSR1 hev-socks5-server

Contributors

License

GPLv3

Open Source Agenda is not affiliated with "Hev Socks5 Server" Project. README Source: heiher/hev-socks5-server
Stars
165
Open Issues
0
Last Commit
1 week ago
License

Open Source Agenda Badge

Open Source Agenda Rating