README: specify supported SOCKS5 features
[rofl0r-microsocks.git] / README.md
blobcc5b9a3e35eeccfea5896c100b3d439fde9a6e04
1 MicroSocks - multithreaded, small, efficient SOCKS5 server.
2 ===========================================================
4 a SOCKS5 service that you can run on your remote boxes to tunnel connections
5 through them, if for some reason SSH doesn't cut it for you.
7 It's very lightweight, and very light on resources too:
9 for every client, a thread with a stack size of 8KB is spawned.
10 the main process basically doesn't consume any resources at all.
12 the only limits are the amount of file descriptors and the RAM.
14 It's also designed to be robust: it handles resource exhaustion
15 gracefully by simply denying new connections, instead of calling abort()
16 as most other programs do these days.
18 another plus is ease-of-use: no config file necessary, everything can be
19 done from the command line and doesn't even need any parameters for quick
20 setup.
22 History
23 -------
25 This is the successor of "rocksocks5", and it was written with
26 different goals in mind:
28 - prefer usage of standard libc functions over homegrown ones
29 - no artificial limits
30 - do not aim for minimal binary size, but for minimal source code size,
31   and maximal readability, reusability, and extensibility.
33 as a result of that, ipv4, dns, and ipv6 is supported out of the box
34 and can use the same code, while rocksocks5 has several compile time
35 defines to bring down the size of the resulting binary to extreme values
36 like 10 KB static linked when only ipv4 support is enabled.
38 still, if optimized for size, *this* program when static linked against musl
39 libc is not even 50 KB. that's easily usable even on the cheapest routers.
41 command line options
42 --------------------
44     microsocks -1 -i listenip -p port -u user -P password -b bindaddr
46 all arguments are optional.
47 by default listenip is 0.0.0.0 and port 1080.
49 option -1 activates auth_once mode: once a specific ip address
50 authed successfully with user/pass, it is added to a whitelist
51 and may use the proxy without auth.
52 this is handy for programs like firefox that don't support
53 user/pass auth. for it to work you'd basically make one connection
54 with another program that supports it, and then you can use firefox too.
55 for example, authenticate once using curl:
57     curl --socks5 user:password@listenip:port anyurl
60 Supported SOCKS5 Features
61 -------------------------
62 - authentication: none, password, one-time
63 - IPv4, IPv6, DNS
64 - TCP (no UDP at this time)