summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-31 17:37:34 +0000
committerErmal <eri@pfsense.org>2010-08-31 17:37:34 +0000
commit1ee3ed0f4c16c2d2b08d0db2426bcbfec7a61059 (patch)
tree06ab8e7cb0d0c27328b332c7376747777de8388f
parent4d3c8697b105956c838912ebc31c679498c6e286 (diff)
downloadpfsense-1ee3ed0f4c16c2d2b08d0db2426bcbfec7a61059.zip
pfsense-1ee3ed0f4c16c2d2b08d0db2426bcbfec7a61059.tar.gz
Check for 0.0.0.0/0 to not be added to the table. It breaks stuff as in http://forum.pfsense.org/index.php/topic,27963.0.html
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c18a757..5f163fe 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -648,7 +648,10 @@ function filter_get_vpns_list() {
foreach ($config['ipsec']['phase2'] as $ph2ent) {
if((!$ph2ent['mobile']) && ($ph2ent['mode'] != 'transport')) {
require_once("ipsec.inc");
- $vpns_arr[] = ipsec_idinfo_to_cidr($ph2ent['remoteid']);
+ $vpns_subnet = ipsec_idinfo_to_cidr($ph2ent['remoteid']);
+ if ($vpns_subnet == "0.0.0.0/0")
+ continue;
+ $vpns_arr[] = $vpns_subnet;
}
}
}
OpenPOWER on IntegriCloud