setting a basic nftables ruleset on debian

If none of the more specific forums is the right place to ask
Post Reply
Posts: 30
Joined: 2017-06-16 05:12

setting a basic nftables ruleset on debian

#1 Post by vryni »

Having read about nftables being Debian's default
and preferred firewall, i installed and enabled it to launch on boot
on my Debian desktop with the commands mentioned
on Debian wiki :

(nftables in Debian the easy way

# aptitude install nftables
# systemctl enable nftables.service

Being completely uninformed on this :
Am i to conclude that my desktop is being guarded by
a default nftables ruleset ?

If not
Is there somewhere a dependable basic rulest version
i can safely copy-paste to my desktop ?

What is the easiest way to safely create such basic defense ?
Last edited by vryni on 2020-11-08 11:00, edited 1 time in total.

Posts: 935
Joined: 2014-06-30 11:42

Re: setting a basic nftables ruleset on debian

#2 Post by reinob »

You can check the output of "nft list ruleset".
If its empty, then the firewall (nftables) is not doing anything.
If you want to set-up some rule, do it at /etc/nftables.conf

If you need an example to start with, check in /usr/share/doc/nftables.
Take workstation.nft as a starting point.

Post Reply