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

    [FIXED] Traffic Shaper Wizard does not recognize Interfaces correctly

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    14 Posts 4 Posters 3.9k 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.
    • P
      p1erre
      last edited by

      Hi

      I get the following error message when using the traffic shaper wizzard

      You do not have 2 of local interfaces!
      

      I have a Alix board with one WAN and 2 LAN interfaces setup.

      2.1-BETA1 (i386)
      built on Thu Feb 21 18:19:35 EST 2013
      FreeBSD 8.3-RELEASE-p6

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        I just tried starting off the various traffic shaper wizards, and they didn't complain about any combinations I put in. I have an Alix with WAN, LAN, OPT1 and WIFI card - so 1 WAN and 3 LAN-type interfaces. The wizard also seems to start off OK on another Alix with 1 LAN + 2 WAN and another with 2 LAN + 1 WAN.
        I am on:
        2.1-BETA1 (i386)
        built on Tue Feb 19 20:09:59 EST 2013
        FreeBSD 8.3-RELEASE-p6
        (couple of days old)
        Which of the 4 wizards are you using?
        How far in do you get when it complains?

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • luckman212L
          luckman212 LAYER 8
          last edited by

          Same problem here, Netgate Hamakua v2 (Lanner FW-7535H) -  6xGbE (intel).
          Running 2.1-BETA1 snapshot Fri Feb 22 06:01:13 EST 2013

          I have 2xWAN (em4, em5) and 1xLAN (em0) defined

          edit: just noticed that in the Shaper section my Interfaces are just empty?

          but I have them defined:

          Any workarounds?

          1 Reply Last reply Reply Quote 0
          • luckman212L
            luckman212 LAYER 8
            last edited by

            I just backed up and am going to try rolling back to the FEB 19 20:09 build … will let you know if it works, at least then we can narrow down when it broke and look at changesets.  I already looked through redmine at the commits and didn't see anything glaringly obvious.  :(

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

              Just upgraded to the latest snapshot, the error still appears.
              I get the error after I entered the number of LAN connections.
              I also tried other wizards and i get the same error after i typed the number of WAN or LAN connections.
              Attached my interface configuration and the error message.

              Cheers Pierre

              ![Bildschirmfoto 2013-02-22 um 20.09.26.png](/public/imported_attachments/1/Bildschirmfoto 2013-02-22 um 20.09.26.png)
              ![Bildschirmfoto 2013-02-22 um 20.09.26.png_thumb](/public/imported_attachments/1/Bildschirmfoto 2013-02-22 um 20.09.26.png_thumb)
              ![Bildschirmfoto 2013-02-22 um 20.11.19.png](/public/imported_attachments/1/Bildschirmfoto 2013-02-22 um 20.11.19.png)
              ![Bildschirmfoto 2013-02-22 um 20.11.19.png_thumb](/public/imported_attachments/1/Bildschirmfoto 2013-02-22 um 20.11.19.png_thumb)

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                Upgraded to:
                2.1-BETA1 (i386)
                built on Fri Feb 22 06:01:13 EST 2013
                FreeBSD 8.3-RELEASE-p6
                The traffic shaper "By Interface" tab now shows only "WIFI" - it used to have LAN, WAN and OPT1 also.
                Starting any of the wizards and progressing past entering a number of LAN or WAN interfaces results in messages like:

                You have less interfaces than number of connections!

                So it was working on Tue Feb 19 20:09:59 EST 2013 and broke somewhere between then and Fri Feb 22 06:01:13 EST 2013.

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                1 Reply Last reply Reply Quote 0
                • P
                  phil.davis
                  last edited by

                  $xxx = get_real_interface("wan");
                  var_dump($xxx);
                  $res = is_altq_capable($xxx);
                  var_dump($res);
                  

                  Result on old snaps:

                  string(3) "vr1"
                  bool(true)
                  

                  Result on later snap:

                  string(3) "vr1"
                  bool(false)
                  

                  /etc/inc/shaper.inc get_interface_list_to_show() uses is_altq_capable() to build its list.
                  It broke in https://github.com/bsdperimeter/pfsense/commit/2ccac12588f59039c88d06126762f41be2f65ce2
                  I need to do other things now, if someone fixes it good, otherwise I will look again later.

                  As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                  If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                  1 Reply Last reply Reply Quote 0
                  • luckman212L
                    luckman212 LAYER 8
                    last edited by

                    thanks Phil, nice detective work there. Wouldn't simply changing /etc/inc/interfaces.inc at line 4526

                    if (in_array($int_family[0], $capable))

                    to

                    if (in_array($int_family, $capable))

                    fix the problem? or am I being too simplistic?

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by

                      Yep, that's the fix. The pull request is here: https://github.com/bsdperimeter/pfsense/pull/431/files

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                      1 Reply Last reply Reply Quote 0
                      • A
                        anas_xrt
                        last edited by

                        @phil.davis:

                        Yep, that's the fix. The pull request is here: https://github.com/bsdperimeter/pfsense/pull/431/files

                        I am using caswell CAD-0215 hardware, I still got the problem, on Traffic Shaper by Interface, I saw nothing appeared, once I use wizards, it shown the same problem as above detail. ???

                        My update version as below.

                        Current version: 2.1-BETA1
                          NanoBSD Size : 4g
                              Built On: Fri Feb 22 17:35:04 EST 2013

                        1 Reply Last reply Reply Quote 0
                        • luckman212L
                          luckman212 LAYER 8
                          last edited by

                          Try the newest snapshot from Feb 23
                          I just installed it and it seems to contain the fix that Phil committed late last night

                          cheers all

                          1 Reply Last reply Reply Quote 0
                          • A
                            anas_xrt
                            last edited by

                            @luckman212:

                            Try the newest snapshot from Feb 23
                            I just installed it and it seems to contain the fix that Phil committed late last night

                            cheers all

                            Now it fixed. Thanks

                            Keep good work

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

                              Thanks guys!

                              I updated also to the latest version and everything is working as usual.

                              Cherrs

                              1 Reply Last reply Reply Quote 0
                              • luckman212L
                                luckman212 LAYER 8
                                last edited by

                                yep, now just need to figure out: http://forum.pfsense.org/index.php/topic,59298.0.html  :P

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