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
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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!
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1502 | |
1011 | |
749 | |
443 | |
209 |
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.