Fixes for monitoring of self.

This commit is contained in:
Johan Björklund 2024-11-29 13:20:16 +01:00
parent a9957e4955
commit d9294646ce
Signed by untrusted user: bjorklund
GPG key ID: 5E8401339C7F5037
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,6 @@
---
nrpe_clients:
- 127.0.0.1
- 127.0.1.1
- 89.47.185.162
- 172.16.0.0/20

View file

@ -0,0 +1,35 @@
#!/usr/sbin/nft -f
#
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
# accept any localhost traffic
iif lo counter accept
iifname "br-*" counter accept
# accept icmp
ip protocol icmp counter accept
ip6 nexthdr icmpv6 icmpv6 type { destination-unreachable, packet-too-big, time-exceeded,
parameter-problem, echo-request, mld-listener-query,
nd-router-solicit, nd-router-advert, nd-neighbor-solicit,
nd-neighbor-advert } counter accept
# accept traffic originated from us
ct state established counter accept
# silently drop invalid packets
ct state invalid counter drop
}
chain forward {
type filter hook forward priority 0; policy drop;
}
chain output {
type filter hook output priority 0;
}
}
# include all the other files that may be deployed by puppet
include "/etc/nftables/conf.d/*.nft"