summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-23 03:10:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-23 03:10:12 +0000
commit36de900088731e123f90f77a9de34c704e67ac71 (patch)
treeaf570aca63979f52194dadd63cd90e3f67f7acf1 /usr
parent351217eda013392bf257d465d53b737756bd32ae (diff)
downloadpfsense-36de900088731e123f90f77a9de34c704e67ac71.zip
pfsense-36de900088731e123f90f77a9de34c704e67ac71.tar.gz
Add iptos support
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_shaper_edit.php30
-rwxr-xr-xusr/local/www/guiconfig.inc4
2 files changed, 24 insertions, 10 deletions
diff --git a/usr/local/www/firewall_shaper_edit.php b/usr/local/www/firewall_shaper_edit.php
index 3268048..5362be2 100755
--- a/usr/local/www/firewall_shaper_edit.php
+++ b/usr/local/www/firewall_shaper_edit.php
@@ -682,15 +682,27 @@ function dst_rep_change() {
on the interface specified above (as seen from the firewall's
perspective). </td>
</tr>
-
-
- <tr>
- <td width="22%" valign="top" class="vncell">IP packet length</td>
- <td width="78%" class="vtable"><input name="iplen" type="text" id="iplen" size="10" value="<?=htmlspecialchars($pconfig['iplen']);?>">
- <br>
- Setting this makes the rule match packets of a given length
- (either a single value or a range in the syntax <em>from-to</em>,
- e.g. 0-80). </td>
+ <tr>
+ <td width="22%" valign="top" class="vncell">IP Type of Service (TOS)</td>
+ <td width="78%" class="vtable"> <table border="0" cellspacing="0" cellpadding="0">
+ <?php
+ $iniptos = explode(",", $pconfig['iptos']);
+ foreach ($iptos as $tos): $dontcare = true; ?>
+ <tr>
+ <td width="80" nowrap><strong>
+ <?echo $tos;?>
+ </strong></td>
+ <td nowrap> <input type="radio" name="iptos_<?=$tos;?>" value="on" <?php if (array_search($tos, $iniptos) !== false) { echo "checked"; $dontcare = false; }?>>
+ yes&nbsp;&nbsp;&nbsp;</td>
+ <td nowrap> <input type="radio" name="iptos_<?=$tos;?>" value="off" <?php if (array_search("!" . $tos, $iniptos) !== false) { echo "checked"; $dontcare = false; }?>>
+ no&nbsp;&nbsp;&nbsp;</td>
+ <td nowrap> <input type="radio" name="iptos_<?=$tos;?>" value="" <?php if ($dontcare) echo "checked";?>>
+ don't care</td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ <span class="vexpl">Use this to match packets according to their IP TOS values.
+ </span></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">TCP flags</td>
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index e27aa07..d34d853 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -72,7 +72,9 @@ if (file_exists($d_firmwarelock_path)) {
$wkports = array(3389 => "MS RDP", 21 => "FTP", 22 => "SSH", 23 => "Telnet", 25 => "SMTP",
53 => "DNS", 80 => "HTTP", 110 => "POP3", 143 => "IMAP", 443 => "HTTPS");
-$iptos = array("lowdelay", "throughput", "reliability", "mincost", "congestion");
+/* IP TOS flags */
+$iptos = array("lowdelay", "throughput", "reliability", "congestion");
+
/* TCP flags */
$tcpflags = array("fin", "syn", "rst", "psh", "ack", "urg");
OpenPOWER on IntegriCloud