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

    HELP: NETGATE 3100 - After updating from 22.05 to 23.01 unable to create/use GIF interfaces

    Scheduled Pinned Locked Moved General pfSense Questions
    34 Posts 8 Posters 4.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.
    • C
      ChrisJenk @ChrisJenk
      last edited by ChrisJenk

      @chrisjenk UPDATE: I am not even able to create a GIF interface on my system now.

      root: ifconfig gif0 create
      ifconfig: SIOCIFCREATE2 (gif0): Invalid argument
      root: ifconfig gif9 create
      ifconfig: SIOCIFCREATE2 (gif9): Invalid argument

      It is almost as if the 23.01 kernel is missing support for GIF interfaces?

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @ChrisJenk
        last edited by

        @chrisjenk said in HELP: After updating from 22.05 to 23.01 my Hurricane Electric 6in4 GIF tunnel no longer works:

        It is almost as if the 23.01 kernel is missing support for GIF interfaces?

        No, working fine here. But I created my tunnel afterwards. If it would be a general problem, this thread would fill up over time.

        C 1 Reply Last reply Reply Quote 0
        • C
          ChrisJenk @Bob.Dig
          last edited by

          @bob-dig It might be hardware specific (different kernel). Given that I cannot even create a GIF interface using ifconfig it sure looks pretty fundamental.

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

            It looks like it was the linker hints, like I mentioned on your other thread asking about the linker error.

            I found one of my 3100 installs where I could replicate this, but just that one:

            : ifconfig gif9 create
            ifconfig: SIOCIFCREATE2 (gif9): Invalid argument
            : kldxref /boot/kernel/
            : ifconfig gif9 create
            : ifconfig gif9 destroy
            :
            

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

              After upgrading my Netgate XG-1537 from 22.05 to 23.01 my Hurricane Electric GIF tunnels are broken.

              I can successfully ping the HE tunnel endpoint from within the LAN but no packets received from the tunnel are delivered.

              C 1 Reply Last reply Reply Quote 0
              • C
                ChrisJenk @jaltman
                last edited by

                @jaltman Have you tried the solution in the answer above from @jimp ? You likely need to reboot after running the kldxref command (I did). After that it all worked for me.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jaltman @ChrisJenk
                  last edited by

                  @chrisjenk Thanks for the reply.

                  My symptoms are a bit different in that gif0 is present but there is no traffic flowing from the pfSense tunnel endpoint to the LAN. I can ping the pfSense tunnel endpoint from the LAN. I can ping the HE tunnel endpoint from the outside world.

                  I cannot ping the pfSense tunnel endpoint from the outside world nor can the LAN ping the HE tunnel endpoint.

                  HE support does not see anything problem with the tunnel from their point of view. pfSense reports the tunnel as present and "UP" with no packet loss.

                  I have a TAC Enterprise subscription and have created a support ticket.

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

                    @jaltman In my case the "Automatic" setting for IPv6 gateway no longer results in the HE Tunnel being used to route IPv6 traffic. Manually selecting the tunnel gateway results in the passing of traffic.

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

                      @jaltman said in HELP: NETGATE 3100 - After updating from 22.05 to 23.01 unable to create/use GIF interfaces:

                      @jaltman In my case the "Automatic" setting for IPv6 gateway no longer results in the HE Tunnel being used to route IPv6 traffic. Manually selecting the tunnel gateway results in the passing of traffic.

                      What gateway did "Auto" use instead?

                      Auto is always a roll of the dice, it can be different with any change in the interface properties, add/delete interfaces, new VPNs, etc.

                      You should always set a specific gateway (or better yet, a group) with what you want there.

                      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!

                      J 1 Reply Last reply Reply Quote 1
                      • J
                        jaltman @jimp
                        last edited by

                        @jimp Unfortunately I do not know. Now when I set the gateway to "automatic" and reboot the tunnel is selected as the default. Sadly I did not create a snapshot before I made the change.

                        I agree that explicitly selecting the tunnel is the correct thing to do.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jmaynard
                          last edited by

                          I had this problem, and tried to fix it by deleting and redefining the GIF. Unfortunately, that didn't work: I get a PHP error when I try to define it:

                          [24-Feb-2023 20:52:20 America/Chicago] PHP Fatal error:  Uncaught TypeError: pfSense_interface_flags(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:44
                          Stack trace:
                          #0 /etc/inc/interfaces.inc(44): pfSense_interface_flags(Array, 1)
                          #1 /etc/inc/interfaces.inc(1271): interfaces_bring_up(Array)
                          #2 /usr/local/www/interfaces_gif_edit.php(124): interface_gif_configure(Array)
                          #3 {main}
                            thrown in /etc/inc/interfaces.inc on line 44
                          

                          I tried registering on Redmine to file a bug report, but have not yet gotten the activation email. @jimp , is it broken again?

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

                            That's a different issue. I opened a bug for it: https://redmine.pfsense.org/issues/14035

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jmaynard @stephenw10
                              last edited by jmaynard

                              @stephenw10 Thanks! Yeah, I was hesitant to post to this thread about it, but there was already discussion on GIF interfaces, so...

                              (And if I can ever get registered on Redmine, I did save the debug log.)

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

                                Can you see what's in your config file when you hit that error?

                                Or the exact steps required to replicate it?

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  jmaynard @stephenw10
                                  last edited by

                                  @stephenw10 Replicating it is easy:

                                  1. Navigate to Interfaces->Assignments, GIFs tab.
                                  2. Click + Add.
                                  3. Enter server IP address, GIF tunnel local address, and GIF tunnel remote address as appropriate (I took mine from my HE tunnel page).
                                  4. Select 64 for GIF tunnel subnet.
                                  5. Do not select ECN friendly behavior or Outer Source Filtering.
                                  6. Enter "HE IPv6 tunnel" for description.
                                  7. Click Save.

                                  Expected result: GIF interface is created.
                                  Actual result: PHP error:

                                  Fatal error: Uncaught TypeError: pfSense_interface_flags(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:44 Stack trace: #0 /etc/inc/interfaces.inc(44): pfSense_interface_flags(Array, 1) #1 /etc/inc/interfaces.inc(1271): interfaces_bring_up(Array) #2 /usr/local/www/interfaces_gif_edit.php(124): interface_gif_configure(Array) #3 {main} thrown in /etc/inc/interfaces.inc on line 44 PHP ERROR: Type: 1, File: /etc/inc/interfaces.inc, Line: 44, Message: Uncaught TypeError: pfSense_interface_flags(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:44 Stack trace: #0 /etc/inc/interfaces.inc(44): pfSense_interface_flags(Array, 1) #1 /etc/inc/interfaces.inc(1271): interfaces_bring_up(Array) #2 /usr/local/www/interfaces_gif_edit.php(124): interface_gif_configure(Array) #3 {main} thrown
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Mmm, there must be something existing in your config or missing from that would usually be there by default when you attempt to apply that. It doesn't happen on a clean config as far as I can tell. Or at least I've failed to replicate it so far.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      jmaynard @stephenw10
                                      last edited by

                                      @stephenw10 I can send you my config, if you like. Just let me know where to send it.

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

                                        Yes, please upload it here: https://nc.netgate.com/nextcloud/s/3kdTjgDRRC2txeQ

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          jmaynard @stephenw10
                                          last edited by

                                          @stephenw10 Done.

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

                                            Thanks. When you hit this error does the tunnel actually get created? Do you get additional config in the file?

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