Hello All,
Is there a cli command that show all the allowed ports in a policy for a specific VLAN please?
For example, I would like to know if the ports are open like 80, 443,554, 5000 and etc is open?
Thank you.
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,
Basically, on the Firewall, all ports are closed by default; afterward, when needed the relevant services are allowed on appropriate IPv4 policies.
Example:
config firewall policy
edit 1
set name "LAN-WAN"
set srcintf "lan"
set dstintf "wan1"
set action accept
set srcaddr "all"
set dstaddr "all"
set schedule "always"
set service "HTTPS" <-- Service
set nat enable
next
end
config firewall service custom
edit "HTTPS"
set category "Web Access"
set tcp-portrange 443 <-- Ports allowed in the service
next
end
Commands to verify the service:
# sh firewall service custom "HTTPS
I hope this would have been useful.
This might work as a tool for your purpose: "diag firewall iprope lookup".
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Trace-which-firewall-policy-will-match-bas...
Thank you for the info, very useful.
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 |
---|---|
1734 | |
1107 | |
752 | |
447 | |
240 |
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.