From cb377516944e14fcd56ddad6b3963b09a9159d16 Mon Sep 17 00:00:00 2001 From: Ingo Bauersachs Date: Mon, 13 Apr 2015 11:17:33 +0200 Subject: Add support for EAP-RADIUS to IKEv2 Mobile Clients --- etc/inc/ipsec.inc | 1 + etc/inc/vpn.inc | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index fc94acd..ef47b15 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -126,6 +126,7 @@ $p1_authentication_methods = array( 'xauth_rsa_server' => array( 'name' => 'Mutual RSA + Xauth', 'mobile' => true ), 'xauth_psk_server' => array( 'name' => 'Mutual PSK + Xauth', 'mobile' => true ), 'eap-tls' => array( 'name' => 'EAP-TLS', 'mobile' => true), + 'eap-radius' => array( 'name' => 'EAP-RADIUS', 'mobile' => true), 'eap-mschapv2' => array( 'name' => 'EAP-MSChapv2', 'mobile' => true), 'rsasig' => array( 'name' => 'Mutual RSA', 'mobile' => false ), 'pre_shared_key' => array( 'name' => 'Mutual PSK', 'mobile' => false ) ); diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index d5efa8a..57e6de7 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -403,6 +403,28 @@ EOD; $strongswan .= "\tplugins {\n"; + $a_servers = auth_get_authserver_list(); + foreach ($a_servers as $id => $pconfig) { + if ($id == $config['ipsec']['client']['user_source'] && $pconfig['type'] == "radius") { + $strongswan .= <<