diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 9 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 9 |
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"> </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"> </td> <td> <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"> </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"> </td> <td> <br> <input name="Submit" type="submit" class="formbtn" value="Save" onClick="enable_change_pptp(true)&&enable_change(true)"> </td> |