Pages

Sunday, 27 March 2016

socks5代理服务器程序-socks5

socks5 proxy in c with the library libev.

socks5 server

Quick Start

$ git submodule update --init --recursive
$ make
$ ./ssserver

Help

Call ssserver with the --help option for a list of command-line arguments.

Testing

Tests can be run with:
$ make test
The proxy server is expected to be bound to port 23456 for the tests to work. Start it with -p 23456.

RFCs


from https://github.com/isayme/socks5
------------

A simple socks5 protocol implementation using socket and libev.
More information about socks5 : RFC1928

How to use

After clone the rep or download the compressed file, change directory to the project, execute command make to compile and build.
Execute ./bin/socks5 -h get help infomation of the process.
-p port argument will custom listen port of the server.
from https://github.com/isayme/socks5/tree/master
---------
记得要安装libev,(apt-get install libev-dev -y或yum install libev-devel -y)
然后,
git clone --branch master https://github.com/isayme/socks5 socks5-by-isayme
cd socks5-by-isayme
root@ar2:~/socks5-by-isayme# ls
bin  inc  Makefile  README.md  src
root@ar2:~/socks5-by-isayme# make
root@ar2:~/socks5-by-isayme# ls bin
liblog.so          
socks5    (~/socks5-by-isayme/bin/之前是个空目录,现在出现了socks5文件,这个socks5文件就是可执行文件)     
root@ar2:~/socks5-by-isayme# ./socks5 -p 2233 -d y

这样就在vps上建立了一个端口为2233的socks5代理服务器。可以用作tor的前置代理。不过有点不稳定,建议使用ssocks作tor的前置代理.我使用ssocks作tor的前置代理,几乎次次都能连上tor网络,从而用tor browser成功翻墙。