diff options
author | hamnur <hamnur@protonmail.com> | 2017-06-30 10:41:16 +0200 |
---|---|---|
committer | hamnur <hamnur@protonmail.com> | 2017-06-30 10:41:16 +0200 |
commit | 1e0442e0612ecd289aa979bc945be0d8ead35f41 (patch) | |
tree | 6237cdd49cb05ddab2533f36bb060d696f72b1c6 /src/etc | |
parent | 9542011684a26e0b1b959d9b56d5fcfc12023893 (diff) | |
download | pfsense-1e0442e0612ecd289aa979bc945be0d8ead35f41.zip pfsense-1e0442e0612ecd289aa979bc945be0d8ead35f41.tar.gz |
Activate RADIUS accounting for mobile ipsec if it was selected on the auth server view
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/vpn.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc index 8200b5e..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} } |