description | none |
repository URL | https://github.com/rofl0r/microsocks.git |
owner | retnyg@gmx.net |
last change | Fri, 24 May 2024 23:02:34 +0000 (24 23:02 +0000) |
last refresh | Thu, 21 Nov 2024 07:35:08 +0000 (21 08:35 +0100) |
mirror URL | git://repo.or.cz/rofl0r-microsocks.git |
https://repo.or.cz/rofl0r-microsocks.git | |
ssh://git@repo.or.cz/rofl0r-microsocks.git | |
bundle info | rofl0r-microsocks.git downloadable bundles |
content tags |
a SOCKS5 service that you can run on your remote boxes to tunnel connections through them, if for some reason SSH doesn't cut it for you.
It's very lightweight, and very light on resources too:
for every client, a thread with a low stack size is spawned. the main process basically doesn't consume any resources at all.
the only limits are the amount of file descriptors and the RAM.
It's also designed to be robust: it handles resource exhaustion gracefully by simply denying new connections, instead of calling abort() as most other programs do these days.
another plus is ease-of-use: no config file necessary, everything can be done from the command line and doesn't even need any parameters for quick setup.
This is the successor of "rocksocks5", and it was written with different goals in mind:
as a result of that, ipv4, dns, and ipv6 is supported out of the box and can use the same code, while rocksocks5 has several compile time defines to bring down the size of the resulting binary to extreme values like 10 KB static linked when only ipv4 support is enabled.
still, if optimized for size, this program when static linked against musl libc is not even 50 KB. that's easily usable even on the cheapest routers.
microsocks -1 -q -i listenip -p port -u user -P passw -b bindaddr -w wl
all arguments are optional. by default listenip is 0.0.0.0 and port 1080.
option -1 activates auth_once mode: once a specific ip address authed successfully with user/pass, it is added to a whitelist and may use the proxy without auth. this is handy for programs like firefox that don't support user/pass auth. for it to work you'd basically make one connection with another program that supports it, and then you can use firefox too. for example, authenticate once using curl:
curl --socks5 user:password@listenip:port anyurl
if you experience segfaults, try raising the THREAD_STACK_SIZE
in sockssrv.c
for your platform in steps of 4KB.
if this fixes your issue please file a pull request.
microsocks uses the smallest safe thread stack size to minimize overall memory usage.
2 years ago | v1.0.4 | commitlog | ||
2 years ago | v1.0.3 | commitlog | ||
3 years ago | v1.0.2 | commitlog | ||
5 years ago | v1.0.1 | commitlog | ||
6 years ago | v1.0.0 | commitlog | ||
6 years ago | v0.1.0 | commitlog | ||
7 years ago | v0.0.2 | commitlog | ||
7 years ago | v0.0.1 | commitlog |
5 months ago | master | logtree |