NAC · Troubleshooting

FortiGate Wi-Fi returns CoA-NAK 503 "Session Context Not Found" for MAB clients

Fortinet FortiNAC-F 7.6 · updated 24 Nov 2026 · 1 min read

The problem

After a guest registers on the FortiNAC portal, FortiNAC sends a CoA-Request (Calling-Station-Id, Termination-Action = RADIUS-Request, Session-Timeout) to the FortiGate. The FortiGate answers CoA-NAK with Error-Cause 503 "Session Context Not Found", even though the client is connected (Access-Accept seconds earlier). The client stays in the registration/isolation VLAN unless it happens to reconnect by itself.

The same CoA format works on an 802.1X SSID on the same FortiGate.

How to fix it

Cause
On the tested FortiGate, CoA re-authentication was accepted for 802.1X (WPA-Enterprise) sessions but not for RADIUS MAC-authentication (radius-mac-auth) sessions on an open SSID. Disconnect-Request is accepted for those sessions.

Fix: use Disconnect for the MAB/guest SSID

  1. In FortiNAC, give the guest SSID its own RADIUS response attribute (e.g. a "-Guest" response) and set RFC5176 Mode = System Defined, which sent a Disconnect-Request in this setup. Keep any Custom CoA attribute set that works for the 802.1X SSID on that SSID only.
  2. Make sure the guest response's Authentication attribute group returns the VLAN (see the KB "Access-Accept has no VLAN after registration").
  3. Test:
tcpdump -i any -vv udp port 3799 or udp port 1812

Expected after registration: Disconnect-Request -> Disconnect-ACK -> new Access-Request from the same MAC -> Access-Accept with Tunnel-Private-Group-Id = <guest VLAN>.

  1. On the FortiGate confirm the VLAN:
diagnose wireless-controller wlac -d sta | grep -i -A 20 "<client mac lowercase with colons>"

Check the vlanid field.

On an open guest SSID a disconnect is invisible to the user: the device rejoins the same SSID immediately. (On corporate laptops a disconnect may make Windows join a different saved SSID; that is why 802.1X SSIDs should keep CoA re-auth.)

Before blaming CoA, rule out: the client actually disconnected (check wlac), and CoA leaving FortiNAC from the wrong interface (no reply at all — see the KB on CoA sent from the isolation interface).

Tested on Fortinet FortiNAC-F 7.6. Steps can differ on other versions; take a backup and try changes in a maintenance window. Pavak Technologies shares this as general guidance, without warranty.

Ask an engineer

Still stuck with FortiNAC-F?

Ask Pavak's engineers. We reply within one working day.

We use these details only to reply to you. See our privacy notice.