summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-24 18:41:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-24 18:41:52 +0000
commit8b4be0b20f22e2c731dd1423b2ead420dfe5bfd4 (patch)
tree4b0a76d32ceebeabdefacac453eaced74d4e70c8 /usr
parentfa0007151051019fb2862f856480c0fd6847278e (diff)
downloadpfsense-8b4be0b20f22e2c731dd1423b2ead420dfe5bfd4.zip
pfsense-8b4be0b20f22e2c731dd1423b2ead420dfe5bfd4.tar.gz
MFC 11100
Allow WAN and LAN address in shaper rules
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_shaper_edit.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/firewall_shaper_edit.php b/usr/local/www/firewall_shaper_edit.php
index 9fb0777..0083f13 100755
--- a/usr/local/www/firewall_shaper_edit.php
+++ b/usr/local/www/firewall_shaper_edit.php
@@ -44,7 +44,7 @@ if(isset($config['shaper']['enable'])) {
Header("Location: wizard.php?xml=traffic_shaper_wizard.xml");
}
-$specialsrcdst = explode(" ", "any lan pptp");
+$specialsrcdst = explode(" ", "any wanip lanip lan pptp");
$id = $_GET['id'];
if (isset($_POST['id']))
@@ -492,6 +492,10 @@ function dst_rep_change() {
Single host or alias</option>
<option value="network" <?php if (!$sel) echo "selected"; ?>>
Network</option>
+ <option value="wanip" <?php if ($pconfig['src'] == "wanip") { echo "selected"; } ?>>
+ WAN address</option>
+ <option value="lanip" <?php if ($pconfig['src'] == "lanip") { echo "selected"; } ?>>
+ LAN address</option>
<option value="lan" <?php if ($pconfig['src'] == "lan") { echo "selected"; } ?>>
LAN subnet</option>
<option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected"; } ?>>
@@ -572,6 +576,10 @@ function dst_rep_change() {
Single host or alias</option>
<option value="network" <?php if (!$sel) echo "selected"; ?>>
Network</option>
+ <option value="wanip" <?php if ($pconfig['dst'] == "wanip") { echo "selected"; } ?>>
+ WAN address</option>
+ <option value="lanip" <?php if ($pconfig['dst'] == "lanip") { echo "selected"; } ?>>
+ LAN address</option>
<option value="lan" <?php if ($pconfig['dst'] == "lan") { echo "selected"; } ?>>
LAN subnet</option>
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected"; } ?>>
OpenPOWER on IntegriCloud