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

IPsec Logging levels can no longer be changed..

Scheduled Pinned Locked Moved IPsec
7 Posts 3 Posters 441 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.
  • K
    keyser Rebel Alliance
    last edited by Nov 12, 2023, 5:38 PM

    Just upgraded to 23.09 on my boxes, and i noted a MASSIVE increase in my SIEM logging from IPSec in pfSense.

    After the upgrade all IPSec logging levels (under VPN -> IPSEC -> Advanced Settings) were returned to their defaults.
    Those levels are far to noisy for our setup, so I tried dialing some of them down, but changes are not respected (or saved). When ever i return to the log settings, they are at default, and the actual logging is also at default regardless of what I do.

    Can others confirm this behaviour?

    Love the no fuss of using the official appliances :-)

    K 1 Reply Last reply Nov 15, 2023, 1:56 PM Reply Quote 0
    • K
      keyser Rebel Alliance @keyser
      last edited by Nov 15, 2023, 1:56 PM

      @keyser No one?

      Love the no fuss of using the official appliances :-)

      M 1 Reply Last reply Nov 15, 2023, 2:57 PM Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @keyser
        last edited by Nov 15, 2023, 2:57 PM

        @keyser
        if anything my logging for the IPsec process has gone down since the 23.09 update.
        I keep my logging at the default settings.

        ea9e4d1c-85c0-4baf-9d69-ba632c075630-image.png

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        K 1 Reply Last reply Nov 15, 2023, 3:24 PM Reply Quote 0
        • K
          keyser Rebel Alliance @michmoor
          last edited by Nov 15, 2023, 3:24 PM

          @michmoor But that does not answer the question. Can you change/disable logging if you wanted to?
          No settings are saved/applied when I try.

          Love the no fuss of using the official appliances :-)

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by jimp Nov 15, 2023, 4:41 PM Nov 15, 2023, 4:32 PM

            Looks like there may be a problem with the GUI display of log settings which are set to Audit which has an internal value of 0. When you change the setting and save, the proper value is stored into the config, but the function that reads it back out is getting confused by the 0 value because PHP's empty() behavior can be a bit boneheaded.

            The following change should fix it:

            diff --git a/src/etc/inc/ipsec.inc b/src/etc/inc/ipsec.inc
            index 68bfad2243..44f3d85edc 100644
            --- a/src/etc/inc/ipsec.inc
            +++ b/src/etc/inc/ipsec.inc
            @@ -1190,7 +1190,7 @@ function ipsec_get_loglevels() {
                    $levels = array();
             
                    foreach (array_keys($ipsec_log_cats) as $cat) {
            -               if (!empty(config_get_path('ipsec/logging/' . $cat))) {
            +               if (strlen(config_get_path('ipsec/logging/' . $cat)) > 0) {
                                    $levels[$cat] = config_get_path('ipsec/logging/' . $cat);
                            } elseif (in_array($cat, array('ike', 'chd', 'cfg'))) {
                                    $levels[$cat] = "2";
            

            EDIT: Redmine: https://redmine.pfsense.org/issues/14990

            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!

            K 1 Reply Last reply Nov 15, 2023, 4:44 PM Reply Quote 1
            • K
              keyser Rebel Alliance @jimp
              last edited by Nov 15, 2023, 4:44 PM

              @jimp Hi Jimp. thanks for the insight and analysis. Will there be a patch for this in the patch tool?

              Love the no fuss of using the official appliances :-)

              J 1 Reply Last reply Nov 15, 2023, 4:46 PM Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate @keyser
                last edited by Nov 15, 2023, 4:46 PM

                @keyser said in IPsec Logging levels can no longer be changed..:

                @jimp Hi Jimp. thanks for the insight and analysis. Will there be a patch for this in the patch tool?

                Yes, eventually, might be next week or later, but you can add in a manual entry now (copy/paste that diff above) and apply it now if you don't want to wait.

                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 1
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received