Skip to content

Instantly share code, notes, and snippets.

@zduymz
Created November 18, 2016 03:56
Show Gist options
  • Save zduymz/9f0ced329ce5c73667c8bb3c655c2ee4 to your computer and use it in GitHub Desktop.
Save zduymz/9f0ced329ce5c73667c8bb3c655c2ee4 to your computer and use it in GitHub Desktop.
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