diff options
author | Ermal <eri@pfsense.org> | 2010-08-31 17:37:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-31 17:37:34 +0000 |
commit | 1ee3ed0f4c16c2d2b08d0db2426bcbfec7a61059 (patch) | |
tree | 06ab8e7cb0d0c27328b332c7376747777de8388f | |
parent | 4d3c8697b105956c838912ebc31c679498c6e286 (diff) | |
download | pfsense-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.inc | 5 |
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; } } } |