#1117211 firewalld: It would be nice to have a service for apt-cacher-ng. XML file included.

Package:
firewalld
Source:
firewalld
Submitter:
Charles Curley
Date:
2026-05-01 20:37:02 UTC
Severity:
normal
Tags:
#1117211#5
Date:
2025-10-04 22:20:43 UTC
From:
To:
Dear Maintainer,

file apt-cacher-ng.xml:

<?xml version="1.0" encoding="utf-8"?>
<service version="0.01">
  <short>apt-cacher Next Generation</short>
  <description>Apt-Cacher Next Generation (NG) is a caching proxy for downloading packages from Debian-style software repositories (or possibly from other types). See the package description for more information.</description>
  <port port="3142" protocol="tcp"/>
</service>

#1117211#10
Date:
2026-05-01 19:40:07 UTC
From:
To:
Hi Charles,

thanks for your contribution!

Would you mind raising this issue with the apt-cacher-ng maintainer? (in CC)

I try to avoid patches to firewalld and the addition of a rather Debian
specific service like apt-cacher-ng is unlikely to be accepted by
firewalld upstream. So I would prefer if this integration is shipped by
the apt-cacher-ng package instead.

For the apt-cacher-ng maintainers: The attached file would have to be
installed as /usr/lib/firewalld/services/apt-cacher-ng.xml


Regards,
Michael

#1117211#15
Date:
2026-05-01 20:20:43 UTC
From:
To:
On Fri, 1 May 2026 21:40:07 +0200 Michael Biebl <biebl@debian.org> wrote:

Whatever works for all of you.

OK, non-maintainer ignorance at play here. Shipping this with ACNG
works if firewalld is already installed. The ACNG installer looks for
firewalld, and if it finds it, installs the file. I am assuming that if
the installer doesn't find firewalld, it refrains from installing the
file.

However, if the user installs ACNG, and then later firewalld, is there a
mechanism to install this file? I ran into a similar situation with
libvirt, and had to do a "apt reinstall firewalld" to get the virtual
networking and firewalld to play well.

#1117211#20
Date:
2026-05-01 20:34:47 UTC
From:
To:
Am 01.05.26 um 22:20 schrieb Charles Curley:

If the file /usr/lib/firewalld/services/apt-cacher-ng.xml is installed
by apt-cacher-ng, it will be picked up automatically by firewalld.