Created
November 18, 2016 03:56
-
-
Save zduymz/9f0ced329ce5c73667c8bb3c655c2ee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. tap repo: brew tap anakros/homebrew-tsocks | |
2. install tsocks: brew install --HEAD tsocks | |
3. set up socks proxy: ssh -D 5555 server | |
4. edit configuration file: vi /usr/local/etc/tsocks.conf | |
``` | |
#local = 192.168.0.0/255.255.255.0 | |
server = 127.0.0.1 | |
server_type = 5 | |
server_port = 8181 | |
``` | |
5. check that everything works: tsocks curl -XGET ipinfo.io | |
# reference: http://www.usenix.org.uk/content/tsocks.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment