Description |
This article describes how to configure ZTNA Session-Based Authentication with MFA Token. |
Scope |
During this setup, it was necessary to deploy the Session-based form authentication with MFA.
For log in with support for MFA (FortiToken).
EMS: 7.0.7 FortiGate: 7.0.6 |
Solution |
This type of Session/form based authentication requires MFA and allows users to log in to internal resources. This can be applied to local and remote users.
Lab Setup:
From the client machine, ensure it is able to resolve the domains and the portal domain:
It is possible to use LDAP user or RADIUS user or local user with FortiToken:
Enable 2FA with Token or use Local User Group with 2FA as per lab test below:
Username is abcd Usergroup is LocalEMS
Configure ZTNA Authentication Scheme.
If using LDAP:
config authentication scheme
If using Local User:
edit "LocalZTNA"
These are required:
set method form
config authentication rule
Configure the ZTNA server as per the diagram above.
Create an access proxy virtual host that points to the ZTNA access proxy. The client will be redirected to this page for form authentication:
Enable auth-portal on the access proxy and point it to the virtual host:
Create a ZTNA rule to allow the flow. It possible to use the ZTNA tagging as well to create matching:
Testing.
Test local users with a Token prompt.
Saga-kvm24 # diag test authserver local LocalEMS abcd xxxxxx
Ensure FortiClient is connected to the EMS telemetry and gets the right tag assigned.
Access the w o trigger the authportal site.Ensure Certificate gets prompted for the FortiClient <> EMS cert authentication portion:
It will be redirected to the Auth Portal Page:
Once accepted:
Apply the credentials and Token and it will bring the request to the backend webserver:
Successfully able to load internal Webserver:
Troubleshooting commands:
diag debug application sslvpn -1 diag endpoint record list x.x.x.x diag firewall dynamic list
WAD debug:
diag wad debug enable cat all
The RADIUS authentication with FortiToken will work only if the FortiToken is hosted on the FortiGate. RADIUS with FortiToken or MFA hosted on the FortiAuthenticator or third-party RADIUS server is not supported. Use SAML authentication to use FortiToken hosted in FortiAuthenticator.
Related document: |