Skip to main content
tyang
Staff
Staff
Oct 16, 2026 12:20 PM UTC

Technical Tip: Configuring basic Friend-or-Foe access control in FortiNAC-F

Description

This article describes how to place unregistered endpoints in a Registration VLAN and allow registered endpoints onto the production network. It covers the selector-based configuration in 7.6.7 and the legacy configuration in 7.4.4.

Scope

FortiNAC-F 7.6.7 and 7.4.4.

Solution

This example uses wired RADIUS MAC authentication with the following VLANs:

Endpoint status

VLAN

Rogue / unregistered

Registration — VLAN 11

Registered and normal, with no overriding policy

Production — VLAN 77


Before starting, confirm that RADIUS authentication and dynamic VLAN assignment are configured on the switch. Both VLANs must be available, and the Registration network must provide the required DHCP, DNS, and portal access.


  1. FortiNAC-F v7.6.7 — Selector-based configuration:

For upgraded systems, confirm that the test device has Device Legacy Mode set to OFF. Do not disable Global Legacy Mode just for testing; that change is irreversible.

See: FortiNAC-F 7.6.7 - Device Migration Guide - Support for RADIUS-only Devices


  • Configure the VLAN mapping:

Go to Network -> Configuration -> Logical Networks -> Logical VLAN Mapping Configuration.

Create or edit the mapping used by the test switch:

Logical Network

Network Access

Access Value

Registration

Enforce

VLAN ID 11

Default

Enforce

VLAN ID 77


Leave CLI Configuration disabled for this RADIUS example:

96fa1e3d.png


  • Configure RADIUS and selectors:

Under Network -> Configuration -> RADIUS -> Configuration, select or create the RADIUS configuration and assign the intended Virtual Server.

Open the Response Attributes tab and configure:

a9ef7748.png


Select OK to save.

VLANs 11 and 77 are defined in the Logical VLAN Mapping Configuration, not in this Response Attribute configuration.


  • Configure the selectors:

Go to Network -> Configuration -> Configuration Selectors.

Configure the following selectors:

6a09fab1.png


8d9fdd90.png


70e3b6c3.png


Although the target names are identical, each selector references its corresponding configuration type.

Save the selectors. If broader rules also match the switch, place these specific rules above them. Rank 1 has the highest priority.


  • Enable Forced Registration:

Use a port group containing the test access ports. The example below uses FoF-Test-Ports; replace it with the actual group name.

Go to Network -> Configuration -> State Based Access Control Rules. Edit Forced Registration, enable Status, and configure:

bf368197.png


Review existing conditions and preserve those required by other networks.

The three configuration selectors select the settings used by the switch. The Forced Registration rule determines whether registration isolation applies at the endpoint’s connection point.


  • Set the port’s Default VLAN:

In Network -> Inventory, right-click the switch and select Network Access/VLANs -> Edit Default.

Set port1 -> Default VLAN = 77, then apply the change. Also confirm that VLAN Switching is enabled under the Element tab.

In this test, port1 initially showed VLAN 11. After changing it to 77, Port Changes recorded Reason: Default, VLAN: 77.

ac7a61c0.png


See: FortiNAC-F 7.6.0 - Network access/VLANs - Adminitration Guide


  1. FortiNAC-F 7.4.4 — Legacy configuration:

In 7.4.4, configure the VLAN values under the switch’s Model Configuration, rather than using the 7.6.7 Logical VLAN Mapping Selector:

  • Set Registration to Enforce, VLAN 11.

  • Go to Network → Inventory, right-click the FortiSwitch, and select Network Access/VLANs → Edit Default. Set the Default VLAN for port1 to 77, then select Apply.

  • Add port1 to the Forced Registration system group through its Group Membership settings.

c8e9989c.png


  1. Verification:

  • Before registration:

Connect an unregistered test endpoint to port1. Confirm that:

  • FortiNAC identifies the endpoint as Rogue on the correct port.

  • The port changes to VLAN 11.

  • The endpoint obtains an IP address from the registration network and can access the Portal.


  • After registration:

Complete Portal registration. Without unplugging the network cable, confirm that:

  • The endpoint becomes Registered.

  • The port changes to VLAN 77.

  • The endpoint obtains a production IP address and can access the permitted network.

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024