forked from pool/nftables
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.
25 lines
604 B
Plaintext
Executable File
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"
|