Fix python script to not include ips
Budget: $10 – $20 USD
I have a python script for fail2ban that checks the logs and bans ips but its banning some of the IPs that I have on the ignored list in fail2ban.
in the files: /etc/fail2ban/jail.local and /etc/fail2ban/jail.conf
They have a line like:
ignoreip = 123.132.123.123/24 111.222.333.444/32
with IPs that should not get banned. I need the attached script to read these 2 files and read in the ignoreip line and to not ban any matching IP's here.
Thanks
in the files: /etc/fail2ban/jail.local and /etc/fail2ban/jail.conf
They have a line like:
ignoreip = 123.132.123.123/24 111.222.333.444/32
with IPs that should not get banned. I need the attached script to read these 2 files and read in the ignoreip line and to not ban any matching IP's here.
Thanks