1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00
Go to file
jordanrinke 600ecb5356 Exclude f2b sets
If you save the f2b set, it will stack them on restart. Adding grep -iv "f2b" will exclude any sets from fail2ban from being saved, so they append a single time properly
2014-08-08 16:41:31 -07:00
iptables-persistent Exclude f2b sets 2014-08-08 16:41:31 -07:00
README.md Update README.md 2014-06-13 12:52:21 -07:00

ipsets-persistent

init.d script for iptables-persistent on Debian/Ubuntu that also saves/loads ipsets

I added checking for and saving ipsets. sets are saved in the same place as the other rules in a file named rules.ipset. Rules are only saved if they are defined, same with flushing and loading. Instead of checking to see if ipset is installed on the load, I just check for the rules.ipset file, since if that doesn't exist loading does't make sense. There might be better ways to do it, feel free to submit a pull etc. this is just the way I made it work for me.