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

FWdefLAN patch270

From kitz wiki
Jump to: navigation, search

By default pfSense will take you to the first active interface (usually WAN) 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';