The officially official Devuan Forum!

You are not logged in.

#1 2019-06-11 20:35:18

d0nzag
Member
Registered: 2019-06-10
Posts: 9  

[Solved] How to load nftables rules at boot?

/etc/modules has all nf_tables* modules loaded
/etc/nftables.conf has no effect

what else could be done / checked ?

Last edited by d0nzag (2019-06-16 03:00:34)

Offline

#2 2019-06-11 21:22:57

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 354  

Re: [Solved] How to load nftables rules at boot?

initrd ?

Offline

#3 2019-06-12 09:57:52

d0nzag
Member
Registered: 2019-06-10
Posts: 9  

Re: [Solved] How to load nftables rules at boot?

This is too much. Aborting...

Offline

#4 2019-06-12 10:31:10

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 295  
Website

Re: [Solved] How to load nftables rules at boot?

Try

# cp /usr/share/doc/nftables/examples/sysvinit/nftables.init /etc/init.d
# update-rc.d nftables defaults

Then reboot.


Fabricando fit faber

Offline

#5 2019-06-16 02:59:32

d0nzag
Member
Registered: 2019-06-10
Posts: 9  

Re: [Solved] How to load nftables rules at boot?

The answer is - same way as with https://wiki.debian.org/iptables

Create executable file /etc/network/if-pre-up.d/nftables with the content

 #!/bin/sh
 /sbin/nft -f  /<path_to>/my.nftables.rules

and that's it smile

Offline

Board footer