Created on
11-20-2023
09:31 AM
Edited on
05-21-2024
12:38 AM
By
Jean-Philippe_P
Description | This article describes how to use a POSIX expression to include or exclude a source or destination subnet with a generic text filter. |
Scope | FortiAnalyzer. |
Solution |
A generic filter can be used to exclude or include subnets as a source and/or destination address.
POSIX syntax can be used to represent the subnets and ranges as follows:
In the above:
In this example, the generic text filter expression will be:
srcip!~"10\.[0-9]+\.[0-9]+\.[0-9]+" and srcip!~"192\.168\.[0-9]+\.[0-9]+"and srcip!~"172\.2[0-1]\.[0-9]+\.[0-9]+" |