Article View: linux.debian.bugs.dist
Article #1396Bug#1151344: knockd is broken
From: Phillip Susi
Date: Mon, 19 Oct 2026 22:20
Date: Mon, 19 Oct 2026 22:20
29 lines
2639 bytes
2639 bytes
Package: knockd Version: 0.8-2+b6 For some time know, knockd has been broken on my mail server. I finally spent some time trying to troubleshoot it. Attaching to it with strace showed that the kernel was not giving it any notification to knocks. After some time chatting with our new AI overlord, it indicated this may be because it is forking under systemd, and that is silently restricting its ability to listen to raw packets. It suggesed this systemd override to cause it to not fork, and this worked: [Service] # Clear the original ExecStart line (Mandatory in systemd to reset it) ExecStart= # Run knockd in the foreground (-D) so it retains its raw network socket ExecStart=/usr/sbin/knockd -D -i ens5 # Change the service type to match a foreground process architecture Type=exec # Keep sandbox exceptions active CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN RestrictAddressFamilies=AF_INET AF_INET6 AF_PACKET AF_NETLINK PrivateNetwork=no ProtectSystem=full I think the key difference is the -D flag that prevents it from forking. Please add this to the systemd service file.
Technical Details
Message-ID:
<NQ3S1-6BZY-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Phillip Susi <phill@thesusis.net> Newsgroups: linux.debian.bugs.dist Subject: Bug#1151344: knockd is broken Date: Tue, 20 Oct 2026 00:20:01 +0200 Message-ID: <NQ3S1-6BZY-1@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 19 22:13:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Phillip Susi <phill@thesusis.net>, 1151344@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: costela@debian.org X-Debian-Pr-Message: report 1151344 X-Debian-Pr-Package: knockd X-Debian-Pr-Source: knockd MIME-Version: 1.0 Content-Type: text/plain X-Greylist: delayed 589 seconds by postgrey-1.37 at buxtehude; Mon, 19 Oct 2026 22:11:32 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997596 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 29 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 19 Oct 2026 18:01:40 -0400 X-Original-Message-ID: <877bjds62j.fsf@vps.thesusis.net>