Total Pageviews

Sunday, 18 August 2019

又一个socks代理服务器程序:Hev-Socks5-Server(支持用户名/密码认证)

A simple, lightweight socks5 server for Unix (Linux/BSD/macOS).
status
HevSocks5Server is a simple, lightweight socks5 server for Unix.
Features
  • standard CONNECT command.
  • private DNSFWD command. (see tproxy)
  • username/password authentication.
  • IPv4/IPv6. (dual stack)

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
ListenAddress=0.0.0.0
; DNS server address
;  ipv4
;  ipv6
DNSAddress=8.8.8.8
; Resolve domain to IPv6 address first
IPv6First=true

;[Auth]
;Username=
;Password=

;[Misc]
; If present, run as a daemon with this pid file
;PidFile=/run/hev-socks5-server.pid
; If present, set rlimit nofile; else use default value of environment
; -1: unlimit
;LimitNOFile=-1

Run

bin/hev-socks5-server conf/main.ini
frm https://github.com/heiher/hev-socks5-server
-----

hev-socks5-server for OpenWrt

简介

本项目是 hev-socks5-server 在 OpenWrt 上的移植。

编译

从 OpenWrt 的 SDK 编译

cd openwrt-sdk

# 获取源码
git clone https://github.com/pexcn/openwrt-hev-socks5-server.git package/hev-socks5-server

# 选中 Network -> hev-socks5-server
make menuconfig

# 编译 hev-socks5-server
make package/hev-socks5-server/{clean,compile} V=s
 from https://github.com/pexcn/openwrt-hev-socks5-server
-------- 
相关帖子:https://briteming.blogspot.com/2012/02/socks5-ssocks_05.html
(这个ssocks也支持用户名/密码认证)

No comments:

Post a Comment