MOCKS is a small, easy configurable, RFC1928 compliant SOCKS 5 server. MOCKS supports upstream proxy and IP-based client filtering rules.
Compiling and Running MOCKS
Due to the simplicity of MOCKS, a make file was uncalled for. You can compile MOCKS with the build script included in this package (build) or with the following command:
gcc -lnsl -o mocks child.c error.c misc.c socksd.c up_proxy.c
If you encounter any problems during compilation don't hesitate to contact me (see section 5 of this file for details).
You can then control MOCKS like this:
Starting server:
./mocks start
Shutting it down:
./mocks shutdown
Get command line help:
./mocks --help
What's New in This Release:
· Added support for upstream proxy connection. MOCKS can now relay all traffic by acting like a client for another proxy server. This is not yet fully implemented: BIND commands are not yet relayed. Supported upstream proxy protocols: HTTP CONNECT, SOCKS4, SOCKS5. For details see the UP_PROXY_* variables in mocks.conf.
· Added IP-based client filter. MOCKS can now reject client connections based on filtering rules. For details see the FILTER_* variables in mocks.conf.
· Added bounding IP option. You can tell MOCKS the IP address it should listen for client connections on. By default it binds like MOCKS 0.0.1 to all interfaces. For details see the MOCKS_ADDR variable in mocks.conf.
· Fixed some include problems that were causing GCC to issue some warnings.
Product's homepage