Mailinabox/tools/editconf.py /etc/fail2ban/jail.d/nf \ġ27.0.0.1/8 are default values in nf and should stay the same. To help keep the ip and hostnames you want unblocked it is a good idea to add customers and carriers to the ignoreip list. To rewrite your config after each mailinabox upgrade, you may want create a custom script with the following (please test before using in production) in your home directory, and chmod x #!/bin/bash iptables -L -n Run the following command to get actual jail names. Open terminal and run the following command to list all iptables rules. The tricky part is to find the right jail for the banned IP address. If the above file doesn’t work then look like you need to edit /etc/fail2ban/jail.d/nf instead, which gets overwritten. Find the right jail Fail2ban organizes the banned IP addresses into various jails. Sudo fail2ban-client set JAIL-NAME unbanip IP-ADDRESS WhiteListĮdit this line (Example, by IP or by IP block) Sudo zgrep ‘Ban’ /var/log/fail2ban.log* | grep your-ip To find the jailname of the IP you want to unban (you need this) Note: Once unbanned, you may whitelist this IP addresses in Plesk at Tools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |