Total Pageviews

Saturday 23 May 2020

支持用户认证的socks代理服务器程序:socks5-by-bhhbazinga


A light weight socks5 proxy server implemented in c using epoll and nonblocking socket.
You can use it to surf the Internet scientifically, only UNIX/Linux platforms are supported currently.

Suport

  • No authentication
  • Username & Password authentication
  • Ipv4 & Ipv6
  • Domain name resolution
  • "CONNECT" command in socks5 protocol

Build

make

Usage

-a : ip address
-p : port
-u : username
-k : password

Example

1.Run the server.
./socks5 -a 192.168.1.40 -p 6080 -u abc123 -k qwe123
from https://github.com/bhhbazinga/socks5
----
补充说明:
登录linux vps.
git clone https://github.com/bhhbazinga/socks5 socks5-by-bhhbazinga
cd  socks5-by-bhhbazinga
make (此命令会在当前目录下,生成可执行文件socks5)
./socks5 -h

~/socks5-by-bhhbazinga/socks5 -a 0.0.0.0 -p 3216 -u myusername -k mypassword

不过此命令是运行在前台的,我们可以利用boa(现名jinbe)把它运行在后台上:

jinbe ~/socks5-by-bhhbazinga/socks5 -a 0.0.0.0 -p 3216 -u myusername -k mypassword


socks代理服务器程序:socks5-by-bhhbazinga搭建完成。

No comments:

Post a Comment