Skip to main content

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
code:
acl our_networks src 192.168.0.0/24   http_access allow our_networks  http_access allow localhost  http_access deny all
while you're @ it, maybe set 1 too:
code:
maximum_object_size 40960 kb  minimum_object_size 0 kb
debian squid comes maximum_object_size large enough cache debs.


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
code:
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/";
obviously, ip address should point your squid


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Squid and ap-get


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support