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
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
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
}
Also, is this documented somewhere? Thank you!
User | Count |
---|---|
1011 | |
838 | |
482 | |
440 | |
142 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.