3.12. nftables
This role installs nftables, applies a config template and restarts the service if something changed. The template is kept very simple and sets the policy for outgoing and forwarded traffic to accept but regulates the input chain: Traffic from the loopback interface, ICMP (pings) and responses to outgoing traffic are allowed in the template. Furthermore traffic that matches the configurable lines is allowed but otherwise the input policy is drop.
Parameters:
nft_network_interface: Network interface(s) used in lines for template
nft_internal_subnet: Subnet IP range used in lines for template
nft_allow_input_lines: Lines to put into template in order to allow specific network traffic
Defaults:
nft_template_comment: Comment put on top of every template delivered by Ansible