Accessing to some repository and website for sanctioned countries always is a big challenge for developers. I try to find the best and easiest way to proxy entire system in Ubuntu with Tor, privoxy and bridge.
Accessing to some repository and website for sanctioned countries always is a big challenge for developers. I try to find the best and easiest way to proxy entire system in Ubuntu with Tor, privoxy and bridge.
First of all you need to open terminal and install Tor:
Then check that the tor is install successfully or not by:
If the server was not run then run by:
After runing tor you can see the log of the tor by
Then you must search for below line in log
If you can not find this line in you log, then its means that your tor doesn't run and you should configure Bridge for your tor. for configure tor bridge at first install obfs4proxy by:
then you should get the bridge line. for get the bridge line go to https://bridges.torproject.org/ and get your bridge line.
After getting your bridge line you should open torrc with command:
then add the following code to end of torrc file
Make sure that you used your own bridges. after setting your bridge restart your tor service and check the log by:
If you want to proxy entire system such as browser, http, https and etc then privoxy done it for you. install privoxy
go to privoxy configuration file
remove the comment of line
save the file and restart privoxy.
for proxy http or https traffics in terminal use these command.
or if you use the desktop version of ubuntu you can set the proxy in Network configuration like the image below.