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

    Cannot edit firewall rules

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 1.8k 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.
    • S
      Spikon
      last edited by

      HI Guys,

      After upgrading my pfsense firewall software to 2.3.6-DEVELOPMENT I can now longer edit my firewal rules, as soon as I click to edit any of the rules it comes up with the following error:

      Parse error: syntax error, unexpected 'In' (T_STRING) in /usr/local/www/firewall_rules_edit.php on line 1712

      I had some errors in the past and I have been advised to remove the following bit in green:

      // Gateway selector is populated by JavaScript updateGWselect() function
      $section->addInput(new Form_Select(
      'gateway',
      'Gateway',
      '',
      []
      ))->setHelp('Leave as 'default' to use the system routing table. Or choose a '.
      'gateway to utilize policy based routing. %sGateway selection is not valid for "IPV4+IPV6" address family.', '
      ');

      $group = new Form_Group('In / Out pipe'); - This is line 1712

      Any thoughts?

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

        I would take a backup, blow it away, install fresh then restore your backup.  Something went wrong during the upgrade.  You shouldn't have to be manually editing files which will likely get crushed at the next upgrade.

        1 Reply Last reply Reply Quote 0
        • S
          Steve_B Netgate
          last edited by

          This is the current/correct code for that section:

          
          // Gateway selector is populated by JavaScript updateGWselect() function
          $section->addInput(new Form_Select(
          	'gateway',
          	'Gateway',
          	'',
          	[]
          ))->setHelp('Leave as \'default\' to use the system routing table. Or choose a '.
          	'gateway to utilize policy based routing. %sGateway selection is not valid for "IPV4+IPV6" address family.', array('
          '));
          
          $group = new Form_Group('In / Out pipe');
          
          

          I don't know why your system is not picking up the current version (2.3.6.a.20180223.0519) Try option 13 from the command line interface and see if that helps.

          Als ik kan

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