Open antifuchs opened 3 years ago
Can confirm. This also happens when using a services.pppd
interface in the nftables
configuration (since the existance of a ppp0
interface is no certainty).
I just hit this as well with bridge and sit interfaces. I feel like instead of Before=network-pre.target
, nftables should have After=network-pre.target
. That's what I changed right now and it seems to work.
One other possible solution could be to add the flow offload with a separate service after the necessary interfaces are up. Since flow offload is just a nice to have optimisation its failure is not critical.
Describe the bug
I have a firewall box running nix, which defines VLAN network interfaces, which it manages with nftables. I attempted to add a flow offload table, but when that gets added,
nftables.service
fails to start with the following error:I'm fairly certain this is due to the boot order: systemd first starts
nftables
(beforenetworking-pre
), and then sometime after it sets up VLAN interfaces. Since the interfaces referenced in the flowtable definition are "real" interfaces and not just name, they have to exist before the nftable config can be loaded.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
VLANs would be set up before nftables gets started
Notify maintainers
@Mic92
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: