On Jul 25, 2017, at 1:38 PM, Michael Keuter <li...@mksolutions.info> wrote:
> >> Am 25.07.2017 um 20:26 schrieb Cody Alderson <aldersona...@gmail.com>: >> >> Hi, >> >> First time post to the list. I am not a pro by any stretch of the >> imagination for Astlinux or Linux or Asterisk for that matter. Fortunately, >> telephony is a hobby rather than a way to earn a living. >> >> Anyway, I noticed that Adaptive Ban does not persist with the IP host >> address ban upon reboot of the Asterisk box. Would you please advise me as >> to how to make a host ban persistent as I have a couple of IPs consistently >> sniffing around for a way in. I tried a few searches of the archives for an >> answer along with asking Ms. Google, but I could not find any definitive >> answers. >> >> Thank you for your help. >> >> Cody > > Hi Cody, > > Adaptive Ban scans the /var/log/messages file for specific errors, and then > block IP addresses. > When you reboot by default the log files are deleted because they are living > a temporary filesystem. > > You can change that, if you set "PERSISTLOG=yes" in your "user.conf" and > reboot. > From that point on the logs are stored in "/mnt/kd/log". > > ## Persistent Logs > ## If this variable is defined, logs are saved to the keydisk instead of RAM > PERSISTLOG=yes > > Michael +1 Cody, if you have a list of bad hosts/nets you can create a "/mnt/kd/blocklists/blocked-hosts.netset" file or may want to use FireHOL blocklists, take a read ... Firewall External Block List https://doc.astlinux-project.org/userdoc:tt_firewall_external_block_list Lonnie ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.