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

    Gre tunnels dont get created or started automatically with latest snapshots

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    6 Posts 2 Posters 2.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.
    • J Offline
      Jon
      last edited by

      Hello All,

      I have 2 gre tunnels configured, but I find that nothing is done with them unless I go into the gre config and click save, then they are configured and brought up. If I don't do this, they aren't created or configured on boot.

      Snapshot:ย  Fri Jun 14 04:50:09 EDT 2013

      Regards,

      Jon

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

        Looking in the code, they are initialized just before GIF tunnels are initialized, and GIF tunnels work fine at bootup. There may be some more subtle issue at play, but it doesn't appear to be anything obvious such as the function to configure them being omitted at bootup.

        Do the gre interfaces exist at all in the OS? (Check "ifconfig -a")

        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
        • J Offline
          Jon
          last edited by

          Hello,

          after a reboot, the gif interfaces dont exist at all. I have to goto the interface assign section , goto gre and click save on the interfaces without making any changes to get them to come up.

          Regards,

          Jon

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

            There must be something even weirder going on with your setup then. I just grabbed two test VMs on a current 2.1 snapshot, built a GRE tunnel between them, and then rebooted. It came up fine, the gre0 interface is there when they boot up, and I can ping both ways over it.

            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
            • J Offline
              Jon
              last edited by

              Hello,

              I have found that when the GRE tunnel device is configured to use a CARP address as the local endpoint it doesn't get started at boot, but when using a physical device it does. Perhaps the code that starts the GRE tunnels on boot needs to be CARP aware and not try and configure the tunnels until after the CARP devices are configured? Somewhat like the openVPN instance if configured to use CARP?

              Regards,

              Jon

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jon
                last edited by

                After doing more testing, even when using the main interface as the local endpoint for the GRE tunnels, the devices are not put into the running state upon boot, I see the devices created and configured, but they dont have the running flag. If i login to the console and do a ifconfig gre0 up, they receive the running flag and pass traffic. The issue with them not being configured at all if the local endpoint is a CARP interface still exists as well.

                Thanks,

                Jon

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