1
0
Fork 0
forked from infra/ansible

nftables: Fix/merge monitoring changes between prod/staging.

Signed-off-by: James Antill <james@and.org>
This commit is contained in:
James Antill 2026-06-01 18:38:22 -04:00
commit e11b39314d

View file

@ -2,14 +2,23 @@
# Default accept policy, let things be monitored
# for nrpe - allow it from nocs
# NOTE: These were still here in staging, before the cleanup.
#add rule {{_tn}} INPUT ip saddr 192.168.1.10 tcp dport 5666 counter accept
#add rule {{_tn}} INPUT ip saddr 192.168.1.166 tcp dport 5666 counter accept
#add rule {{_tn}} INPUT ip saddr 192.168.1.66 tcp dport 5666 counter accept
# FIXME - this is the global nat-ip and we need the noc01-specific ip
add rule {{_tn}} INPUT ip saddr 38.145.32.16 tcp dport 5666 counter accept
add rule {{_tn}} INPUT ip saddr 38.145.32.15 tcp dport 5666 counter accept
add rule {{_tn}} INPUT ip saddr 10.16.163.10 tcp dport 5666 counter accept
add rule {{_tn}} INPUT ip saddr 10.16.166.10 tcp dport 5666 counter accept
# NOTE: This was in staging only, before the cleanup. But seems dead.
#add rule {{_tn}} INPUT ip saddr 10.16.166.10 tcp dport 5666 counter accept
{% if env != 'staging' %}
# zabbix01
add rule {{_tn}} INPUT tcp dport 10051 counter accept
add rule {{_tn}} INPUT ip saddr 10.3.163.198 tcp dport 10050 counter accept
{% else %}
# zabbix01.stg
add rule ip filter INPUT tcp dport 10051 counter accept
add rule ip filter INPUT ip saddr 10.16.166.61 tcp dport 10050 counter accept
{% endif %}