Files
ansible/roles/firewall/templates/rules-v4.d/20_whitelist.sh.j2
2025-10-10 11:07:34 +00:00

9 lines
208 B
Django/Jinja

# {{ ansible_managed }}
{% if firewall_whitelist_ip %}
# Whitelist IPs
{% for ip in firewall_whitelist_ip %}
iptables -A INPUT -s {{ ip }} -m comment --comment "whitelist" -j ACCEPT
{% endfor %}
{% endif %}