summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/vpn.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc
index 1398135..9eaa6c0 100644
--- a/src/etc/inc/vpn.inc
+++ b/src/etc/inc/vpn.inc
@@ -489,12 +489,19 @@ EOD;
}
}
+ /* Activate RADIUS accounting if it was selected on the auth server view */
+ $radius_accounting = "";
+ if($auth_server && isset($auth_server['radius_acct_port'])){
+ $radius_accounting = 'accounting = yes';
+ }
+
/* write an eap-radius config section if appropriate */
if (strlen($radius_server_txt) && ($mobile_ipsec_auth === "eap-radius")) {
$strongswan .= <<<EOD
eap-radius {
class_group = yes
eap_start = no
+ {$radius_accounting}
servers {
{$radius_server_txt}
}
@@ -978,6 +985,10 @@ EOD;
$ikelifeline = "ikelifetime = {$ph1ent['lifetime']}s";
}
+ if ($ph1ent['rekeymargin']) {
+ $rekeymargin = "rekeymargin = {$ph1ent['rekeymargin']}s";
+ }
+
$rightsourceip = NULL;
if (isset($ph1ent['mobile'])) {
$rightsourceips = array();
@@ -1304,6 +1315,7 @@ EOD;
{$mobike}
{$tfc}
{$rekey}
+ {$rekeymargin}
installpolicy = yes
{$tunneltype}
{$dpdline}
OpenPOWER on IntegriCloud