- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
filter on subnet in event handler
Something like
srcip==192.168.0.0/16
doesn't seem to be working in a generic text filter.
Is it at all possible any way ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For generic text filter, please try this:
srcip ~ 192\.168\.[0-9]+\.[0-9]+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For generic text filter, please try this:
srcip ~ 192\.168\.[0-9]+\.[0-9]+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
Didn't realize this uses regexp syntax. Manuals really don't mention anything...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good point. We have just made a note to update the section on Generic Text Filter to mention that it uses regex syntax.
Fortinet Technical Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
kylezhang wrote:I would actually useFor generic text filter, please try this:
srcip ~ 192\.168\.[0-9]+\.[0-9]+
srcip ~ 192\.168\.[0-9]{1-3}\.[0-9]{1-3}
The difference is the original would accept one or more characters in the last two octets where the latter will accept between one and three in each. Just a bit more control but less chance for false positives.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
