Menu

#4636 fail2ban Filter Action Jails

1.760
closed-fixed
nobody
None
5
2015-09-12
2015-09-08
M.T.R
No

hi,

there is a problem with Filter Action Jails:
if i enter multible log file paths,
i am prompted, that there is an error,
i should only enter absolute paths.

in fact it's not possible to enter multiple paths from this option.

the only way is to enter them manually in the local config file.

they are then well displayed in the Filter Action Jails option page,
but if you would save this, you get same error message.

reproducable

cheers

Related

Bugs: #4636

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-09-09

    Which webmin version are you running there? Because the current release supports multiple log file paths just fine..

     
    • M.T.R

      M.T.R - 2015-09-09

      Hi,
      thanks for your mail,
      I'm on

      Webmin 1.760 on Debian 8 on VPS server.

      cheers
      -----Ursprungliche Nachricht-----
      Von: Jamie Cameron [mailto:jcameron@users.sf.net]
      Gesendet: Mittwoch, 9. September 2015 07:07
      An: [webadmin:bugs]
      Betreff: [webadmin:bugs] #4636 fail2ban Filter Action Jails

      Which webmin version are you running there? Because the current release
      supports multiple log file paths just fine..

      ----------------------------------------------------------------------------

      [bugs:#4636] fail2ban Filter Action Jails

      Status: open
      Group: 1.760
      Created: Tue Sep 08, 2015 12:43 PM UTC by M.T.R
      Last Updated: Tue Sep 08, 2015 12:43 PM UTC
      Owner: nobody

      hi,

      there is a problem with Filter Action Jails:
      if i enter multible log file paths,
      i am prompted, that there is an error,
      i should only enter absolute paths.

      in fact it's not possible to enter multiple paths from this option.

      the only way is to enter them manually in the local config file.

      they are then well displayed in the Filter Action Jails option page,
      but if you would save this, you get same error message.

      reproducable

      cheers

      ----------------------------------------------------------------------------

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/webadmin/bugs/4636/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #4636

    • M.T.R

      M.T.R - 2015-09-09

      this setting i can do manually in jail.local:

      [APACHE]
      enabled = true
      filter = APACHE
      action = IPTABLES_DEFAULT[name=APACHE]
      logpath = /etc/apache2/example1.com-error.log
      /etc/apache2/example2.com-error.log
      /etc/apache2/example3.com-error.log
      /etc/apache2/example4.com-error.log
      /etc/apache2/example5.com-error.log
      maxretry = 1
      findtime = 1
      bantime = -1

      if i access Fail2Ban Intrusion Detector/Filter Action Jails/APACHE
      i can read the settings fine,
      but as soon as i want to save them there,
      i get error message concerning absolute path ...

      hope this helps

      cheers

       
  • Jamie Cameron

    Jamie Cameron - 2015-09-09

    Can you post the exact error message?

     
    • M.T.R

      M.T.R - 2015-09-10

      the error message is:

      Failed to save jail : All log files must be absolute paths or patterns

      hope this helps

      cheers

       
  • Jamie Cameron

    Jamie Cameron - 2015-09-11

    In your config, is :

    logpath = /etc/apache2/example1.com-error.log
    /etc/apache2/example2.com-error.log
    /etc/apache2/example3.com-error.log
    /etc/apache2/example4.com-error.log
    /etc/apache2/example5.com-error.log

    All one long line?

     
    • M.T.R

      M.T.R - 2015-09-11

      Hi,

      no,

      they are line by line (and they are working fine)

      logpath = /etc/apache2/example1.com-error.log
      /etc/apache2/example2.com-error.log
      /etc/apache2/example3.com-error.log
      /etc/apache2/example4.com-error.log
      /etc/apache2/example5.com-error.log

      cheers

       

      Last edit: M.T.R 2015-09-11
  • Jamie Cameron

    Jamie Cameron - 2015-09-11

    In your browser on the Edit Jail page, do each of those log files appear on a separate line, or all they all on one long line?

     
    • M.T.R

      M.T.R - 2015-09-12

      i attach a screenshot.

      cheers

       
  • Jamie Cameron

    Jamie Cameron - 2015-09-12
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2015-09-12

    Ok, I think I see the cause - this will be fixed in the next Webmin release.

     

Log in to post a comment.