summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-28 22:33:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-28 22:33:56 +0000
commit0bd7dfeb3ff697336891e8528a0577af304c14df (patch)
tree04adbbea50f8b5e01565f9d016d651448ad9428b
parent5d9028b4edd3b23462c6eebddfa47f7654233aa2 (diff)
downloadpfsense-0bd7dfeb3ff697336891e8528a0577af304c14df.zip
pfsense-0bd7dfeb3ff697336891e8528a0577af304c14df.tar.gz
Unbreak FTP when using IPSEC VPN's.
-rw-r--r--etc/inc/filter.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index f7f9c41..8e627de 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -350,11 +350,10 @@ function get_vpns_list() {
$vpns_arr = array();
/* ipsec */
- if ($config['ipsec']['enable'])
- if (is_array($config['ipsec']['phase2']))
- foreach ($config['ipsec']['phase2'] as $ph2ent)
- if (is_subnet($ph2ent['remote-subnet']))
- $vpns_arr[] = $ph2ent['remote-subnet'];
+ if ($config['ipsec']['phase2'])
+ foreach ($config['ipsec']['phase2'] as $ph2ent)
+ if($ph2ent['remoteid']['address'])
+ $vpns_arr[] = $ph2ent['remoteid']['address'] . "/" . $ph2ent['remoteid']['netbits'];
/* openvpn */
foreach (array('client', 'server') as $type)
@@ -2906,4 +2905,5 @@ function return_vpn_subnet($adr)
return " # error - {$adr['network']} ";
}
-?>
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud