Fortinet white logo
Fortinet white logo

CLI Reference

config service-custom

config service-custom

Description: Configure custom services.

config service-custom

edit <name>

set protocol [TCP | UDP | ICMP | IP]

set protocol number (0 – 254)

set tcp-portrange <dstport_low>[-<dstport_high>:<srcport_low>-<srcport_high>] *available when protocol is set to TCP

set udp-portrange <dstport_low>[-<dstport_high>:<srcport_low>-<srcport_high>] *available when protocol is set to UDP

unset

next

show

abort

end

delete <name>

purge

show

end

show

end

Sample ommand:
FX201E5919000057 (service) # show
config network service
    config service-custom
        edit ALL
            set protocol IP
            set protocol-number 0
        next
Parameter Size Type Size Default
protocol Protocol type based on IANA numbers. option - ip
Option Description
tcp TCP protocol.
udp UDP protocol.
icmp ICMP protocol.
ip IP protocol.
protocol-number IP protocol number. integer 0 - 254 0

config service-custom

config service-custom

Description: Configure custom services.

config service-custom

edit <name>

set protocol [TCP | UDP | ICMP | IP]

set protocol number (0 – 254)

set tcp-portrange <dstport_low>[-<dstport_high>:<srcport_low>-<srcport_high>] *available when protocol is set to TCP

set udp-portrange <dstport_low>[-<dstport_high>:<srcport_low>-<srcport_high>] *available when protocol is set to UDP

unset

next

show

abort

end

delete <name>

purge

show

end

show

end

Sample ommand:
FX201E5919000057 (service) # show
config network service
    config service-custom
        edit ALL
            set protocol IP
            set protocol-number 0
        next
Parameter Size Type Size Default
protocol Protocol type based on IANA numbers. option - ip
Option Description
tcp TCP protocol.
udp UDP protocol.
icmp ICMP protocol.
ip IP protocol.
protocol-number IP protocol number. integer 0 - 254 0