Re: Où placer son script de re-configuration du firewall

Michel Verdier <[email protected]>
Newsgroups gmane.linux.debian.user.french
Message-ID <[email protected]>
Le 10 août 2026 Olivier a écrit :

>> Créer un service systemd?
>
> J'ai suivi ce conseil en m'inspirant du script
> /usr/lib/systemd/nftables.service qui lui aussi est exécuté avant la
> configuration des interfaces réseau

nftables.service qui utilise /usr/lib/systemd/system/nftables.service
exécute :

  /usr/sbin/nft -f /etc/nftables.conf

Donc il suffit de mettre ses règles dans /etc/nftables.conf sans besoin
d'ajouter un autre service, et ça reste indépendant de ifupdown et
systemd-networkd.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.