setting a basic nftables ruleset on debian

If none of the more specific forums is the right place to ask

setting a basic nftables ruleset on debian

Postby vryni » 2020-11-08 09:04

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
https://wiki.debian.org/nftables)

# 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 ?

otherwise
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.
vryni
 
Posts: 28
Joined: 2017-06-16 05:12

Re: setting a basic nftables ruleset on debian

Postby reinob » 2020-11-08 10:57

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.
reinob
 
Posts: 858
Joined: 2014-06-30 11:42


Return to General Questions

Who is online

Users browsing this forum: 4D696B65 and 13 guests

fashionable