Unit dependency of network-pre.target in nftables.service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello netfilter community,

I have a question regarding the dependency of nftables.service.
OS version: Ubuntu 22.04.1 LTS
nftable package version: 1.0.2-1ubuntu2

In the default nftables.service unit file, it has a default dependency
that it needs to be started before network-pre.target at boot. Based
on my understanding, nftable rule are loaded before the network
interfaces are configured.
# /lib/systemd/system/nftables.service
[Unit]
Description=nftables
Documentation=man:nft(8) http://wiki.nftables.org
Wants=network-pre.target
Before=network-pre.target shutdown.target
Conflicts=shutdown.target
DefaultDependencies=no

What is the reason to start nftable service before networkd configured
by default?
Is this the intended behavior for nftable? Or is it fine to modify the
service unit file and change the dependency to fit different use
cases?

Thank you in advance.

Best regards,
You-Yu Lu




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux