Skip to main content
SS1982
Visitor III
January 12, 2022
Question

CLI show commands

  • January 12, 2022
  • 3 replies
  • 5033 views

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. 

 

 

3 replies

akileshc
Staff
Staff
January 12, 2022

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.

Toshi_Esumi
SuperUser
SuperUser
January 12, 2022
SS1982
SS1982Author
Visitor III
January 18, 2022

Thank you for the info, very  useful. 

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.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!