mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add RFC 1918 block indicator from m0n0wall 1.21
This commit is contained in:
parent
f0bbc0db79
commit
d9eeccbdfd
@ -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> </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)
|
||||
|
||||
@ -690,7 +690,7 @@ function type_change(enable_change,enable_change_pptp) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle"> </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>
|
||||
|
||||
@ -690,7 +690,7 @@ function type_change(enable_change,enable_change_pptp) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle"> </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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user