SHA256
1
0
forked from pool/nftables
nftables/main.nft
Matthias Gerstner 71d8541655
Implement nftables.service for static firewall configurations (bsc#1237277)
It seems users are missing this service which is not part of the
upstream project but present in most other Linux distributions. It
allows to setup simple static nftables based firewalls via configuration
files.
2025-02-27 12:01:17 +01:00

25 lines
604 B
Plaintext
Executable File

#!/usr/sbin/nft -f
# template static firewall configuration file
#
# copy this over to /etc/nftables/rules/main.nft as a starting point for
# configuring a rule set which will be loaded by nftables.service.
flush ruleset
table inet filter {
chain input {
type filter hook input priority filter;
}
chain forward {
type filter hook forward priority filter;
}
chain output {
type filter hook output priority filter;
}
}
# this can be used to split the rule set into multiple smaller files concerned
# with specific topics, like forwarding rules
#include "/etc/nftables/rules/forwarding.nft"