Git Product home page Git Product logo

squid-deb-proxy's Introduction

squid-deb-proxy Docker container

![Gitter](https://badges.gitter.im/Join Chat.svg)

squid-deb-proxy provides an easy wrapper over squid3 to enable package proxy caching for your organisation/LAN.

This Docker container image allows most (if not all) non-routeable LAN subnets and caches from sources found under extra-sources.acl

Usage:

  • On Server / Host:

docker run --name proxy --rm -v /path/to/cachedir:/cachedir -p PORT:8000 pmoust/squid-deb-proxy &

  • On a node
apt-get install squid-deb-proxy-client
echo 'Acquire::http::Proxy "http://HOST_IP:PORT";' > /etc/apt/apt.conf.d/30autoproxy

squid-deb-proxy's People

Contributors

gitter-badger avatar jakommo avatar lorenz avatar mikepurvis avatar pmoust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

squid-deb-proxy's Issues

Run the avahi daemon

Without the avahi daemon running to advertise the proxy, it only works when you explicitly opt-in. This makes it a poor replacement for installing squid-deb-proxy natively on a box. There are a couple ways to potentially resolve this:

  • Supply a fig.yml configuration which also starts a separate avahi-daemon container, with the /etc/avahi/services path shared between the two.
  • Start avahi-daemon from the start.sh script, with the -D flag which daemonizes it.
  • User supervisord to manage the avahi-daemon and squid3 processes.

Default Docker internal ip address not automatically added

This squid image is a really great idea, but it's very annoying that the default docker network ( 172.17.x.x ) isn't picked up by the squid auto added of ip address ranges.
An out of the box install of squid-deb-proxy means I get permission denies whilst using it for apt-get install updates on another container on the same machine.
Any advice of the fastest way to update the allowed-network file would be greatly appreciated.

$ 1456143979.111 0 172.17.0.1 TCP_DENIED/403 3753 GET http://security.debian.org/pool/updates/main/c/curl/libcurl4-openssl-dev_7.38.0-4%2bdeb8u3_amd64.deb - HIER_NONE/- text/html 1456143979.111 RELEASE -1 FFFFFFFF 41A54AB1E1EAE46195AAD1472DA3C8B5 403 1456143979 0 -1 text/html 3374/3374 GET http://security.debian.org/pool/updates/main/c/curl/libcurl4-openssl-dev_7.38.0-4%2bdeb8u3_amd64.deb 1456143979.111 0 172.17.0.1 TCP_DENIED/403 3705 GET http://security.debian.org/pool/updates/main/c/curl/curl_7.38.0-4%2bdeb8u3_amd64.deb - HIER_NONE/- text/html 1456143979.111 RELEASE -1 FFFFFFFF 23BB42DE1358FF3EE967335F656A09AE 403 1456143979 0 -1 text/html 3326/3326 GET http://security.debian.org/pool/updates/main/c/curl/curl_7.38.0-4%2bdeb8u3_amd64.deb 1456143979.112 0 172.17.0.1 TCP_DENIED/403 3717 GET http://security.debian.org/pool/updates/main/c/curl/libcurl3_7.38.0-4%2bdeb8u3_amd64.deb - HIER_NONE/- text/html 1456143979.112 RELEASE -1 FFFFFFFF 5DBC5FCCE6FAD9A7BDCF598B14FFC3A9 403 1456143979 0 -1 text/html 3338/3338 GET http://security.debian.org/pool/updates/main/c/curl/libcurl3_7.38.0-4%2bdeb8u3_amd64.deb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.