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

    Alias entry/charactor limit?

    Firewalling
    2
    7
    1.1k
    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
      dbennett
      last edited by

      Greetings,

      Is there size/# of entries limit for an alias?

      I'm added a large number of subnets into an alias export and then uploaded that into pfsense.  It displays properly but when I try to add items the screen goes white and text appears stating php.ini limitation or something.  Sorry I don't have the text to show.

      Thanks ahead of time.

      Dino

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

        Nothing…?  Anyone?  I figured this would be an easy one...

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Like you said, you're probably bumping up against some PHP limit.  Ca you describe exactly what you're doing?  Are you loading up a bunch of individual hosts, or network?  How many are we talking about?

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

            Thank you for your response!

            Adding a ~500 Networks with descriptions.

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              Weird.  Both upload_max_filesize and post_max_size at set to 200MB in php.ini, and I assume that your file is much smaller than that.  What is the exact error text it gives?

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

                Sorry for the late reply.  I have the error.  The steps taken to trigger the error.

                1. Imported the Alias
                2. Navigated to the alias.
                3. Clicked '+' to add an entry
                4. Added an IP and description.
                5. Click save, browser page goes completely white and this is the error that was posted without formatting:

                Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 Warning: session_start(): Cannot send session cache limiter - headers already sent in /usr/local/www/csrf/csrf-magic.php on line 351 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 48 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 49 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 50 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 51 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 52 Warning: Cannot modify header information - headers already sent in /usr/local/www/guiconfig.inc on line 55 Warning: Cannot modify header information - headers already sent in /usr/local/www/firewall_aliases_edit.php on line 480

                THAT is litterally what shows up on the screen.  White screen, the warning up to the 1000, there is a pause of MAYBE a second or two, and then the rest scrolls on the screen.

                Thoughts?

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  Php.ini has no such variable definition so it must be a default.  You could try hacking /etc/rc.php_ini_setup to insert a larger value for max_input_vars.

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