Description | This article explains why FortiSwitch appears offline on the FortiGate when certain security features are enabled on the FortiSwitch, and how to resolve the issue. |
Scope | FortiSwitch v7.6, v7.4, v7.2 (managed by FortiGate). |
Solution |
FortiSwitch includes a security feature designed to validate TCP and UDP packets. Depending on the FortiSwitch model, available options may vary. Refer to the official documentation for details: FortiSwitch Security Feature Configuration
One such option is 'udp-port-eq', which, when enabled, can cause the FortiSwitch to appear offline on the FortiGate. The status can be verified on the FortiGate using the command: 'execute switch-controller get-conn-status'.
This security setting is intended to detect and block potential UDP-based attacks, especially those involving packets with identical source and destination UDP ports.
However, CAPWAP communication between FortiGate and managed FortiSwitch units uses UDP port 5246 as both source and destination. Blocking such traffic disrupts the control channel between FortiGate and FortiSwitch.
Example Packet Captures:
FortiGate Sniffer:
FortiGate# diagnose sniffer packet any "host 1.1.1.2 && port 5246"
1848.221580 1.1.1.1.5246 -> 1.1.1.2.5246: udp 70
FortiSwitch# diagnose sniffer packet internal "port 5246"
3478.088735 internal -- 1.1.1.2.5246 -> 255.255.255.255.5246: udp 228
As observed in the above packet captures, when udp-port-eq is enabled, only one-way traffic from FortiSwitch to FortiGate is visible.
Note:
FortiGate Sniffer:
FortiGate# diagnose sniffer packet any "host 1.1.1.2 && port 5246"
454.763972 1.1.1.2.5246 -> 224.0.1.140.5246: udp 228
FortiSwitch# diagnose sniffer packet internal "port 5246"
3796.088799 internal -- 1.1.1.2.5246 -> 224.0.1.140.5246: udp 228 |
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.