Fortinet black logo

CLI Reference

firewall service custom

firewall service custom

Use this command to view the list of custom services. If you do not specify a <service_name> the command lists all of the pre-defined services.

Syntax

get firewall service custom

This lists the services.

To view details about all services

config firewall service custom

show full-configuration

To view details about a specific service

This example lists the configuration for the ALL_TCP service:

config firewall service custom

edit ALL_TCP

show full-configuration

Example output

This is a partial output.

get firewall service custom

== [ ALL ]

name: ALL

== [ ALL_TCP ]

name: ALL_TCP

== [ ALL_UDP ]

name: ALL_UDP

== [ ALL_ICMP ]

name: ALL_ICMP

== [ ALL_ICMP6 ]

name: ALL_ICMP6

== [ GRE ]

name: GRE

== [ AH ]

name: AH

== [ ESP ]

name: ESP

== [ AOL ]

name: AOL

== [ BGP ]

name: BGP

== [ DHCP ]

name: DHCP

== [ DNS ]

name: DNS

== [ FINGER ]

name: FINGER

firewall service custom

Use this command to view the list of custom services. If you do not specify a <service_name> the command lists all of the pre-defined services.

Syntax

get firewall service custom

This lists the services.

To view details about all services

config firewall service custom

show full-configuration

To view details about a specific service

This example lists the configuration for the ALL_TCP service:

config firewall service custom

edit ALL_TCP

show full-configuration

Example output

This is a partial output.

get firewall service custom

== [ ALL ]

name: ALL

== [ ALL_TCP ]

name: ALL_TCP

== [ ALL_UDP ]

name: ALL_UDP

== [ ALL_ICMP ]

name: ALL_ICMP

== [ ALL_ICMP6 ]

name: ALL_ICMP6

== [ GRE ]

name: GRE

== [ AH ]

name: AH

== [ ESP ]

name: ESP

== [ AOL ]

name: AOL

== [ BGP ]

name: BGP

== [ DHCP ]

name: DHCP

== [ DNS ]

name: DNS

== [ FINGER ]

name: FINGER