Skip to main content
mp2
Staff
Staff
July 18, 2019

Troubleshooting Tip: Getting alarm message 'A RADIUS message with the Code field set to 4, which is not valid, was received on port 1812 from RADIUS client' from the FortiWLC

  • July 18, 2019
  • 0 replies
  • 8194 views
Description
This article describes the reason of the appearance and how to avoid the alarm message “A RADIUS message with the Code field set to 4, which is not valid, was received on port 1812 from RADIUS client” from FortiWLC.

Scope
KB Article Type - Design

Related Products - All controller and AP models

Related Software Versions - All S/W versions

Keywords – Radius, Alarm

Solution

This alarm message occurs if a radius server with port 1812 is mapped as an accounting server to the ESS-profile as shown below:

Radius server with port 1812:




Radius Accounting server on ESS profile:



Basically radius server uses UDP port 1812 for authentication and not for accounting.

Since radius accounting is mapped with an authentication port number, the alarm message is triggered.

Once the port of the radius server used for accounting is changed to port 1813, the alarm message disappears.

However, if the same server is used for radius authentication and accounting, then create two instance of radius server on the FortiWLC with the same IP address: one with the UDP port 1812 and the other with the UDP port 1813.

Then, map the first instance for the authentication and the other one for accounting respectively.


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.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!