update README and Makefile for RcB2
[rofl0r-rocksocks5.git] / README
blob88d2d55dc96a39418d54cb0d513aa866a178f940
1 minimalistic socks5 server.
3 supports no-auth and username auth.
5 supports CONNECT method. no bind and UDP atm.
7 uses only ~150 kb stack memory for 32 possible clients and 1 page of heap memory for getaddrinfo
8 (however dns resolution can be configured to use my firedns fork, which allocates a single stack
9 buffer, or to do no DNS resolution at all (only ipv4))
11 select() based using asynchronous sockets.
13 supports maximum 510 clients. ((FD_SETSIZE - 3) / 2)
15 installation:
17 cd /tmp
18 mkdir socksserver-0000
19 cd socksserver-0000/
20 git clone https://github.com/rofl0r/rocksocks5 socksserver
21 git clone https://github.com/rofl0r/libulz lib
22 git clone https://github.com/rofl0r/rocksock
23 git clone -b custom https://github.com/rofl0r/firedns firedns
24 git clone https://github.com/rofl0r/rcb2
25 export PATH=$PATH:/tmp/socksserver-0000/rcb2
26 ln -s /tmp/socksserver-0000/rcb2/rcb2.py /tmp/socksserver-0000/rcb2/rcb2
27 cd socksserver
28 cp dist/config.mak .
30 #your favorite editor here
31 nano config.mak
33 # add your prefered cflags, e.g.:
34 # CFLAGS = -DIPV4_ONLY -DNO_DNS_SUPPORT -DNO_LOG -DNO_DAEMONIZE -DNO_IDSWITCH
36 #your favorite C compiler here
37 export CC=gcc
38 make