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

    6to4 Tunnel seems to be broken.

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    30 Posts 3 Posters 4.2k 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.
    • E
      eri--
      last edited by

      You mean on bootup or after clicking save on interface page?

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by

        On save on interface page. I have not tried a reboot since it is the main office FW. I don't want to keep rebooting it often. I can reboot if need be.

        1 Reply Last reply Reply Quote 0
        • P
          podilarius
          last edited by

          Reboot has no affect on this issue.

          1 Reply Last reply Reply Quote 0
          • E
            eri--
            last edited by

            Not sure what is wrong on your side.
            I just selected an interface choose 6to4 type and the interface comes right up!
            Can you show screenshot of your configuration and also the section of the interface in config.xml for this?

            UPDATE: Also can you check that your interface address is not in private range since that will not allow it!

            1 Reply Last reply Reply Quote 0
            • P
              podilarius
              last edited by

              Do you mind if I PM you that?
              Yes, it is using a public address. Up till yesterday, IPv6 was working well.
              I am also running CAPR type VIPs on the WAN as well. Is there anything that destroys wan_*?

              1 Reply Last reply Reply Quote 0
              • E
                eri--
                last edited by

                Send the PM is ok like that

                1 Reply Last reply Reply Quote 0
                • P
                  podilarius
                  last edited by

                  What screen shots would you like? It is really simple setup. Just choose 6to4 Tunnel in WAN config and created an allow all rule in LAN for IPv6.

                  1 Reply Last reply Reply Quote 0
                  • E
                    eri--
                    last edited by

                    Really just gitsync to the latest code and retry.
                    I put your configuration on test vm and it just works!

                    1 Reply Last reply Reply Quote 0
                    • P
                      podilarius
                      last edited by

                      It usually makes no difference, but I am running the 32bit version.
                      I tried gitsync and I even removed ipv6 config and rebooted and re-setup. It is now not creating an IP address on LAN either. Very strange.

                      1 Reply Last reply Reply Quote 0
                      • P
                        podilarius
                        last edited by

                        Used a spare public IP and tested with latest build and a git sycn on 32bit. Basic config .. set public ip on WAN and set a static with a free on in the net. Made sure traffic could pass. Result is that IPv6 does not work. LAN does not set IPv6 and WAN does not create the wan_stf interface. IPv6 using 6to4 tunnel fail. Testing 64bit now with same setup.

                        1 Reply Last reply Reply Quote 0
                        • P
                          podilarius
                          last edited by

                          Did get errors:

                          
                          php: : The command '/sbin/ifconfig wan_stf inet6 2002:4658:b479:: prefixlen 16' returned exit code '1', the output was 'ifconfig: interface wan_stf does not exist'
                          
                          

                          and then of course:

                          php: : The command '/sbin/route change -inet6 default '2002:c058:6301::'' returned exit code '1', the output was 'route: writing to routing socket: No such process route: writing to routing socket: Network is unreachable change net default: gateway 2002:c058:6301::: Network is unreachable'
                          
                          1 Reply Last reply Reply Quote 0
                          • P
                            podilarius
                            last edited by

                            64bit pfSense also failed to create wan_stf. Here are the errors:

                            php: : The command '/sbin/ifconfig wan_stf inet6 2002:4658:b479:: prefixlen 16' returned exit code '1', the output was 'ifconfig: interface wan_stf does not exist'
                            

                            and

                            php: : The command '/sbin/route change -inet6 default '2002:c058:6301::'' returned exit code '1', the output was 'route: writing to routing socket: No such process route: writing to routing socket: Network is unreachable change net default: gateway 2002:c058:6301::: Network is unreachable'
                            

                            There was an error on boot about renaming the interface, but it went by quickly and I cannot capture it.

                            update:
                            okay it says that rename expect 1 parameter to be a string.

                            1 Reply Last reply Reply Quote 0
                            • B
                              bardelot
                              last edited by

                              Have you ever tried to execute that manually in Diagnostis->Command Prompt->PHP Execute?

                              $tmpstfiface = pfSense_interface_create("stf");
                              var_dump($tmpstfiface);

                              1 Reply Last reply Reply Quote 0
                              • P
                                podilarius
                                last edited by

                                nope .. but i did a scroll lock on the error and got this.
                                pfSense_interface_rename() expects parameter 1 to be string, array given in /etc/inc/interfaces.inc on line 3313.

                                That line reads: pfSense_interface_rename($tmpstfiface, $stfiface);
                                Parameter 1 I think is $tmpstfiface and is getting set by $tmpstfiface = pfSense_interface_create("stf");
                                if not then it is the $stfiface set by $stfiface = "{$interface}_stf";

                                But which ever one it is, its creating an array and not a string.

                                Update:
                                With parameters set to "wan" and "wan_stf", I no longer get the errors booting up, but it looks like stf is never created or renaming fails as I keep getting:

                                
                                The command '/sbin/ifconfig wan_stf inet6 2002:4658:b479:: prefixlen 16' returned exit code '1', the output was 'ifconfig: interface wan_stf does not exist'
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • B
                                  bardelot
                                  last edited by

                                  The $tmpstfiface variable is an array due to the fact that the "pfSense_interface_create" function returns an array (with the key "error" and value "Could not create interface") when an error occurs.

                                  Try without using the "pfSense_interface_create" function by executing "ifconfig stf create" and see what happens.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    podilarius
                                    last edited by

                                    It is actually returning the string "Array" … I put in a log_error command to return the value of $tmpstfiface.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bardelot
                                      last edited by

                                      Directly printing an array returns the string "Array".

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        podilarius
                                        last edited by

                                        Okay .. how can I convert that from array to string to print the error? no other error is being shown.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bardelot
                                          last edited by

                                          Use either "$output = var_export($var, true);" or "$output = print_r($var, true);" before feeding the $output variable to the log_error function. But I would be more interested in what happens when you execute "ifconfig stf create" on the command line, as the array contents will very likely only be "array( 'error' => "Could not create interface", )".

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            podilarius
                                            last edited by

                                            It creates sft0 when I issue that command.

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