Public bug reported:

Ubuntu version: 24.04
Package version: 2.3.4-1
What you expected to happen: miniupnpd would accept requests and add nftables 
rules as configured
What happened instead: miniupnpd received requests, but was unable to add 
nftables rules

By default, the systemd unit file for miniupnpd has set TasksMax=2, which 
causes the following errors:
/usr/libexec/miniupnpd-startstop-helper.sh: 32: Cannot fork
/usr/libexec/miniupnpd-startstop-helper.sh: 13: Cannot fork
Warning: no interface defined

This in turn results in miniupnpd being unable to save any rules to nftables, 
and therefore unable to forward any ports, with the following errors appearing 
whenever any requests come in:
send_batch: mnl_cb_run returned -1
nft_send_rule([redacted]) send_batch failed -4
Failed to redirect [redacted]
Failed to add NAT-PMP [redacted]

Luckily the fix is very simple, TasksMax just needs to be set to a
higher value in the systemd unit file. I've created an override on mine
to TasksMax=10, and had good results so far.

** Affects: miniupnpd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092533

Title:
  TasksMax set too low, miniupnpd-startstop-helper.sh cannot fork

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/miniupnpd/+bug/2092533/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to