forked from infra/ansible
Nagios: remove nrpe from the firewall config
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
bd60dab0fb
commit
fbf73ff1f9
9 changed files with 0 additions and 36 deletions
|
|
@ -29,9 +29,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe (if we want noc02 to be able to get into remote systems)
|
||||
#-A INPUT -p tcp -m tcp --dport 5666 -s 2600:2701:4000:5211:dead:beef:00fe:fed9 -j ACCEPT
|
||||
|
||||
# if the host/group defines incoming tcp_ports - allow them
|
||||
{% if tcp_ports is defined %}
|
||||
{% for port in tcp_ports %}
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -27,9 +27,6 @@
|
|||
# external ip for rdu3
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -s 38.145.32.0/24 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@
|
|||
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
||||
# Overwrite any global rules
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp -s 192.168.1.10 --dport 5666 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp -s 192.168.1.166 --dport 5666 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp -s 38.145.32.16 --dport 5666 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp -s 38.145.32.15 --dport 5666 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -24,9 +24,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -24,9 +24,6 @@
|
|||
# allow ssh - always
|
||||
-A INPUT -m conntrack --ctstate NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# for nrpe - allow it from nocs
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.10 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 192.168.1.166 -j ACCEPT
|
||||
# FIXME - this is the global nat-ip and we need the noc01-specific ip
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.16 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 5666 -s 38.145.32.15 -j ACCEPT
|
||||
|
|
|
|||
|
|
@ -1,18 +1,6 @@
|
|||
# _nft_accept_monitoring
|
||||
# Default accept policy, let things be monitored
|
||||
|
||||
# for Nagios/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
|
||||
# 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
|
||||
|
||||
# Greg has configured zabbix so the host calls out to the server, so we
|
||||
# shouldn't need to accept anything on 10050/10051.
|
||||
# Leaving them here commented out for a bit. 2026-06-03
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue