Add RFC 1918 block indicator from m0n0wall 1.21

This commit is contained in:
Scott Ullrich 2006-01-11 03:42:12 +00:00
parent f0bbc0db79
commit d9eeccbdfd
3 changed files with 27 additions and 2 deletions

View File

@ -212,6 +212,31 @@ include("head.inc");
<td width="22%" class="listhdr">Description</td>
<td width="10%" class="list"></td>
</tr>
<?php if (($if == "wan") && isset($config['interfaces']['wan']['blockpriv'])): ?>
<tr valign="top" id="frrfc1918">
<td class="listt"></td>
<td class="listt" align="center"><img src="block.gif" width="11" height="11" border="0"></td>
<td class="listlr" style="background-color: #e0e0e0">*</td>
<td class="listr" style="background-color: #e0e0e0">RFC 1918 networks</td>
<td class="listr" style="background-color: #e0e0e0">*</td>
<td class="listr" style="background-color: #e0e0e0">*</td>
<td class="listr" style="background-color: #e0e0e0">*</td>
<td class="listr" style="background-color: #e0e0e0">*</td>
<td class="listbg" style="background-color: #e0e0e0">Block private networks</td>
<td valign="middle" nowrap class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="move selected rules before this rule"></td>
<td><a href="interfaces_wan.php#rfc1918"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit rule" width="17" height="17" border="0"></a></td>
</tr>
<tr>
<td align="center" valign="middle"></td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<?php endif; ?>
<?php $nrules = 0; for ($i = 0; isset($a_filter[$i]); $i++):
$filterent = $a_filter[$i];
if ($filterent['interface'] != $if)

View File

@ -690,7 +690,7 @@ function type_change(enable_change,enable_change_pptp) {
</tr>
<tr>
<td valign="middle">&nbsp;</td>
<td class="vtable"> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
<td class="vtable"><a name="rfc1918"></a> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
<strong>Block private networks</strong><br>
When set, this option blocks traffic from IP addresses that
are reserved for private<br>

View File

@ -690,7 +690,7 @@ function type_change(enable_change,enable_change_pptp) {
</tr>
<tr>
<td valign="middle">&nbsp;</td>
<td class="vtable"> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
<td class="vtable"><a name="rfc1918"></a> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
<strong>Block private networks</strong><br>
When set, this option blocks traffic from IP addresses that
are reserved for private<br>