summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-02-26 01:45:34 +0000
committerBill Marquette <billm@pfsense.org>2005-02-26 01:45:34 +0000
commitff1955eeab587d34bdfc36e66f751cacc73c0980 (patch)
tree6aeb917c4bbc001eff51afc16fe1ed2786b61087 /usr
parentd7375115c181885d3f3e1d204250edc742d45129 (diff)
downloadpfsense-ff1955eeab587d34bdfc36e66f751cacc73c0980.zip
pfsense-ff1955eeab587d34bdfc36e66f751cacc73c0980.tar.gz
Enable bogon filtering
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php9
-rwxr-xr-xusr/local/www/interfaces_wan.php9
2 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 1e8c21f..a4fa794 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -73,6 +73,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
}
$pconfig['blockpriv'] = isset($wancfg['blockpriv']);
+$pconfig['blockbogons'] = isset($wancfg['blockbogons']);
$pconfig['spoofmac'] = $wancfg['spoofmac'];
$pconfig['mtu'] = $wancfg['mtu'];
@@ -233,6 +234,7 @@ if ($_POST) {
$wancfg['bandwidthtype'] = $_POST['bandwidthtype'];
$wancfg['blockpriv'] = $_POST['blockpriv'] ? true : false;
+ $wancfg['blockbogons'] = $_POST['blockbogons'] ? true : false;
$wancfg['spoofmac'] = $_POST['spoofmac'];
$wancfg['mtu'] = $_POST['mtu'];
@@ -667,6 +669,13 @@ function type_change(enable_change,enable_change_pptp) {
lies in such a private address space, too.</td>
</tr>
<tr>
+ <td valign="middle">&nbsp;</td>
+ <td class="vtable"> <input name="blockbogons" type="checkbox" id="blockbogons" value="yes" <?php if ($pconfig['blockbogons']) echo "checked"; ?>>
+ <strong>Block bogon networks</strong><br>
+ When set, this option blocks traffic from IP addresses that
+ are reserved (but not RFC 1918) or not yet assigned by IANA.<br>
+ Bogons are prefixes that should never appear in the Internet routing table, and obviously should not appear as the source address in any packets you receive.</td>
+ <tr>
<td width="100" valign="top">&nbsp;</td>
<td> &nbsp;<br> <input name="Submit" type="submit" class="formbtn" value="Save" onClick="enable_change_pptp(true)&&enable_change(true)">
</td>
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 1e8c21f..a4fa794 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -73,6 +73,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
}
$pconfig['blockpriv'] = isset($wancfg['blockpriv']);
+$pconfig['blockbogons'] = isset($wancfg['blockbogons']);
$pconfig['spoofmac'] = $wancfg['spoofmac'];
$pconfig['mtu'] = $wancfg['mtu'];
@@ -233,6 +234,7 @@ if ($_POST) {
$wancfg['bandwidthtype'] = $_POST['bandwidthtype'];
$wancfg['blockpriv'] = $_POST['blockpriv'] ? true : false;
+ $wancfg['blockbogons'] = $_POST['blockbogons'] ? true : false;
$wancfg['spoofmac'] = $_POST['spoofmac'];
$wancfg['mtu'] = $_POST['mtu'];
@@ -667,6 +669,13 @@ function type_change(enable_change,enable_change_pptp) {
lies in such a private address space, too.</td>
</tr>
<tr>
+ <td valign="middle">&nbsp;</td>
+ <td class="vtable"> <input name="blockbogons" type="checkbox" id="blockbogons" value="yes" <?php if ($pconfig['blockbogons']) echo "checked"; ?>>
+ <strong>Block bogon networks</strong><br>
+ When set, this option blocks traffic from IP addresses that
+ are reserved (but not RFC 1918) or not yet assigned by IANA.<br>
+ Bogons are prefixes that should never appear in the Internet routing table, and obviously should not appear as the source address in any packets you receive.</td>
+ <tr>
<td width="100" valign="top">&nbsp;</td>
<td> &nbsp;<br> <input name="Submit" type="submit" class="formbtn" value="Save" onClick="enable_change_pptp(true)&&enable_change(true)">
</td>
OpenPOWER on IntegriCloud