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

    System Log Settings

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 334 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.
    • J
      JonH
      last edited by

      Running v24.03
      In System Log settings -> Local logging, Disable writing to local disk, there is a warning " This will also disable Login Protection!"

      Exactly what is that warning referring to? How does not writing logs to pfSense box disable login protection?

      I'm trying to minimize writes to my SG-5100 and am writing logs to a remote device so I would like to disable the local logging but I cannot find any specific reference to exactly what this means. I searched the docs and didn't see anything.

      thanks

      S GertjanG 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Rebel Alliance @JonH
        last edited by

        @JonH per https://docs.netgate.com/pfsense/en/latest/monitoring/logs/settings.html
        "When checked, local logs are not retained. They are not written to disk nor are they kept in memory. While this saves on disk writes, it necessitates the use of remote logging so that information is not lost."

        I would assume, there is nothing for the login protection process to monitor for failed logins.

        How minimized (writes)? A RAM disk will help quite a lot, as will not logging a few standard things like logging the default block rules or IGMP blocks, or various package log settings.

        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
        Upvote ๐Ÿ‘ helpful posts!

        J 1 Reply Last reply Reply Quote 0
        • J
          JonH @SteveITS
          last edited by

          @SteveITS said in System Log Settings:

          A RAM disk will help quite a lot

          My 5100 has 4MB memory and I typically am at 50% usage but I suppose it goes higher now and then. When my eMMC failed I installed an m2. Sata. Could I use part of the m2 for a ram disk?

          And the check box for local logging says "WARNING: This will also disable Login Protection!" This is what I am asking about. What login protection am I disabling?

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Rebel Alliance @JonH
            last edited by

            @JonH it's this:
            https://docs.netgate.com/pfsense/en/latest/config/advanced-admin.html#login-protection

            It looks at the logs but if there are no logs it can't find any login attempts.

            Of course that would usually be on internal interfaces since you don't want to expose pfSense on WAN.

            re: RAM disk, if you have a SSD I would not worry much about writes. Netgate has a list of packages with high disk writes, https://www.netgate.com/supported-pfsense-plus-packages. You can use a RAM disk...its size depends on what you're doing. For our clients on a 4 GB router we usually set 512 and 1024 MB for tmp and var, and they are usually way less. Other usage may be different, for instance the UT1 adult feed in pfBlocker takes over 1 GB to extract. In recent pfSense versions the RAM disk is not preallocated in memory.

            Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
            Upvote ๐Ÿ‘ helpful posts!

            J 1 Reply Last reply Reply Quote 0
            • J
              JonH @SteveITS
              last edited by

              @SteveITS thanks, I need to review that advanced admin doc. Simply searching the doc's for login protection didn't get any hits and so I came here. This is exactly what I was looking for.

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @JonH
                last edited by

                @JonH said in System Log Settings:

                Disable writing to local disk, there is a warning " This will also disable Login Protection

                See here : System > Advanced > Admin Access and scroll down to

                bb3bc81f-f040-4b45-940b-7a90af1ce0cb-image.png

                These settings control the process "sshguard" :

                c8c0da74-4d88-4fcb-8fee-c327b95a70b8-image.png

                sshguard reads the logs - for example the authentication log, for failed login attempts.
                If there are 'to many', then the offending IP is added to an alias, and this alias is used in a blocking firewall rule.

                You have a 5100, and you've MAXimized it, don't bother of protecting the SSD drive.
                I've chosen the 4100 MAX version for the same reason :
                Lots of log space, if needed, as a detailed log over a xx days span is part of the the security : logs shows what happens to the system. I also remote 'syslog' my logs, for backup purposes, to a NAS.
                A big SSD also permits you to use the ZFS based "System > Boot Environments" which will eliminate 99;9 % of all update / upgrade issues. It will also permit you to test settings, and if needed, to go back to the previous state with 'one click'.

                @JonH said in System Log Settings:

                Could I use part of the m2 for a ram disk

                Like swap memory ? Disk storage access time is a more then a thousand times slower as RAM access. Imho : never ever use that method.

                But I get it : You've lost a 'disk' (the emmc) ones, but now you've a sata drive (aka : the 5100 MAX). It won't happen again ^^
                he SSD might die again, but no hassle, they always do, like the hard disks we use before. Easy to change, and after a "couple of years" you'll upgrade the entire device anyway ^^

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                J 1 Reply Last reply Reply Quote 1
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  That^. sshguard monitors the logs for login attempts and blocks IPs based on failures. But it requires log entries to be created to see that.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JonH @Gertjan
                    last edited by

                    @Gertjan said in System Log Settings:

                    You have a 5100, and you've MAXimized it, don't bother of protecting the SSD drive.
                    I've chosen the 4100 MAX version for the same reason :
                    Lots of log space, if needed, as a detailed log over a xx days span is part of the the security : logs shows what happens to the system. I also remote 'syslog' my logs, for backup purposes, to a NAS.

                    Last week I started writing to remote syslog on NAS and see my pfSense logs still going so that is why I asked about disabling local logging.

                    But I get it : You've lost a 'disk' (the emmc) ones, but now you've a sata drive (aka : the 5100 MAX). It won't happen again ^^
                    he SSD might die again, but no hassle, they always do, like the hard disks we use before. Easy to change, and after a "couple of years" you'll upgrade the entire device anyway ^^

                    Thanks. The SSD is 64gb so hopefully at my age it will last long enough that I won't need to upgrade. But I seem to say that about every piece of hardware I buy. ๐Ÿ™„

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