From ff1955eeab587d34bdfc36e66f751cacc73c0980 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sat, 26 Feb 2005 01:45:34 +0000 Subject: Enable bogon filtering --- usr/local/www/interfaces.php | 9 +++++++++ usr/local/www/interfaces_wan.php | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'usr') 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. +   + > + Block bogon networks
+ When set, this option blocks traffic from IP addresses that + are reserved (but not RFC 1918) or not yet assigned by IANA.
+ 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. +    
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. +   + > + Block bogon networks
+ When set, this option blocks traffic from IP addresses that + are reserved (but not RFC 1918) or not yet assigned by IANA.
+ 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. +    
-- cgit v1.1