Categories

Category cover

Automation
43 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
15 posts

Category cover

CISO
14 posts

Category cover

Infrastructure
12 posts

Category cover

Learning paths
9 posts

Category cover

OT/ICS
6 posts

Category cover

UNetLab
4 posts

Category cover

Books
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

APT proxy with APT-Cacher NG

Andrea Dainese
August 13, 2020
Post cover

On large Linux Debian installations, I usually configure an APT proxy to optimize upgrades. I’m used to configuring APT-Cached NG in the following way:

on /etc/apt-cacher-ng/acng.conf file:

CacheDir: /proxydata/cache/apt-cacher-ng
LogDir: /var/log/apt-cacher-ng
SupportDir: /usr/lib/apt-cacher-ng
Port:3142
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-secdeb: security.debian.org ; security.debian.org deb.debian.org/debian-security
Remap-elastic: http://artifacts.elastic.co ; https://artifacts.elastic.co
Remap-docker: http://download.docker.com ; https://download.docker.com
ReportPage: acng-report.html
ExThreshold: 4
LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng
VfileUseRangeOps: -1

Repositories are accessed via HTTP, and mapped to HTTPS by the APT-Cacher NG daemon, if necessary.