summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-07 11:23:41 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-07 11:23:41 +0000
commit3331a640f61fc3176d03f84e90b0539a93d1ca36 (patch)
tree2b60a6fdaf8d4f2d1664acc567a10da0091aaef1 /usr
parent8a6bc5051be1831a77e526a16bee133cb36cce8a (diff)
downloadpfsense-3331a640f61fc3176d03f84e90b0539a93d1ca36.zip
pfsense-3331a640f61fc3176d03f84e90b0539a93d1ca36.tar.gz
fix some other shortcuts provided by the GUI.
This commit fixes even Bug #27
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 0d6fadc..d386795 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -42,6 +42,10 @@
require("guiconfig.inc");
$specialsrcdst = explode(" ", "any pptp pppoe l2tp");
+$ifdisp = get_configured_interface_with_descr();
+foreach ($ifdiscp as $kif => $kdescr)
+ $specialsrcdst[] = "{$kif}";
+ $specialsrcdst[] = "{$kif}ip";
if (!is_array($config['filter']['rule'])) {
$config['filter']['rule'] = array();
@@ -663,7 +667,6 @@ include("head.inc");
<option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo "selected"; } ?>>L2TP clients</option>
<?php endif; ?>
<?php
- $ifdisp = get_configured_interface_with_descr();
foreach ($ifdisp as $ifent => $ifdesc): ?>
<?php if(have_ruleint_access($ifent)): ?>
<option value="<?=$ifent;?>" <?php if ($pconfig['src'] == $ifent) { echo "selected"; } ?>><?=htmlspecialchars($ifdesc);?> subnet</option>
@@ -775,22 +778,15 @@ include("head.inc");
<option value="any" <?php if ($pconfig['dst'] == "any") { echo "selected"; } ?>>any</option>
<option value="single" <?php if (($pconfig['dstmask'] == 32) && !$sel) { echo "selected"; $sel = 1; } ?>>Single host or alias</option>
<option value="network" <?php if (!$sel) echo "selected"; ?>>Network</option>
- <?php if(have_ruleint_access("wan")): ?>
- <option value="wanip" <?php if ($pconfig['dst'] == "wanip") { echo "selected"; } ?>>WAN address</option>
- <?php endif; ?>
- <?php if(have_ruleint_access("lan")): ?>
- <option value="lanip" <?php if ($pconfig['dst'] == "lanip") { echo "selected"; } ?>>LAN address</option>
- <?php endif; ?>
- <?php if(have_ruleint_access("lan")): ?>
- <option value="lan" <?php if ($pconfig['dst'] == "lan") { echo "selected"; } ?>>LAN subnet</option>
- <?php endif; ?>
<?php if(have_ruleint_access("pptp")): ?>
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected"; } ?>>PPTP clients</option>
<?php endif; ?>
<?php if(have_ruleint_access("pppoe")): ?>
<option value="pppoe" <?php if ($pconfig['dst'] == "pppoe") { echo "selected"; } ?>>PPPoE clients</option>
<?php endif; ?>
-
+ <?php if(have_ruleint_access("l2tp")): ?>
+ <option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo "selected"; } ?>>L2TP clients</option>
+ <?php endif; ?>
<?php foreach ($ifdisp as $if => $ifdesc): ?>
<?php if(have_ruleint_access($if)): ?>
OpenPOWER on IntegriCloud