[tor-talk] force apt-get & yum updates through tor?

contact_tor at nirgal.com contact_tor at nirgal.com
Mon Jan 19 09:46:39 UTC 2015


BM-2cTjsegDfZQNGQWUQjSwro6jrWLC9B3MN3 at bitmessage.ch wrote:
> For debian 7.7, the only one that seems to actually force apt-get
> through tor is torsocks
> 
> OPTION 1: 
> sudo nano /etc/apt/apt.conf
> ADD THIS: Acquire::socks::proxy "socks5://127.0.0.1:9150";
> When using apt-get as normal, debian ignores this and skips tor

I never could make apt works directly with socks proxies. But html
proxies are fine. If you set up polipo or similar and use:
  Acquire::http::Proxy "http://127.0.0.1:8118/";
or for a specific PPA:
  Acquire::http::Proxy::abcdefghijklmnop.onion "http://127.0.0.1:8118/";

In recent versions, one can add a file with this in /etc/apt/apt.conf.d/

This works for me.


More information about the tor-talk mailing list