Hi, I'm new to fail2ban. I currently have all my fw rules in a script, that is run from /etc/rc.local, and thus is run at each boot. The script begins like this:
iptables -t filter -P INPUT DROP iptables -t filter -P FORWARD DROP iptables -t filter -P OUTPUT ACCEPT iptables -t filter -F INPUT iptables -t filter -F FORWARD iptables -t filter -F OUTPUT and then about 50 lines like: iptables -t filter -A INPUT ... for various ports, among which are 22, 80, and 443, which I wish to protect with fail2ban. As far as I can tell from reading the documentation, fail2ban will work just fine with my setup. But I wonder: How does fail2ban save and restore its state between reboots, or (it happens often enough at my home) in case of a power failure? The way things work now, my script will ignore anything that fail2ban may have added. Besides, at boot, the tables are bound to be empty anyway, so how does fail2ban restore all the rules from before the poweroff? ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
