Fortinet white logo
Fortinet white logo

CLI Reference

config service-custom

config service-custom

Description: Configures 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
Show
End
Sample ommand:
FX201E5919000057 (service) # show
config network service
    config service-custom
        edit ALL
            set protocol IP
            set protocol-number 0
        next

config service-custom

config service-custom

Description: Configures 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
Show
End
Sample ommand:
FX201E5919000057 (service) # show
config network service
    config service-custom
        edit ALL
            set protocol IP
            set protocol-number 0
        next