https://github.com/rofl0r/rocksocks5
simple SOCKS v5 server with minimal RAM usage
https://github.com/rofl0r/rocksocks5
Last synced: 12 months ago
JSON representation
simple SOCKS v5 server with minimal RAM usage
- Host: GitHub
- URL: https://github.com/rofl0r/rocksocks5
- Owner: rofl0r
- License: gpl-3.0
- Created: 2011-07-12T08:22:20.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T22:06:21.000Z (over 7 years ago)
- Last Synced: 2025-04-11T05:52:15.568Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 35.2 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
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