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

    Problem with multiple Interfaces since Version 22.05

    Scheduled Pinned Locked Moved Captive Portal
    17 Posts 2 Posters 2.3k 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.
    • O
      OpIT GmbH
      last edited by OpIT GmbH

      I created a Bug Report

      https://redmine.pfsense.org/issues/13391

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @OpIT GmbH
        last edited by

        @opit-gmbh

        Recently, the 'ipfw' firewall, used for captive portal instances, was ditched and replaced by the 'pf' firewall.

        'pf' is the one we use when we create our GUI firewall rules.

        The conversion was a big task, and maybe ( ? ) the 'multiple interfaces' options was just omitted, or forgotten ( coders are still human ;) ).

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        O 1 Reply Last reply Reply Quote 0
        • O
          OpIT GmbH @Gertjan
          last edited by

          @gertjan
          yeah it looks like the just have forgotten some things there but i also think that this should not be a big Problem to correct this.... :=)

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @OpIT GmbH
            last edited by Gertjan

            @opit-gmbh

            If you can edit a file :

            Open /etc/inc/captiveportal.inc
            Goto line 2576 ( ? )

            You'll find

            						$cpiplist = $cpip . ' ';
            

            Change it to ( add a single point . ) :

            						$cpiplist .= $cpip . ' ';
            

            Now you will see in the firewall rules file :

            ....
            # Captive Portal
            table <cpzoneid_2_cpips> { 192.168.100.1 192.168.2.1  }
            ....
            

            and these are the IP addresses of my two interfaces added to a captive portal zone.

            I can't test drive this myself.
            Can you test ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            O 1 Reply Last reply Reply Quote 0
            • O
              OpIT GmbH @Gertjan
              last edited by

              @gertjan

              Tested it > and it seams to be working!

              Many Thanks!!!

              1 Reply Last reply Reply Quote 0
              • O
                OpIT GmbH
                last edited by OpIT GmbH

                I also found maybe another Problem. When you upload a Logo or a Background Logo, its created with 2 .. (Points) in the extension. So you have "captiveportal-logo..png or "captiveportal-background..png"

                The Logos are displayed normally, so its just seams to be a cosmetic "Bug"

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @OpIT GmbH
                  last edited by

                  @opit-gmbh

                  Hummm.
                  The point you just added should be remove somewhere else ;)

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    OpIT GmbH @Gertjan
                    last edited by

                    @gertjan

                    Not i add the Dot, the Netgate add it. I Upload a "logo.png" and the Netgate generates "captiveportal-logo..png"

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @OpIT GmbH
                      last edited by Gertjan

                      @opit-gmbh

                      You didn't understood the suggestion.

                      Open /usr/local/www/services_captiveportal.php

                      Look for every function :

                      image_type_to_extension
                      

                      And look closely to the example of the image_type_to_extension PHP function definition.

                      <?php
                      // Create image instance
                      $im = imagecreatetruecolor(100, 100);
                      
                      // Save image
                      imagepng($im, './test' . image_type_to_extension(IMAGETYPE_PNG));
                      imagedestroy($im);
                      ?>
                      

                      The example :

                      Right after '/test there is no point included - so the point comes back with with the image_type_to_extension(IMAGETYPE_PNG) function call - so this function resturns
                      ".png".

                      Now, back to our /usr/local/www/services_captiveportal.php, locate every line with image_type_to_extension and then look closely the line.
                      Example :

                      $logo_name = "captiveportal-logo." . image_type_to_extension(is_supported_image($_FILES['logo-img']['tmp_name']));
                      

                      Do you see the point that you have to remove ?
                      It's right after captiveportal-logo

                      Redo the same thing for where the "captiveportal-background." is handled, and you'll be fine.

                      My suggestion was :you should remove some points '.' ^^

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        OpIT GmbH @Gertjan
                        last edited by

                        @gertjan

                        ahhhh, now i know what you mean "The point you just added should be remove somewhere else" .... heheh :=)

                        THX!

                        Should all of this here be Mailed to Netgate directly, so that they can fix this stuff in the next Version or with a Patch? Our das Netgate read all the Forum Posts here?!

                        GertjanG 1 Reply Last reply Reply Quote 0
                        • O OpIT GmbH referenced this topic on
                        • GertjanG
                          Gertjan @OpIT GmbH
                          last edited by

                          @opit-gmbh said in Problem with multiple Interfaces since Version 22.05:

                          Should all of this here be Mailed to Netgate directly

                          You opened a bug report, a regression actually, that points to this thread.
                          Some author will read the report, read the thread, and deal with it in no time.
                          Jimp already saw your report.
                          As I see it, 2.7.0 and 22.11 will contain the solution.

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          O 1 Reply Last reply Reply Quote 0
                          • O
                            OpIT GmbH @Gertjan
                            last edited by

                            @gertjan

                            i also added a comment about the "Dot" Problem in the Bug Report. So i think all should be fine for now.

                            THX Gertjan for your help!

                            1 Reply Last reply Reply Quote 0
                            • GertjanG Gertjan referenced this topic on
                            • GertjanG Gertjan referenced this topic on
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.