Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm living in China, and lots of web service is not available or stable here like Github/Bitbucket/Imgur, When I'm using wget, git or some other commandline tools, I need using a proxy.

Is there any tool to globally wrap socket connection in one terminal, so I don't need to memorize all the separate method for each commandline tools? I know there is some tools which can wrap std socket library.

share|improve this question

I suggest you look at tsocks that allows you to forward all connections to a SOCKS4 proxy, without changing your command lines; tsocks on is possibly the command you want.

share|improve this answer

There are some scripts which uses redsocks to create transparent proxy. Check it out https://github.com/dilawar/Transparent-Proxy .

share|improve this answer
up vote 0 down vote accepted

I found one, it is proxychain: https://github.com/haad/proxychains

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.