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

    2.5 with many tunnels - Apply Changes fails

    Scheduled Pinned Locked Moved IPsec
    21 Posts 2 Posters 1.7k 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.
    • vergilisV
      vergilis
      last edited by

      There's HA proxy and Squid. There's very low utilization:

      last pid: 97107;  load averages:  0.51,  0.50,  0.36  up 0+13:27:29    11:54:43
      244 threads:   3 running, 225 sleeping, 16 waiting
      CPU:  0.8% user,  0.0% nice,  1.3% system,  0.0% interrupt, 97.9% idle
      Mem: 51M Active, 76M Inact, 234M Wired, 100M Buf, 4551M Free
      

      Please let me know if you need any other information.

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

        Anything in the system or IPsec logs at all?

        There isn't much to go on here.

        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
        • vergilisV
          vergilis
          last edited by

          It is really busy. Constantly get:

          logfile turned over due to size>500K
          

          Modifying the log setting will constantly get the same timeout. Perhaps that's the issue. How do I silence it?

          1 Reply Last reply Reply Quote 0
          • vergilisV
            vergilis
            last edited by

            Is there a mapping of log entries in the UI so that I can turn down specific log entries after persistent retries?

            app: applications other than daemons
            asn: Low-level encoding/decoding (ASN.1, X.509 etc.)
            cfg: Configuration management and plugins
            chd: CHILD_SA/IPsec SA
            dmn: Main daemon setup/cleanup/signal handling
            enc: Packet encoding/decoding encryption/decryption operations
            esp: libipsec library messages
            ike: IKE_SA/ISAKMP SA
            imc: Integrity Measurement Collector
            imv: Integrity Measurement Verifier
            job: Jobs queuing/processing and thread pool management
            knl: IPsec/Networking kernel interface
            lib: libstrongswan library messages
            mgr: IKE_SA manager, handling synchronization for IKE_SA access
            net: IKE network communication
            pts: Platform Trust Service
            tls: libtls library messages
            tnc: Trusted Network Connect
            

            This help link seems to go nowhere:
            https://docs.netgate.com/pfsense/en/latest/book/ipsec/ipsec-advanced-settings.html

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

              That link should go to https://docs.netgate.com/pfsense/en/latest/vpn/ipsec/advanced.html

              There isn't a detailed list of what is logged where, though you can probably turn most things down to silent if you want to focus on just one part of the log.

              See also https://wiki.strongswan.org/projects/strongswan/wiki/LoggerConfiguration

              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
              • vergilisV
                vergilis
                last edited by

                So I guess on an related issue the ? go the wrong URL.

                I was able to finally turn down the logging and I cannot find any errors in IPSec log.

                Here are some entries in System log:

                2021/02/18 13:38:18 [error] 51390#100109: *64336 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 5.6.7.8, server: , request: "POST /vpn_ipsec_settings.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "fwname.example.com:1234", referrer: "https://fwname.example.com:1234/vpn_ipsec_settings.php"
                
                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Can you watch the console as the firewall boots up and see how long it takes to configure IPsec at boot time?

                  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
                  • vergilisV
                    vergilis
                    last edited by

                    That is hard to do as it is an AWS instance, but I will try.

                    1 Reply Last reply Reply Quote 0
                    • vergilisV
                      vergilis
                      last edited by

                      It was stuck on this screen for about 4 minutes.

                      bootup-ipsec-issue.png

                      Please let me know if you need anything else.

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

                        That g_vfs_done line implies it's having problems communicating with its storage.

                        You may have some other problem in your hypervisor/guest config which is causing it to perform slower than it should, leading to your timerout.

                        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
                        • vergilisV
                          vergilis
                          last edited by

                          Only post 2.5 upgrade and only for IpSec tunnels?

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

                            Yes, it's common for hypervisors to need adjustments when moving from one FreeBSD version to another, depending on your settings.

                            It may not be related to IPsec at all, just that it's something that is time consuming and provokes the general slowness.

                            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
                            • vergilisV
                              vergilis
                              last edited by

                              Thank you.

                              What is your recommendation to correct this?

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

                                That depends on your hypervisor and guest settings, I don't have any general recommendations there other than to check what your hypervisor recommends for use with FreeBSD 12.2 (or at least 12.x).

                                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
                                • vergilisV
                                  vergilis
                                  last edited by

                                  This is an AWS instance with your approved image and size. This is a c5n.large.

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

                                    Then I suggest you redeploy it instead of upgrading in-place to see if the problem happens that way.

                                    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
                                    • vergilisV
                                      vergilis
                                      last edited by

                                      When I load the XML file into a new instance, your software produces the same timeout issue and the XML never loads.

                                      Any other ideas?

                                      1 Reply Last reply Reply Quote 0
                                      • vergilisV
                                        vergilis
                                        last edited by

                                        Also, after a few attempts it loaded. It continues to hang in the same spot during boot up, and actually does not boot up at all. I don't think that its hardware or disk related.

                                        Please let me know how you would like to proceed.

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

                                          Is there any way you can try at least loading the IPsec portion of that configuration in a non-AWS system?

                                          It's difficult to tell if it's related to IPsec or if there is a general problem with AWS.

                                          The only other potentially-related report I've seen is a report of a kernel panic on AWS with someone that has even more IPsec tunnels than you, but as far as I'm aware they were not experiencing any slowness or boot delays.

                                          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
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.