I'm having an issue with CLI session using ssh and telnet. Whenever I tried to connect Fortinet or switch behind Fortigate, it disconnects my session after about 15s. Web session on Fortigate stays connected.. but neither the ssh or telnet. Tried to change timeout settings on Fortigate. It didn't help. I'm sitting behind a Fortigate that has an ipsec tunnel with the Fortigate that I'm trying to connect to. Any settings on IPSEC tunnel? Any suggestions?
There is no setting on Fortigate to cause an ACTIVE ssh session to disconnect every other second/minute, the only setting like set admintimeout relates to ssh/web admin sessions but even then only for IDLE sessions, not active ones.
Is it possible you have SD-WAN + Ipsec ? If so then it could be the FGT is balancing your ssh over multiple VPN tunnels and this causes the issue, in that case you can try setting SD-WAN to preserve-session setting.
Man that last post update makes me believe you have session-ttl set & if you go idle the session is timeout. If you do a "diag debug flow" and find the policy and services make sure some one didn't hack of the service session-ttl to some weird idle timeout
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.