http://mocks.sourceforge.net/
有个配置文件 需要配置的话 更改文件中的配置项 、、
root@bt:~# tar zxvf mocks-0.0.2.tar.gzmocks-0.0.2/mocks-0.0.2/src/mocks-0.0.2/src/child.cmocks-0.0.2/src/child.hmocks-0.0.2/src/error.cmocks-0.0.2/src/error.hmocks-0.0.2/src/misc.cmocks-0.0.2/src/misc.hmocks-0.0.2/src/socksd.cmocks-0.0.2/src/socksd.hmocks-0.0.2/src/up_proxy.cmocks-0.0.2/src/up_proxy.hmocks-0.0.2/COPYINGmocks-0.0.2/mocksmocks-0.0.2/mocks.confmocks-0.0.2/READMEmocks-0.0.2/TODOmocks-0.0.2/buildmocks-0.0.2/CHANGELOGroot@bt:~# cd mocks-0.0.2root@bt:~/mocks-0.0.2# lsbuild CHANGELOG COPYING mocks mocks.conf README src TODOroot@bt:~/mocks-0.0.2# ./mocksMissing actionSee ./mocks -h for helproot@bt:~/mocks-0.0.2# ./mocks -hmocks version 0.0.2 (25 Nov 2004)USAGE: ./mocks [OPTIONS] ACTIONOPTIONS -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 existsACTIONS start start SOCKS daemon shutdown shutdown SOCKS daemonroot@bt:~/mocks-0.0.2# ./mocks -vmocks version 0.0.2 (25 Nov 2004)root@bt:~/mocks-0.0.2# lsbuild CHANGELOG COPYING mocks mocks.conf README src TODOroot@bt:~/mocks-0.0.2# vim mocks.confroot@bt:~/mocks-0.0.2# ./mocks -f mocks.confInvalid argument: mocks.confroot@bt:~/mocks-0.0.2# ./mocks -c mocks.confMissing actionSee ./mocks -h for helproot@bt:~/mocks-0.0.2# ./mocks -c mocks.conf startStarting mocks ... OK