I get a few emails a day such as The IP 20.127.13.80 has just been banned by Fail2Ban after
3 attempts against SIP on. Is there a way for all non white list IP’s to be blocked? Is there a way to automatically add these IP’s to the BLACKLIST in freepbx?
Does fail2ban have a setting to reject all instead of accept all?
Many thanks.
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-recidive all – anywhere anywhere
fail2ban-openvpn udp – anywhere anywhere multiport d ports openvpn
fail2ban-api tcp – anywhere anywhere multiport dport s http,https
fail2ban-BadBots tcp – anywhere anywhere multiport d ports http,https
fail2ban-FTP tcp – anywhere anywhere multiport dport s ftp
fail2ban-apache-auth all – anywhere anywhere
fail2ban-SSH tcp – anywhere anywhere multiport dport s ssh
fail2ban-PBX-GUI all – anywhere anywhere
fail2ban-SIP all – anywhere anywhere
fpbxfirewall all – anywhere anywhere
REJECT all – anywhere 95.0.0.0.static.ttnet.com.tr/8 reject- with icmp-port-unreachable
REJECT all – anywhere 185.0.0.0/8 reject-with icmp-p ort-unreachable
REJECT all – anywhere 193.0.0.0/8 reject-with icmp-p ort-unreachable
REJECT all – anywhere 193.0.0.0/8 reject-with icmp-p ort-unreachable
REJECT all – anywhere ip-195-0-0-0.dsl.scarlet.be/8 reject-w