hev-socks5-server
hev-socks5-server copied to clipboard
A high-performance socks5 server for Unix (Linux/BSD/macOS)
HevSocks5Server
HevSocks5Server is a simple, lightweight socks5 server for Unix.
Features
- IPv4/IPv6. (dual stack)
- Standard
CONNECTcommand. - Extended
UDPFWDcommand. (UDP over TCP) - Username/password authentication.
How to Build
Unix:
git clone --recursive git://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 git://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: 1024
Run
bin/hev-socks5-server conf/main.ini
Contributors
- hev - https://hev.cc
- pexcn - [email protected]
License
GPLv3