squid-deb-proxy for Debian

I uploaded squid-deb-proxy into Debian unstable today and its in the NEW queue. I created it back in the days of Ubuntu 10.04 and some people voiced interest in having it in Debian as well so I spend a bit of time to get it customized for Debian.

Squid-deb-proxy uses the well known squid proxy with a custom configuration to cache deb package and Indexfiles (like Packages.gz) that will allow caching from the default archives and mirrors and reject anything else by default.

The basic philosophy is that “it just works”. You run on your server:

root@server# apt-get install squid-deb-proxy

and on your clients:

root@client# apt-get install squid-deb-proxy-client

and that’s it. It does not require any fiddling with configuration (unless you want to😉 ). The default will let you connect to .debian.org and nothing else.

The server will announce itself via avahi as _apt_proxy._tcp and the
client will hook into apt to use Acquire::http::ProxyAutoDetect. The
client is useful for other servers that announce themself via avahi.

Packaging was a bit more work than anticipated because there is a bit of setup and teardown work in the initscript. For Debian as sysvinit script was needed, Ubuntu uses upstart so it took a bit of refactoring to extract the code into a common helper.

If you want to try it now, its available via:

$ bzr branch lp:squid-deb-proxy
$ cd squid-deb-proxy
$ bzr-buildpackage

and in unstable once it leaves the NEW queue.

11 Responses to “squid-deb-proxy for Debian”

  1. jorge Says:

    Thanks for putting this in Debian!

  2. Ледков Дмитрий Says:

    AWESOME! =)

  3. mfraz Says:

    What is the preferred method for deleting old packages from squid’s cache?

  4. iveand Says:

    How would I go about getting this into a headless ARM device running squeeze? Any clues appreciated.

  5. alex Says:

    I am trying to migrate from apt-cacher-ng to squid-deb-proxy.
    Avahi auto magic will not work as far as I see if the proxy server is in different network.
    Surely one can figure out how to tweak the client to setup it manually but It would be nice to have at least some documentation on what to do in non standart configuration.

  6. alex Says:

    Is there an easy way to make squid-deb-proxy understand urls like that: http://installer:9999/de.archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages

    I want to use it as drop-in replacemnt of apt-cacher-ng and try to avoid changes on the client side.
    Thanks,
    Alex

  7. Raúl Says:

    Hi:
    I just wanted to let you know that the right option name now as of current debian sid (~=jessie) is Acquire::http::Proxy-Auto-Detect

    I’ve been using the one you specify along this posts and I experienced that even autodetection command is executed, the result value is not used afterwards,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: