diff options
author | jim-p <jimp@pfsense.org> | 2014-05-23 13:46:20 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-05-23 14:00:05 -0400 |
commit | 0d0c01cac8d4f74556ba702b85d5b7059a312d60 (patch) | |
tree | 8edbfdadf2f546825f78ba8b93e890b7628251f4 /usr/local | |
parent | 23b3e6792f069839242a03583e9d386adf3829eb (diff) | |
download | pfsense-0d0c01cac8d4f74556ba702b85d5b7059a312d60.zip pfsense-0d0c01cac8d4f74556ba702b85d5b7059a312d60.tar.gz |
Add (self) keyword for specifying "any IP address on this firewall" as a rule choice.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/firewall_rules_edit.php | 6 | ||||
-rw-r--r-- | usr/local/www/guiconfig.inc | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index aaec6a5..da0d0cc 100644 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -91,7 +91,7 @@ if (count($ostypes) > 2) { ); } -$specialsrcdst = explode(" ", "any pptp pppoe l2tp openvpn"); +$specialsrcdst = explode(" ", "any (self) pptp pppoe l2tp openvpn"); $ifdisp = get_configured_interface_with_descr(); foreach ($ifdisp as $kif => $kdescr) { $specialsrcdst[] = "{$kif}"; @@ -1048,6 +1048,9 @@ include("head.inc"); ?> > <?=gettext("Single host or alias");?></option> <option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network");?></option> + <?PHP if (isset($a_filter[$id]['floating']) || $if == "FloatingRules"): ?> + <option value="(self)" <?PHP if ($pconfig['src'] == "(self)") echo "selected=\"selected\""; ?>><?=gettext("This Firewall (self)");?></option> + <?PHP endif;?> <?php if(have_ruleint_access("pptp")): ?> <option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients");?></option> <?php endif; ?> @@ -1148,6 +1151,7 @@ include("head.inc"); ?> ><?=gettext("Single host or alias");?></option> <option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network");?></option> + <option value="(self)" <?PHP if ($pconfig['dst'] == "(self)") echo "selected=\"selected\""; ?>><?=gettext("This Firewall (self)");?></option> <?php if(have_ruleint_access("pptp")): ?> <option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients");?></option> <?php endif; ?> diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 82a4cfa..ab3bf0a 100644 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -231,7 +231,7 @@ $wkports = array( /* TCP flags */ $tcpflags = array("fin", "syn", "rst", "psh", "ack", "urg", "ece", "cwr"); -$specialnets = array("pptp" => "PPTP clients", "pppoe" => "PPPoE clients", "l2tp" => "L2TP clients"); +$specialnets = array("(self)" => "This Firewall", "pptp" => "PPTP clients", "pppoe" => "PPPoE clients", "l2tp" => "L2TP clients"); $spiflist = get_configured_interface_with_descr(false, true); foreach ($spiflist as $ifgui => $ifdesc) { |