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

FWdefLAN patch

From kitz wiki
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   2019-01-06 08:56:58.677038000 +0000
+++ firewall_rules.php    2019-01-06 08:57:19.860922000 +0000
@@ -122,7 +122,7 @@
 if (!$if || !isset($iflist[$if])) {
        if ($if != "any" && $if != "FloatingRules" && isset($iflist['wan'])) {
-               $if = "wan";
+               $if = "lan";
        } else {
-               $if = "FloatingRules";
+               $if = "lan";