Description | This article describes how to fix an issue on the FortiGate when Application control does not steer the traffic according to sd-wan policy |
Scope | FortiGate, SD-WAN, Application control. |
Solution |
This article describes how to deal with the unexpected behavior of a FortiGate, using an Application control, not being accordingly switched to the appropriate interface. In the given example below, the Youtube traffic is routed through interface port9, while the whole traffic goes through interface port9. The YouTube traffic is identified with application control. The firewall policy uses application control with deep inspection.
The example with which this case study is observed is with the IP 173.194.10.135. This is a page on YouTube. At point 07:20:08 the traffic is being inspected and identified as HTTPS as an application, which sorts the traffic through SDWAN policy #3.
Before initiating the traffic the app control list is blank:
chen-esx22 # diagnose sys sdwan internet-service-app-ctrl-list
The session list:
session info: proto=6 proto_state=11 duration=5 expire=3597 timeout=3600 refresh_dir=both flags=00000000 socktype=0 sockport=0 av_idx=0 use=4
At 07:20:41, the traffic starts to use the appropriate interface. The output of the identified applications is below:
chen-esx22 # diagnose sys sdwan internet-service-app-ctrl-list YouTube(31077 5): IP=142.251.36.86 6 443 YouTube(31077 5): IP=142.251.36.129 6 443 YouTube_Channel.ID(44956 5): IP=142.251.37.110 6 443 YouTube_Video.Play(38569 5): IP=172.217.130.70 6 443 YouTube_Video.Play(38569 5): IP=173.194.10.135 6 443 <----- the IP that is used in the example. The ID is 38569. YouTube(31077 5): IP=173.194.10.138 6 443 YouTube_Video.Play(38569 5): IP=173.194.191.232 6 443
The session:
session info: proto=6 proto_state=11 duration=4 expire=3598 timeout=3600 refresh_dir=both flags=00000000 socktype=0 sockport=0 av_idx=0 use=4
If the bandwidth on the SD-WAN bandwidth monitoring is observed right after the traffic is initiated, the traffic would appear to go through the SD-WAN member 1, as this session will remain open. At first, when the session was opened, this traffic was identified as HTTPS and marked for SD-WAN policy #3.
After the IPS engine identified that this traffic is Youtube_Video_Play, the new sessions that opened are marked that should go through the SD-WAN policy #2. If the first session list is examined again, it can be noticed that the application is identified already as 38569, but it is still using the SD-WAN policy #3 instead of #2.
|