Skip to main content
nathan_h
Staff & Editor
Staff & Editor
June 30, 2022

Technical Tip: Web server authentication with FortiAuthenticator 2FA on VIP Policy

  • June 30, 2022
  • 0 replies
  • 1668 views
Description This article describes how to configure VIP Policy with FortiAuthenticator 2-Factor suthentication on VIP Policy.
Scope  
Solution

FortiGate Configuration:

 

1) Configure Radius server (FortiAuthenticator IP).

 

nathan_h_1-1656570105076.png

 

2) Configure group.

 

nathan_h_3-1656570187152.png

 

3) Configure VIP.

 

nathan_h_4-1656570335196.png

 

4) Configure firewall policy.

 

nathan_h_5-1656570370347.png

 

5) Configure on the CLI.

 

# config user setting

# config auth-ports

    edit 1

        set port 8080 # <----- Port should match the External service port on VIP.

    next

end

end

 

# config system global

    set remoteauthtimeout 60

end

 

FortiAuthenticator configuration:

 

1) Create user on FortiAuthenticator with 2FA enabled.

 

nathan_h_0-1656570549306.png

 

2) Configure Radius Client (FortiGate IP).

 

nathan_h_1-1656570581275.png

 

3) Configure Radius policy.

 

nathan_h_2-1656570602862.png

 

nathan_h_4-1656570719116.png

 


Testing.

 

1) Access using the VIP External IP. Login with username and password.

 

nathan_h_5-1656570762075.png

 

2) Enter the FortiToken.

 

nathan_h_6-1656570798291.png

 

3) Successful login.

 

nathan_h_7-1656570818330.png

 

Logs.

 

 FortiGate:

 

nathan_h_8-1656570907225.png

 

FortiAuthenticator:

 

nathan_h_9-1656570963529.png
    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.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!