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

    Here's how to break the 1mb limit for captive portal file uploads

    Scheduled Pinned Locked Moved Captive Portal
    12 Posts 3 Posters 4.0k 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.
    • D
      dylanh724
      last edited by

      In case anyone else was interested – just comment out the highlighted code, like so:

      http://i.imgur.com/3wrVBSo.png

      The 1mb limit should really be optional… i'm at 2mb now and doing just fine ;p

      As always, make a backup before you do stupid things, and if you update things may revert;)

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        You do realize it's an issue with the size of config.xml right?

        Put your heave portal pages on a real web server and whitelist it in your portal.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • D
          dylanh724
          last edited by

          @Derelict:

          You do realize it's an issue with the size of config.xml right?

          Put your heave portal pages on a real web server and whitelist it in your portal.

          Had no idea – what's the max size? I'd google it, but not sure if it's specific to pfs.

          What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            There is a lot that goes into the project, such as trying to keep the product functional on 256MB nodes.

            You should fork pfSense, start your own project, and make millions.  Call it pfDouche.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • D
              dylanh724
              last edited by

              @Derelict:

              There is a lot that goes into the project, such as trying to keep the product functional on 256MB nodes.

              You should fork pfSense, start your own project, and make millions.  Call it pfDouche.

              Quite possible. I do know that if I renamed it pfDouche and had it 100% cloned, minus the added 1mb extra (1mb limit? wtf?) file upload limit, people would use mine more than yours ;) this isn't the 90's anymore.

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                It's not mine.

                And stop spamming all the various forums with your hacking posts.  Nobody wants to see them.  Keep them in develop.  The rest of the forums are for helping people use the production system as it is.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • D
                  dylanh724
                  last edited by

                  @Derelict:

                  It's not mine.

                  And stop spamming all the various forums with your hacking posts.  Nobody wants to see them.  Keep them in develop.  The rest of the forums are for helping people use the production system as it is.

                  Not really hacking – more so fixes .. you are telling me you'd rather me not update my post if solved?? Who are you trying to help again? If someone searches and finds the 100% same problem I have, at least now they have an option ...

                  And ah I didn't notice a development section -- even still, it starts as a basic question .... when there's no answer, then yea a workaround is better than nothing, isn't it?

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    Hacking pfSense outside the GUI creates more problems for most than it solves.  There's room for experimentation, sure, but it belongs in the development forum.

                    If you make changes outside the GUI:

                    Updates whack your changes
                    Reboots whack your changes
                    Saves using the GUI whack your changes

                    From what I can tell, soundly-coded patches that are in line with the pfSense philosophy are graciously accepted as pull requests.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?

                      No.  The uploaded portal login page (that fits in the 1MB limit) would refer to the outside web server for the heavy page assets.
                      You know, that sort of thing.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • D
                        dylanh724
                        last edited by

                        @Derelict:

                        What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?

                        No.  The uploaded portal login page (that fits in the 1MB limit) would refer to the outside web server for the heavy page assets.
                        You know, that sort of thing.

                        ahh… bulky stuff on outside server, got it

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by

                          Dude, you realize this is a firewall, right? And the portal page is supposed to be a simple form for login/voucher input/click through some TOS. What on earth you cannot fit into 1MB?

                          1 Reply Last reply Reply Quote 0
                          • D
                            dylanh724
                            last edited by

                            @doktornotor:

                            Dude, you realize this is a firewall, right? And the portal page is supposed to be a simple form for login/voucher input/click through some TOS. What on earth you cannot fit into 1MB?

                            I'm turning into into an epic captive portal device instead of a firewall. You can call it whatever you want, but for me, it's PFCaptivePortalOfAwesome.

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