Skip to main content
FortiNitish
Staff
Staff
July 19, 2023

Technical Tip: Session clash events in FortiGate

  • July 19, 2023
  • 0 replies
  • 11990 views
Description This article describes how to analyze a session Clash event in FortiGate that occurred due to misconfiguration.
Scope FortiGate.
Solution

Below is a scenario where FortiGate has triggered Session clash events.

 

Session clash events can occur when the two sessions are received with the same source and destination IPs and Ports. In most cases, the traffic initiated by the endpoints can cause such events. But in the scenario, a misconfiguration in FortiGate has triggered this event.

 

Logs:

 

msg="session clash" 
new_status="state=00012204 
tuple-num=4 
policyid=3 
dir=0 act=2 hook=0 152.58.73.216:39888->115.245.112.234:443(192.168.0.157:443) 
dir=0 act=1 hook=4 152.58.73.216:39888->192.168.0.157:443(192.168.0.1:39888) 
dir=1 act=2 hook=0 192.168.0.157:443->192.168.0.1:39888(152.58.73.216:39888) 
dir=1 act=1 hook=4 192.168.0.157:443->152.58.73.216:39888(115.245.112.234:443)" 
old_status="state=00010204 
tuple-num=4 policyid=3 
dir=0 act=2 hook=0 157.38.145.22:39888->115.245.112.234:443(192.168.0.157:443) 
dir=0 act=1 hook=4 157.38.145.22:39888->192.168.0.157:443(192.168.0.1:39888) 
dir=1 act=2 hook=0 192.168.0.157:443->192.168.0.1:39888(157.38.145.22:39888) 
dir=1 act=1 hook=4 192.168.0.157:443->157.38.145.22:39888(115.245.112.234:443)"

 

As the above logs show, the incoming source public IP is getting translated.

The public IP is being NAT to the interface IP, which is the same: 192.168.0.1 in both scenarios. This is the reason the Firewall is considering this traffic as a session clash.

 

Hence, NAT should be disabled in incoming VIP policies to prevent such events in the FortiGate.

 

There are possibilities for a session clash to occur if multiple VIPs are called in the same policy for the same destination. It is advised to have separate policies for VIPs configured for the same destination.

 

Related article:

Technical Tip: Explanation of the session clash message. 

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.