# hev-socks5-server **Repository Path**: link4all_admin/hev-socks5-server ## Basic Information - **Project Name**: hev-socks5-server - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-21 - **Last Updated**: 2023-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HevSocks5Server [![status](https://gitlab.com/hev/hev-socks5-server/badges/master/pipeline.svg)](https://gitlab.com/hev/hev-socks5-server/commits/master) 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. ## How to Build **Unix**: ```bash git clone --recursive https://github.com/heiher/hev-socks5-server cd hev-socks5-server make # statically link make ENABLE_STATIC=1 ``` **Android**: ```bash 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 ```yaml 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: '::' # 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 ``` ``` ### Run ```bash bin/hev-socks5-server conf/main.yml ``` ### Live updating authentication file Send signal `SIGUSR1` to socks5 server process after the authentication file is updated. ```bash killall -SIGUSR1 hev-socks5-server ``` ## Contributors * **hev** - https://hev.cc * **pexcn** - ## License GPLv3