Configuring a ZTNA Profile
The ZTNA Profile is the ZTNA policy used to enforce access control to HTTPS virtual servers. ZTNA profiles consist of one or more ZTNA rules that determine the Source IP and ZTNA tags that are allowed to access, and the resulting action to take.
After you have created a ZTNA profile, you can reference the ZTNA profile in an HTTPS server policy.
Before you begin:
- You must have registered the FortiWeb device through the FortiClient EMS connector. For more information, see Zero Trust Network Access (ZTNA) and Configuring FortiClient EMS Connector for ZTNA.
- Verify if the ZTNA tags are shown in the Zero Trust Access > ZTNA Profile > ZTNA Tags tab in FortiWeb's GUI. These tags are automatically synchronized from FortiClient EMS.
- You must have Read-Write permission for Server Policy configuration.
- You must have enabled ZTNA in System > Config > Feature Visibility.
To create and configure a ZTNA rule:
- Go to Zero Trust Access > ZTNA Profile, then select the ZTNA Rule tab.
- Click Create New to display the configuration editor.
- Enter a name for the rule.
- Select the action that FortiWeb will take if the request matches the conditions.
- Alert & Deny—Block the request (or reset the connection) and generate an alert email and/or log message.
You can customize the web page that FortiWeb returns to the client with the HTTP status code. For details, see Customizing error and authentication pages (replacement messages).
- Deny (no log)—Block the request (or reset the connection).
- Accept—Allow the request. Do not generate an alert and/or log message.
- Alert & Deny—Block the request (or reset the connection) and generate an alert email and/or log message.
- Click OK.
- Click Add Condition.
- Configure if the request should match the Source IP, GEO IP, or ZTNA tags.
g
Parameter
Description
Source IP If source IP is selected, you need to enter one of the following values in Source IPv4/IPv6/IP Range:
- A single IP address that a client source IP must match, such as a trusted private network IP address (e.g. an administrator’s computer,
192.0.2.109
). - A range of addresses (e.g.,
192.0.2.1-192.0.2.256
or10:200::10:1-10:200:10:100
).
GEO IP
- Select the countries to match. FortiWeb matches the traffic from the countries you select.
ZTNA Tags Select the ZTNA tags to match.
All means the request only matches if it has all tags specified; Any means the request matches if it has any of the tags specified.
- A single IP address that a client source IP must match, such as a trusted private network IP address (e.g. an administrator’s computer,
- Click OK.
Repeat the steps above if you want to add more conditions.
If multiple conditions are added in one ZTNA rule, the matching logic is:
-
For conditions in different types (Source IP, GEO and ZTNA Tags), their relationship is ALL.
-
For conditions in the same type, their relationship is OR.
If a request matches with the conditions specified in the rule, FortiWeb will take corresponding actions specified in the rule.
The ZTNA rule should be referenced in a ZTNA profile.
To create and configure a ZTNA profile:
- Go to Zero Trust Access > ZTNA Profile, then select the ZTNA Profile tab.
- Click Create New to display the configuration editor.
- Enter a name for the profile.
- Select the default action that FortiWeb will take if the request matches the rules.
- Alert & Deny—Block the request (or reset the connection) and generate an alert email and/or log message.
You can customize the web page that FortiWeb returns to the client with the HTTP status code. For details, see Customizing error and authentication pages (replacement messages).
- Deny (no log)—Block the request (or reset the connection).
- Accept—Allow the request. Do not generate an alert and/or log message.
- Alert & Deny—Block the request (or reset the connection) and generate an alert email and/or log message.
- Click OK.
- Click Create new.
- Select the ZTNA rule you have created.
- Click OK.
- Repeat the steps above to add multiple rules.
If multiple rules are added in one ZTNA profile, the matching logic is:
-
The rules are matched from the top to the bottom.
-
Once a rule is matched, all the rules below it will be skipped.
If a request matches a rule, the action specified in the rule will be taken.
If a request doesn't match any of the rules, the default action specified in the profile will be taken.
Apply the ZTNA profile to a server policy. Ensure the corresponding Client SSL profile is enabled for client certificate verification. For details, see Configuring virtual servers and Configuring client SSL profiles.