Kitz ADSL Broadband Information
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
 

FWdefLAN patch270

From kitz wiki
Revision as of 14:14, 22 July 2023 by Chrysalis (talk | contribs) (Created page with "By default pfSense will take you to the WAN tab in the firewall rules section, I have found that the majority of my editing was in the LAN tab, this patch will save clicks by...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

By default pfSense will take you to the WAN tab in the firewall rules section, I have found that the majority of my editing was in the LAN tab, this patch will save clicks by defaulting to the LAN tab when accessing the firewall rules page.




Paste the below code into the Patch Contents box.

Add a description such as 'Firewall rules page default to LAN' in the Description box.

Set Path Strip Count to '0'.

Base Directory to '/usr/local/www/'.

--- firewall_rules.php  2023-07-21 20:39:04.612936000 +0100
+++ firewall_rules.php    2023-07-22 15:08:57.833838000 +0100
@@ -151,7 +151,7 @@
            $if != 'EthernetRules' &&
            $if != 'FloatingRules') {
                /* default to the first configured interface */
-               $if = array_key_first($ifdescs);
+               $if = 'lan';
        }
 }