FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
acvaldez
Staff
Staff
Article Id 301174
Description

This article describes how to identify a specific session that is not sync from the primary to the secondary FortiGate unit in an HA setup.

Scope FortiGate.
Solution
  • In this example, SCTP trafficw ill be used. In cases where the SCTP traffic count between the primary and secondary unit does not have the same session count, some sessions are not synchronized from the master to the slave.

First, run the following commands on both the primary and secondary units to display the session list for SCTP Traffic:

 

diag sys session filter clear

diag sys session filter proto 132

diag sys session list

diag sys session list | grep total

 

Here, the primary unit has 25233:

 

 
 
master fgt sctp session and count.png

 

The secondary unit has 25229:

 

slave fgt sctp session and count.png

There are 4 SCTP sessions not synced from master to slave.

 

The second step is to save these session list logs to the linux device (Ubuntu in this example). In this case, they were saved under the /var/log directory.

 

save logs to linux box.png

 

Now, run this command on a Linux box to filter the serial number of each session from the logs and save it in another separate text file, and then compare them. This will help to identify which sessions are present in the primary unit but not in the secondary, using the serial details in the session list. 

 

master and slave serial details.png

Now, compare the primary unit's serial log with the secondary unit's serial log and output it to another text file to see which session serial is present in the primary and not in the secondary.

 

diff master slave serial .png

From there, identify which serial was present in the primary and not in the secondary unit using the diffmasterslaveserial.txt file.

 

serial comparison.png

It is now possible to use this serial number to check the session list that was gathered in step one to identify the sessions present in the primary but not in the secondary. For example, using the serial number 7c521b3a:

 

7c521b3a serial.png

  

In this example, research was conducted to understand why this session was not syncing from the primary to the secondary unit. Based on findings, this session has a SCTP proto_state of 05: it will not sync from the primary FortiGate to the secondary because this proto_state 05 can be considered a dead SCTP session. See Troubleshooting Tip: FortiGate session table information for more information.

Contributors