#1054056 quicktun: Please provide native NetworkManager hook scripts

Package:
quicktun
Source:
quicktun
Description:
very simple, yet secure VPN software
Submitter:
Date:
2025-08-09 20:59:01 UTC
Severity:
normal
#1054056#5
Date:
2023-10-16 17:03:21 UTC
From:
To:
Hi,

NetworkManager provides a service named NetworkManager-dispatcher
[1], which executes scripts in
/{etc,usr/lib}/NetworkManager/dispatcher.d upon (network) state
changes.

This is in spirit similar to ifupdown's /etc/network/if-*.d/ scripts.

Previously, NetworkManager tried to call those ifupdown hook scripts
via NetworkManager-dispatcher by faking an ifupdown environment.

This caused a variety of problems though. While the concepts are
similar, the actual implementations differ significantly, e.g. when
certain events are triggered. So the mapping was never really correct
and complete. Also, some ifupdown hook scripts are meant to extend
the functionality of ifupdown. The bridge-utils and wpasupplicant
package are examples here, that provide hook scripts that should not
be run under NetworkManager, as it has builtin implementations for
this kind of functionality.

As a result, NetworkManager in trixie will remove support for running
ifupdown hook scripts.

Your package quicktun installs one or more ifupdown hook scripts.

Please evaluate, whether your package would benefit from shipping a
native hook script for NetworkManager. If not, please just close this
bug report with a corresponding comment.

Such package provided hook scripts should be placed in
/usr/lib/NetworkManager/dispatcher.d/. If your hook script needs
additional configuration, please place this configuration in /etc and
source that in your hooks script. It is discouraged to place package
provided hook scripts directly in /etc/NetworkManager/dispatcher.d/.
This directory is meant for local modifications.

You can read more about the NetworkManager-dispatcher interface at
[1].

If you have further questions, you can contact me directly or
preferably the pkg-utopia mailing list at
<pkg-utopia-maintainers@lists.alioth.debian.org>.

Kind regards,

Michael

[1]
https://manpages.debian.org/bookworm/network-manager/NetworkManager-d
ispatcher.8.en.html [2]

#1054056#10
Date:
2025-08-07 21:26:46 UTC
From:
To:
Hi Michael,

I came from the Debian Tiny Task team, and I'm interested
in fix this bug.

But I will request some guiance to fix this bug. Could you
help me?

Thanks!

#1054056#15
Date:
2025-08-07 22:06:51 UTC
From:
To:
Am 07.08.25 um 23:26 schrieb Emmanuel Arias:

What kind of help do you need?

Michael

#1054056#20
Date:
2025-08-08 01:16:10 UTC
From:
To:
Some examples would be useful
#1054056#25
Date:
2025-08-09 20:56:50 UTC
From:
To:
Am 08.08.25 um 03:16 schrieb Emmanuel Arias:

man NetworkManager-dispatcher

$ apt-file search /usr/lib/NetworkManager/dispatcher.d/
aoetools: /usr/lib/NetworkManager/dispatcher.d/aoe
chrony: /usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
chrony: /usr/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
moosefs-chunkserver:
/usr/lib/NetworkManager/dispatcher.d/pre-down.d/moosefs-chunkserver
ntpsec: /usr/lib/NetworkManager/dispatcher.d/ntpsec
ntpsec-ntpdate: /usr/lib/NetworkManager/dispatcher.d/ntpsec-ntpdate
postfix: /usr/lib/NetworkManager/dispatcher.d/postfix
shorewall-init: /usr/lib/NetworkManager/dispatcher.d/01-shorewall
tlp-rdw: /usr/lib/NetworkManager/dispatcher.d/99tlp-rdw-nm