Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

3 Answers 3

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 .

share|improve this answer
up vote 0 down vote accepted

I found one, it is proxychain:

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.