Thread: Squid and ap-get
has been able figure out how use apt-get , squid (proxy) server?
have ubuntu server running squid , have internal network behind it, network not able route external network have run proxy updates.
if move client machine internal network external , use apt-get out proxy updates no problem.
pretty sure squid server running correctly can not sure, appreciated.
thanks
grimm
it's pretty straightforward.
it's excellent way of caching deb files later reuse, if have large enough cache , allow caching of large objects. saves on downloads if have multiple machines or need reinstall something.
first, squid side
/etc/squid/squid.conf
use editor search function, file huge (lots of comments)
default, squid refuses connections, need define network , allow access. followuing, add/modify needed
while you're @ it, maybe set 1 too:code:acl our_networks src 192.168.0.0/24 http_access allow our_networks http_access allow localhost http_access deny all
debian squid comes maximum_object_size large enough cache debs.code:maximum_object_size 40960 kb minimum_object_size 0 kb
restart squid make read config file;
if doesn't show errors, can pretty sure squid running ok
then, tell apt use proxy
there's dedicated somewhere in /etc/apt/conf.d, can add following /etc/apt/apt.conf
obviously, ip address should point your squidcode:acquire::http::proxy "http://192.168.0.1:3128/"; acquire::ftp::proxy "ftp://192.168.0.1:3128/"; acquire::https::proxy "https://192.168.0.1:3128/";
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Squid and ap-get
Ubuntu
Comments
Post a Comment