Whitelist in fail2ban and denyhosts
All SysAdminMan servers come with fail2ban and denyhosts installed. These are two software packages that do similar things so can be confusing. Here are the differences – fail2ban monitors Asterisk logs for failed ‘Register’ attempts and blocks the IP using IPTables. This means if you get yourself blocked it will appear as though the server has gone down denyhosts monitors /var/log/secure for failed SSH attempts and just blocks the IP for SSH access. You will get connection refused just for SSH if you get yourself blocked It’s possible to whitelist your own IPs so that they don’t get accidentally blocked…