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

    Racoon crashed, core dumped

    Scheduled Pinned Locked Moved IPsec
    16 Posts 4 Posters 7.4k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Needs a newer binary, check the next new snapshot.

      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
      • T
        ttblum
        last edited by

        FYI, this has happened again, 40 days since previously.

        I've noticed from the logs that immediately before both crashes it was establishing a VPN tunnel with a Netgear ProSafe VPN FVS114 Firewall, with tunnel settings on both sides being AES128/SHA1, with both Phase 1 and Phase 2 having 28800 lifetimes.

        1 Reply Last reply Reply Quote 0
        • D
          dhatz
          last edited by

          There have been many bugfixes commited to the ipsec-tools source tree since the last release 0.8.0 more than a year ago:

          http://sourceforge.net/mailarchive/forum.php?forum_name=ipsec-tools-devel
          http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/crypto/dist/ipsec-tools/src/

          1 Reply Last reply Reply Quote 0
          • T
            ttblum
            last edited by

            FYI, upgrading hardware to faster CPU, more RAM, etc. seems to have resolved this problem.

            1 Reply Last reply Reply Quote 0
            • T
              ttblum
              last edited by

              This happened again (after about 6 months) on the newer hardware.  Correlated the events this time to ISP outages/connectivity issues.

              Submitted bug to Ipsec-tools:

              https://sourceforge.net/tracker/index.php?func=detail&aid=3603844&group_id=74601&atid=541482#

              I'm not running ipsec-tools 0.8.1 yet (pfSense 2.1), so I don't know if it happens there as well.

              1 Reply Last reply Reply Quote 0
              • T
                ttblum
                last edited by

                Today I've found that I had duplicate IPSec tunnels configured in pfSense, one disabled and the other enabled.

                I've moved this tunnel elsewhere, and I've removed both from the pfSense config to see if this improves my racoon stability.

                1 Reply Last reply Reply Quote 0
                • T
                  ttblum
                  last edited by

                  Stability is improved, but I'm still having racoon segfaults that coincide with loss of connectivity to endpoints.

                  I've noticed DPD is firing on these tunnels, should I disable DPD?

                  1 Reply Last reply Reply Quote 0
                  • D
                    dhatz
                    last edited by

                    @ttblum:

                    Stability is improved, but I'm still having racoon segfaults that coincide with loss of connectivity to endpoints.

                    I've noticed DPD is firing on these tunnels, should I disable DPD?

                    Define "loss of connectivity", does the endpoints' physical link go down ?

                    Btw iirc there's an exploit that makes it possible to remotely crash racoon.

                    My suggestion would be to upgrade to 2.1 if you can, which includes an updated and fully patched racoon.

                    1 Reply Last reply Reply Quote 0
                    • T
                      ttblum
                      last edited by

                      Yes, the ISP providing internet to these remote routers is going down, usually at night for less than an hour (maybe afterhours maintenance).  racoon segfaults almost immediately after this happens.

                      It always seems to be the same ISP, too, so I'm currently going over the configurations of these particular tunnels and changing them to 'known good' settings.

                      It looks like the vulnerability was for ipsec-tools 0.6.2 and earlier:  http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-3732

                      I thought I just read about a recent build that was unstable, is 2.1 production ready?

                      1 Reply Last reply Reply Quote 0
                      • T
                        ttblum
                        last edited by

                        The ISP replaced/repaired a DSL DSLAM and possibly some core routers as well.

                        racoon has been up stable now for several weeks since this change.

                        1 Reply Last reply Reply Quote 0
                        • T
                          ttblum
                          last edited by

                          I'm assuming this isn't related to Broadcom NIC issues?

                          This is a small Dell server with two Broadcom NICs.

                          1 Reply Last reply Reply Quote 0
                          • T
                            ttblum
                            last edited by

                            A FreeBSD developer is asking me for backtraces, but they don't seem to be that informative.

                            Aren't there separate binaries with debugging symbols that you are supposed to use when doing this?

                            GNU gdb 6.6 [GDB v6.6 for FreeBSD]
                            Copyright (C) 2006 Free Software Foundation, Inc.
                            GDB is free software, covered by the GNU General Public License, and you are
                            welcome to change it and/or distribute copies of it under certain conditions.
                            Type "show copying" to see the conditions.
                            There is absolutely no warranty for GDB.  Type "show warranty" for details.
                            This GDB was configured as "i386-portbld-freebsd8.1"...
                            (no debugging symbols found)
                            (no debugging symbols found)
                            Core was generated by `racoon'.
                            Program terminated with signal 11, Segmentation fault.
                            #0  0x080672a9 in ?? () from /libexec/ld-elf.so.1
                            (gdb) bt
                            #0  0x080672a9 in ?? () from /libexec/ld-elf.so.1
                            #1  0x2854de48 in ?? ()
                            #2  0x00000000 in ?? ()
                            (gdb) quit
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.