🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Phillip Susi Mon, 19 Oct 2026 22:20
Bug#1151344: knockd is broken
#1396
Author: Phillip Susi
Date: Mon, 19 Oct 2026 22:20
29 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads