Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My internet connection comes with a data usage limit. So I can make best out of it only by using squid caching proxy. How can I configure squid3 to work with Tor on ubuntu.

share|improve this question
    
It seems that currently squid does not support SOCKS [ wiki.squid-cache.org/Features/Socks ]. You may need to find another proxy that supports SOCKS. –  Khaled Dec 24 '10 at 8:27

3 Answers 3

up vote 3 down vote accepted

A couple of seconds googling gives tor iptables squid

The relevant comment being:

You can use the following configuration: user -> squid -> privoxy -> tor

The configuration of tor client and privoxy is standard. To redirect squid to privoxy you need the option cache_peer with never_direct parameter (see: http://www.visolve.com/squid/squid24s1/neighbour.php).

share|improve this answer

If your internet connection comes with a usage limit then no matter how you proxy/tunnel your still going to be using bandwidth and hit your limit.

share|improve this answer
    
hence the caching. Not all requests will hit the connection. Dont think question was stating tor is being used to help the limit problem, rather squid was. –  Sirex Dec 24 '10 at 10:55

When using tor for web browsing, you generally don't use it directly. You use a combination of privoxy and tor. This deals with the dreaded DNS leaks, allows you to do ad filtering etc. To make use of caching, insert squid between privoxy and your browser. So your setup would look like this:

your browser --- squid caching proxy --- privoxy --- tor --- Internet

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.