Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Webconfiguratorlockout cron job notification

    Scheduled Pinned Locked Moved webGUI
    3 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sand7000
      last edited by

      After updating to 2.2 I started receiving emails like this:

      /usr/sbin/cron: (root) CMD (/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 webConfiguratorlockout)

      I read here: that this is new behavior in 2.2 intended to stop brute force attacks.  I have two questions:

      First how can I stop the emails notifying me that this cron job is running?  I looked at System:Advanced:Notifications but I don't see it there.

      Second is expiring after 1 hour optimal?  It will definitely slow brute forcing down but I am wondering if clearing the table is necessary at all.  If someone tries to log in 15 times with the wrong password they probably have no business being the configurator at all so why give them another chance?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The fact that you get the e-mail at all is due to the arpwatch package which adds a sendmail work-alike script.

        The brute force blocking was always there before, but the expiration job was missing. So if someone was locked out, they'd stay locked out indefinitely until manually cleared or a reboot.

        You could install the cron package and adjust the job to have no output (perhaps add >/dev/null or 2>/dev/null at the end).

        The one hour time isn't configurable.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • rcfaR
          rcfa
          last edited by

          Someone else gave me this answer to a similar question:

          https://forum.pfsense.org/index.php?topic=88347.msg488730#msg488730

          Only issue seems to be, that the line has to be added anew after each OS upgrade, or so it seems, but otherwise it does the trick for me.

          So the first few lines of my /etc/crontab file now look like this:

          SHELL=/bin/sh
          PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
          HOME=/var/log
          MAILTO=""
          #minute hour    mday    month   wday    who      command
          #
          
          

          You can easily edit the file with the Diagnostics > Edit File page.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.