| Description | This article describes that the connection status between FortiGate and the TACACS+ Server is 'ok', the test is also successful. However, when trying to log in using TACACS, will receive the message '[312] sock_connect-can't connect to server Network is unreachable'. |
| Scope | FortiGate v7.0.12. |
| Solution |
The TACACS+ configuration is below, the source IP address has been set up to 0.0.0.0 (the default setting is empty ' ').
config user tacacs+
The debug commands below can be run to check details:
diagnose debug application fnbamd -1 diagnose test authserver tacacs+ {servername} {username} {password} <----- Trigger the issue.
The source IP was 0.0.0.0 in the debug log which was caused by the configuration:
TYN-FWA-LAB01 # [908] fam_check_connect-Bound socket to interface: <23, IPVPN> for <0.0.0.0->10.228.229.204>
Modify the source-ip to the corresponding interface IP so that the authentication can work well:
config user tacacs+ end |
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 2025 Fortinet, Inc. All Rights Reserved.