ansible_playbooks/roles/update_firewall/templates/nftables.conf.j2
2026-02-24 11:30:35 +03:00

19 lines
526 B
Django/Jinja
Executable file

#!/usr/sbin/nft -f
flush ruleset
table ip filter {
chain input {
type filter hook input priority -1;
# включить логгирование заблокированных пакетов
log prefix "[NFT BLOCK]"
}
chain forward {
type filter hook forward priority -1;
# включить логгирование заблокированных пакетов
log prefix "[NFT BLOCK]"
}
chain output {
type filter hook output priority 0;
}
}