Skip to main content
anandhubs
New Member
April 18, 2023
Solved

Command

  • April 18, 2023
  • 2 replies
  • 1890 views

How to find which policy is used for a specific traffic( from a particular source to particular destination.) using cli

Best answer by knagaraju

Hello anandhubs,

Below is the command to check policy lookup from cli


diagnose firewall iprope lookup <src ip> <src port> <dst ip> <dst port> <protocol> <device>

For example
diagnose firewall iprope lookup 192.168.1.1 123 8.8.8.8 443 6 port4


Please let me know if you any additional queries.

2 replies

gfleming
Staff
Staff
April 19, 2023

I don't believe there is a way to do this using CLI. You can use grep to filter your config output but that's about it AFAIK

knagaraju
Staff
knagarajuAnswer
Staff
April 19, 2023

Hello anandhubs,

Below is the command to check policy lookup from cli


diagnose firewall iprope lookup <src ip> <src port> <dst ip> <dst port> <protocol> <device>

For example
diagnose firewall iprope lookup 192.168.1.1 123 8.8.8.8 443 6 port4


Please let me know if you any additional queries.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!