- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the REST API endpoint for diag firewall iprope lookup?
Hi all,
Looking to run the diag firewall iprope lookup command via REST API. Any suggestions?
Technical Tip: Trace which firewall policy will ma... - Fortinet Community
Thanks,
Austin
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @austindcc ,
Can you try to use, /firewall/policy-lookup?
Example: # diag firewall iprope lookup 192.168.111.35 50000 192.168.121.102 80 tcp v111
GET https://x.x.x.x/api/v2/monitor/firewall/policy-lookup?sourceip=192.168.111.35&sourceport=50000&dest=192.168.121.102&destport=80&protocol=tcp&srcintf=v111
Created on ‎03-05-2024 06:45 AM Edited on ‎03-05-2024 06:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm getting this, does that mean there are no policies that match the traffic?
{
'http_method': 'GET',
'results': {'success': False},
'vdom': 'root',
'path': 'firewall',
'name': 'policy-lookup',
'action': '',
'status': 'success',
'serial': 'FG201XXXXXXXX',
'version': 'v7.0.14',
'build': 601
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, is this documented somewhere? Thank you!
