Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example, I want squid to cache HTTP contents only for *, which is blocked by firewall, and don't cache for other domains.

And, only LAN ( users can access the cached contents, but all users are allowed to access non-cached contents.

User-IP              Dest-Domain                    acl             Expect   
----------------     -----------------------       ------      -------------------------                *          allow       Cache Proxy, Fast       *.other                       allow       Pass Proxy, Slow     
Other                *                             allow       Pass Proxy, Slow
share|improve this question

migrated from Dec 9 '10 at 8:23

This question came from our site for computer enthusiasts and power users.

This is a bit of a dodge, but if you only care about auto-cacheing debian/ubuntu packages, try approx:

apt-get install approx

This requires that the clients be configured to download package lists from your proxy server, instead of the usual ubuntu servers but if you already use configuration management software like puppet or cfengine this is easy.

Your sources.list file would look something like this:

deb  http://my.proxy.tld:9999/ubuntu/  lucid  lucid main restricted universe multiverse
deb http://my.proxy.tld:9999/ubuntu-security/ lucid-security main restricted universe multiverse

And your approx.conf file like:

share|improve this answer
apt-cacher-ng is another good apt repository proxy. – Shane Madden Mar 2 '11 at 6:28

Your Answer


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.