-
Setup your socks proxy. In my case I'm creating a socks proxy by creating a secure shell connection (SSH): ssh [email protected] -D 9050
-
(Optional for mac users): You can also simplify this action by using a lovely (free) application called Secure Pipes: https://www.opoet.com/pyro/
-
Download delegate and move the executable (dg9_9_13) into /usr/local/sbin or /usr/bin. Example:
cp dg9_9_13/DGROOT/bin/dg9_9_13 /usr/local/sbin/delegate
chmod +x /usr/local/sbin/delegate
-
Next step is to make sure deleGate will accept HTTP connections on port 9051 and forward to a SOCKS server on port 9050:
delegated -P9051 SERVER=http SOCKS=localhost:9050 ADMIN="[email protected]"
-
with each terminal instance export the following enviroment variable:
http_proxy = http://localhost:9051
andhttps_proxy = http://localhost:9051
This will make sure that the terminal instance makes use of the http proxy. -
(optional) If you use docker. You can set the proxy settings in the GUI. Set these to the internal ip of your machine. For instance http://192.168.0.6:9051. See https://blog.codeship.com/using-docker-behind-a-proxy/ for more info.
Note that the ip shown in this screenshot isn't correct. It should be http://{your internal ip}:9051/