Automating Threat Intelligence series
May 04, 2025
APT proxy with APT-Cacher NG
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.