How to invoke a command using specific proxy server?

Posted by Xiè Jìléi on Super User See other posts from Super User or by Xiè Jìléi
Published on 2011-03-27T01:50:41Z Indexed on 2012/11/11 11:09 UTC
Read the original article Hit count: 224

Filed under:
|
|

Some applications support proxy (http proxy or socks proxy), and some are not.

For browsers, I can specify proxy server in the preferences/options dialog, and other applications may be able to configure proxy servers in config files.

For general purpose, can I invoke a command using a specific proxy? Like following:

$ proxy-exec --type sock5 --server 1.2.3.4:8000 -- wget/ftp ...

I'm using Ubuntu Maverick.

P.S.

In win32, it can be implemented by hijacking the socket dlls, maybe, I'm not familiar with Linux programming, but I guess it's possible in Linux. though.

© Super User or respective owner

Related posts about ubuntu

Related posts about command-line