http://mocks.sourceforge.net/
有个配置文件 需要配置的话 更改文件中的配置项 、、
root@bt:~# tar zxvf mocks-0.0.2.tar.gz
mocks-0.0.2/
mocks-0.0.2/src/
mocks-0.0.2/src/child.c
mocks-0.0.2/src/child.h
mocks-0.0.2/src/error.c
mocks-0.0.2/src/error.h
mocks-0.0.2/src/misc.c
mocks-0.0.2/src/misc.h
mocks-0.0.2/src/socksd.c
mocks-0.0.2/src/socksd.h
mocks-0.0.2/src/up_proxy.c
mocks-0.0.2/src/up_proxy.h
mocks-0.0.2/COPYING
mocks-0.0.2/mocks
mocks-0.0.2/mocks.conf
mocks-0.0.2/README
mocks-0.0.2/TODO
mocks-0.0.2/build
mocks-0.0.2/CHANGELOG
root@bt:~# cd mocks-0.0.2
root@bt:~/mocks-0.0.2# ls
build CHANGELOG COPYING mocks mocks.conf README src TODO
root@bt:~/mocks-0.0.2# ./mocks
Missing action
See ./mocks -h for help
root@bt:~/mocks-0.0.2# ./mocks -h
mocks version 0.0.2 (25 Nov 2004)
USAGE:
./mocks [OPTIONS] ACTION
OPTIONS
-h, --help display this help screen and exit
-v, --version display program version and exit
-c file, --config file use configuration file 'file'
-f, --forceload force loading SOCKS daemon even if
PID file exists
ACTIONS
start start SOCKS daemon
shutdown shutdown SOCKS daemon
root@bt:~/mocks-0.0.2# ./mocks -v
mocks version 0.0.2 (25 Nov 2004)
root@bt:~/mocks-0.0.2# ls
build CHANGELOG COPYING mocks mocks.conf README src TODO
root@bt:~/mocks-0.0.2# vim mocks.conf
root@bt:~/mocks-0.0.2# ./mocks -f mocks.conf
Invalid argument: mocks.conf
root@bt:~/mocks-0.0.2# ./mocks -c mocks.conf
Missing action
See ./mocks -h for help
root@bt:~/mocks-0.0.2# ./mocks -c mocks.conf start
Starting mocks ... OK