description | none |
repository URL | https://github.com/rofl0r/rocksocks5.git |
owner | retnyg@gmx.net |
last change | Fri, 12 Apr 2019 22:07:39 +0000 (12 23:07 +0100) |
last refresh | Sat, 27 Apr 2024 07:13:42 +0000 (27 09:13 +0200) |
mirror URL | git://repo.or.cz/rofl0r-rocksocks5.git |
| https://repo.or.cz/rofl0r-rocksocks5.git |
| ssh://git@repo.or.cz/rofl0r-rocksocks5.git |
bundle info | rofl0r-rocksocks5.git downloadable bundles |
content tags
|
|
README
minimalistic socks5 server.
supports no-auth and username auth.
supports CONNECT method. no bind and UDP atm.
uses only ~150 kb stack memory for 32 possible clients and 1 page of heap memory for getaddrinfo
(however dns resolution can be configured to use my firedns fork, which allocates a single stack
buffer, or to do no DNS resolution at all (only ipv4))
select() based using asynchronous sockets.
supports maximum 510 clients. ((FD_SETSIZE - 3) / 2)
installation:
cd /tmp
mkdir socksserver-0000
cd socksserver-0000/
git clone https://github.com/rofl0r/rocksocks5 socksserver
git clone https://github.com/rofl0r/libulz lib
git clone https://github.com/rofl0r/rocksock
git clone -b custom https://github.com/rofl0r/firedns firedns
git clone https://github.com/rofl0r/rcb2
export PATH=$PATH:/tmp/socksserver-0000/rcb2
ln -s /tmp/socksserver-0000/rcb2/rcb2.py /tmp/socksserver-0000/rcb2/rcb2
cd socksserver
cp dist/config.mak .
#your favorite editor here
nano config.mak
# add your prefered cflags, e.g.:
# CFLAGS = -DIPV4_ONLY -DNO_DNS_SUPPORT -DNO_LOG -DNO_DAEMONIZE -DNO_IDSWITCH
#your favorite C compiler here
export CC=gcc
make