diff options
author | Matt Smith <mgsmith@netgate.com> | 2015-10-07 14:15:54 -0500 |
---|---|---|
committer | Matt Smith <mgsmith@netgate.com> | 2015-10-07 14:15:54 -0500 |
commit | 5bf321b6dd7a00124927fe3894e07b35b1f27640 (patch) | |
tree | cfb8b97f8f3f5394bf7d37354e97b10e64809cab /etc | |
parent | b07f827a905ad502583965d5a43a89a50bcdbb3d (diff) | |
download | pfsense-5bf321b6dd7a00124927fe3894e07b35b1f27640.zip pfsense-5bf321b6dd7a00124927fe3894e07b35b1f27640.tar.gz |
Add support for an IPv6 pool for mobile clients.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 987e3d3..3f329fc 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -933,10 +933,19 @@ EOD; $rightsourceip = NULL; if (isset($ph1ent['mobile'])) { - if (!empty($a_client['pool_address'])) { - $rightsourceip = "\trightsourceip = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n"; - } elseif ($ph1ent['authentication_method'] == "eap-radius") { - $rightsourceip = "\trightsourceip = %radius\n"; + $rightsourceips = array(); + if (!empty($a_client['pool_address']) ) { +/* $rightsourceip = "\trightsourceip = {$a_client['pool_address']}/{$a_client['pool_netbits']}\n"; */ + $rightsourceips[] = "{$a_client['pool_address']}/{$a_client['pool_netbits']}"; + } + if (!empty($a_client['pool_address_v6'])) { + $rightsourceips[] = "{$a_client['pool_address_v6']}/{$a_client['pool_netbits_v6']}"; + } + if ($ph1ent['authentication_method'] == "eap-radius" && !count($rightsourceips)){ + $rightsourceips[] = "%radius"; + } + if (count($rightsourceips)) { + $rightsourceip = "\trightsourceip = " . implode(',', $rightsourceips) . "\n"; } } |