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

9 lines
317 B
Django/Jinja

# {{ ansible_managed }}
# Allow InfluxDB Replication only from IPs:
iptables -N influx-in
{% for ip in firewall_influx_acl|default([]) + firewall_influx_acl_extra|default([]) %}
iptables -A influx-in -s {{ ip }} -j ACCEPT
{% endfor %}
iptables -A INPUT -p tcp --dport 8086 -m comment --comment "influx" -j influx-in