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

    browser gui misery

    Scheduled Pinned Locked Moved General pfSense Questions
    26 Posts 4 Posters 2.4k 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.
    • B
      bPsdTZpW
      last edited by

      [01-Jan-2022 16:43:15 Etc/UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 142096808 bytes) in /usr/local/www/csrf/csrf-magic.php on line 159

      The CSRF code shouldn't be allocating that much memory. It simply generates and checks a session token that's used to prevent certain attacks on pfSense sessions. What's the content of your /usr/local/www/csrf/csrf-magic.php ?

      1 Reply Last reply Reply Quote 0
      • L
        lyle817
        last edited by

        Hmmm....not sure how to access that file. Can I do it from the webgui?

        B 1 Reply Last reply Reply Quote 0
        • B
          bPsdTZpW @lyle817
          last edited by

          @lyle817 In diagnostics/command prompt/execute shell command enter

          cat /usr/local/www/csrf/csrf-magic.php
          

          Then post the resulting output here.

          1 Reply Last reply Reply Quote 0
          • L
            lyle817
            last edited by

            thanks! it's a long output. does this link work for you?

            https://pastebin.com/wvKa9cEP

            B 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator @lyle817
              last edited by

              @lyle817 said in browser gui misery:

              I see that I'm currently on 2.4

              Like actually 2.4.0-release ? That's really old! You are probably hitting some php bug that was fixed years ago.

              If you're concerned about getting back to a functioning firewall the safest thing to do is install 2.5.2 clean to a new drive and import the existing config. Keep your existing 2.4 install on the existing drive so you can boot from that again if you have to.
              Unless you're doing something 'custom' or unusual I wouldn't expect an issue. It looks like you only have two interfaces which is a relatively simple setup.

              Steve

              1 Reply Last reply Reply Quote 0
              • L
                lyle817
                last edited by

                It's 2.4.4, so "only" a couple years old, but still good advice. A perfect New Years day project!

                Found these instructions online, look OK?

                https://withblue.ink/2019/09/14/reinstalling-pfsense-and-restoring-from-backup.html

                Now just need to check the drawers for a spare drive now...

                1 Reply Last reply Reply Quote 0
                • B
                  bPsdTZpW @lyle817
                  last edited by

                  @lyle817 said in browser gui misery:

                  https://pastebin.com/wvKa9cEP

                  It looks like something has created a gigantic page, which it then attempts to protect using csrf_ob_handler(), which then fails because the lines cited in your crash report attempt to replace strings in it with something potentially larger. Looks like a bug or possibly a penetration attempt.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lyle817
                    last edited by

                    <<deep sigh>>

                    I guess a re-install was in my future anyway, so here I go....

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      I would use the instructions here:
                      https://docs.netgate.com/pfsense/en/latest/install/index.html

                      And I'd probably do this to save time:
                      https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-configuration-from-usb-during-install

                      Steve

                      1 Reply Last reply Reply Quote 1
                      • L
                        lyle817
                        last edited by

                        Woohoo, back in business and my white screen of death is a distant memory!!

                        9492b04d-78c3-4fc3-a972-ed4604556a3f-image.png

                        Thank you, thank you @stephenw10 & @bPsdTZpW and Happy New Year!!

                        B 1 Reply Last reply Reply Quote 2
                        • B
                          bPsdTZpW @lyle817
                          last edited by

                          @lyle817 And a happy New Year to you as well!

                          1 Reply Last reply Reply Quote 0
                          • L
                            lyle817
                            last edited by

                            Pfsense is working great, but for some reason the upgrade caused my Freenas to get dropped from the network. Now I can't access the Freenas webgui and pings are unsuccessful. It does not appear in the DHCP listing or on the ARP table.

                            I hooked up a monitor to the Freenas and everything looks fine. Rebooted both Freenas and pfsense a couple times, no joy. On the Freenas console it says, "The web interface is at: 192.168.1.175", but this is a lie.

                            Not necessarily Freenas experts here, but any ideas why the pfsense upgrade might cause this behavior?

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Can you ping out from FreeNAS?

                              Is it showing a link on the NIC?

                              Traffic between a client on the LAN and the FreeNAS box would go directly, it wouldn't pass through pfSense at all.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • L
                                lyle817
                                last edited by lyle817

                                I tried pinging the router (192.168.1.1) and also my desktop PC (.135) from the Freenas shell, but in both cases got "Host is down"

                                "Is it showing a link on the NIC?". Not sure how to check that...

                                "... it wouldn't pass through pfSense at all". But the Freenas should show up on my pfsense DHCP Leases page.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  lyle817
                                  last edited by

                                  "Is it showing a link on the NIC?"

                                  A-ha, no link lights! WTF? Now I'm really mystified!

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

                                    @lyle817 said in browser gui misery:

                                    A-ha, no link lights!

                                    Well, change the cable, the port and/or switch it is connected to, or the NIC used by your FreeNAS.
                                    If there is no "link", DHCP won't work. It's like there is no cable at all.

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

                                    1 Reply Last reply Reply Quote 1
                                    • L
                                      lyle817
                                      last edited by

                                      Makes sense, thanks! I was thinking somehow the operating system was shutting down the NIC, but I see now this is likely a hardware problem just coincidental with my pfsense upgrade. Will attend to it tonight when I get back, thanks again guys!!!

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