Created on 11-04-2016 05:06 PM Edited on 11-05-2024 02:36 AM By Jean-Philippe_P
Description
This article describes the implementation of TACACS+ Accounting starting from FortiOS 7.0.2.
Scope
FortiOS 7.0.2+.
Solution
This feature allows users to send FortiGate system log entries to an external TACACS+ accounting server. Up to three external TACACS+ servers can be configured, each with a different filter for log events. These filters include TACACS+ accounting for login events, config change events, and CLI commands audit.
To configure the TACACS+ Accounting settings:
config log tacacs+accounting setting
set status enable
set server "10.0.0.100"
set server-key ************
end
Starting with FortiOS 7.2.4, a source IP and interface can be configured:
config log tacacs+accounting setting
set status enable
set server "10.0.0.100"
set server-key ************
set interface-select-method specify
set interface port1
end
To configure the filter for the TACACS+ Accounting:
config log tacacs+accounting filter
set login-audit enable
set config-change-audit enable
set cli-cmd-audit enable
end
Note: Additional TACACS+ Accounting servers and filters can be configured with 'tacacs+accounting2' and 'tacacs+accounting3'.
Cli-cmd-audit enable - example here: Technical Tip: Enable audit log via CLI.
To troubleshoot the TACACS+ Accounting settings:
diag debug enable
diag debug app syslogd -1 <- This helps to display the errors if any.
diag test app syslogd 4 <- Statistics on TACACS+ Logging.
FortiOS before v7.0.2 is capable of working with TACACS+ Authentication and Authorization, but not with Accounting. TACACS+ Accounting messages can lead to the following error message (diag debug application fnbamd):
2016-10-28 11:26:01 message_loop: checking timeouts
For FortiOS prior to v7.0.2, it is recommended to disable accounting messages between the FortiGate units and TACACS+ servers.
Related document:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.