A git repository to store my nftables rulesets
Go to file
Stefan Römer 608af8c0e1
readme: restructured and added section for listing ruleset
Signed-off-by: Stefan Römer <stefan.roemer@senvang.org>
2023-06-13 00:47:20 +07:00
basic basic: added initial basic ruleset 2023-06-13 00:47:19 +07:00
README.md readme: restructured and added section for listing ruleset 2023-06-13 00:47:20 +07:00

README.md

nftables-rulesets

rulesets in this repository

basic: simple ruleset which only allows incoming ssh connections on port 22

using a ruleset

Before activation of a ruleset the nftables service already should be running because this service takes care of saving the active ruleset on shutdown and reloading it on startup. A ruleset then can be loaded with nft -f <file>

On Gentoo and Artix linux with OpenRC run:

rc-update add nftables default  
rc-service nftables start  
nft -f nftables.conf  

list currently active ruleset

For listing the currently active ruleset run:

nft list ruleset