HevSocks5Server
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) - Username/password authentication.
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: '::'
# Listen ipv6 only
listen-ipv6-only: false
# Bind source address (ipv4|ipv6)
bind-address: '::'
#auth:
# 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
Run
bin/hev-socks5-server conf/main.yml
Contributors
- hev - https://hev.cc
- pexcn - [email protected]
License
GPLv3