From: Michael K. <li...@mk...> - 2017-07-25 18:38:56
|
> Am 25.07.2017 um 20:26 schrieb Cody Alderson <ald...@gm...>: > > 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 http://www.mksolutions.info |