summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_rules.php25
-rwxr-xr-xusr/local/www/interfaces.php2
-rwxr-xr-xusr/local/www/interfaces_wan.php2
3 files changed, 27 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 10038fa..f229cd8 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -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)
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index b12edb4..6995631 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -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>
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index b12edb4..6995631 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -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>
OpenPOWER on IntegriCloud