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

    PHP error in outgoing NAT page

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 990 Views 4 Watching
    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.
    • S Offline
      sensemann
      last edited by

      Hello!

      In my Outgoing NAT I ve at the bottom a "blind" entry.. I cant remove it with the GUI.
      Can you help me to get rid of it?

      Warning: Illegal string offset 'source' in /usr/local/www/firewall_nat_out.php on line 221 Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out.php:221 Stack trace: #0 {main} thrown in /usr/local/www/firewall_nat_out.php on line 221 PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat_out.php, Line: 221, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out.php:221 Stack trace: #0 {main} thrown

      johnpozJ S 2 Replies Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator @sensemann
        last edited by

        @sensemann what version of pfsense are you running, and could you post screenshot of your outbound nat rules, so we could see what this entry is?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

        1 Reply Last reply Reply Quote 0
        • S Offline
          SteveITS Rebel Alliance @sensemann
          last edited by

          @sensemann Without a screenshot (yet), one thought is to back up the config file, copy it (so you have a backup), then edit one to see if you can find that entry and remove it. Then restore the edited file.

          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
          Upvote ๐Ÿ‘ helpful posts!

          1 Reply Last reply Reply Quote 0
          • S Offline
            sensemann
            last edited by

            I updated to 2.6.0-RC some days ago, but the problem was also there before.
            here is the screenshot:

            Bildschirmfoto 2022-02-14 um 08.27.11.png

            1 Reply Last reply Reply Quote 0
            • S Offline
              sensemann
              last edited by

              another screenshot, the same warnings in the Notices

              Bildschirmfoto 2022-02-14 um 08.29.20.png

              S 1 Reply Last reply Reply Quote 0
              • viktor_gV Offline
                viktor_g Netgate
                last edited by

                Looks like https://redmine.pfsense.org/issues/12543

                But I don't know how to reproduce it
                Could you describe step-by-step how it happens?
                Rules details, actions (add/del/save/reorder), mode.

                viktor_gV 1 Reply Last reply Reply Quote 0
                • viktor_gV Offline
                  viktor_g Netgate @viktor_g
                  last edited by

                  • IPsec, OpenVPN and Static Routes details
                    maybe related to Automatic outbound NAT
                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    SteveITS Rebel Alliance @sensemann
                    last edited by

                    @sensemann I think John and I were looking for a screenshot of the rules page... "at the bottom a "blind" entry.. I cant remove it with the GUI."

                    The Redmine entry Viktor linked mentions they fixed it by "Remove empty rule <rule></rule> from <outbound>" in the config file.

                    I make a backup whenever I make any changes. Can you go back and see when the bad entry was added?

                    Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sensemann
                      last edited by

                      Hi!

                      I cant describe how it happends.. its. long time ago... .

                      Thanks.. this fixed it also for me!
                      ""Remove empty rule <rule></rule> from <outbound>" in the config file."

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