Difference between revisions of "Fail2ban"
From MyWiki
Line 1: | Line 1: | ||
+ | [[ configure Fail2ban to block SASL login failed attempts in Postfix ]]<br> | ||
+ | |||
fail2ban-client get postfix-spamers550 actionunban 111.222.333.444<br> | fail2ban-client get postfix-spamers550 actionunban 111.222.333.444<br> | ||
I know I can work with IPTables directly: iptables -D fail2ban-ssh <number><br> | I know I can work with IPTables directly: iptables -D fail2ban-ssh <number><br> | ||
Use iptables -L -n to find the rule name then use fail2ban-client status to get the actual jail names. The rule name and jail name may not be the same but it should be clear which one is related to which.<br> | Use iptables -L -n to find the rule name then use fail2ban-client status to get the actual jail names. The rule name and jail name may not be the same but it should be clear which one is related to which.<br> | ||
'''fail2ban-client set ssh-iptables unbanip 168.223.37.13'''<br> | '''fail2ban-client set ssh-iptables unbanip 168.223.37.13'''<br> |
Revision as of 11:01, 21 March 2019
configure Fail2ban to block SASL login failed attempts in Postfix
fail2ban-client get postfix-spamers550 actionunban 111.222.333.444
I know I can work with IPTables directly: iptables -D fail2ban-ssh <number>
Use iptables -L -n to find the rule name then use fail2ban-client status to get the actual jail names. The rule name and jail name may not be the same but it should be clear which one is related to which.
fail2ban-client set ssh-iptables unbanip 168.223.37.13