Fortinet black logo

CLI Reference

server-policy service predefined

server-policy service predefined

Use this command to view a predefined service.

This command only displays predefined services. It cannot be used to modify them. If you attempt to edit the port number and protocol, the appliance will discard your settings.

Predefined Internet services can be selected in a policy in order to define the protocol and listening port of a virtual server. For details, see server-policy policy.

To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For details, see Permissions.

Syntax

config server-policy service predefined

edit "<service_name>"

show

next

end

Variable Description Default

"<service_name>"

Enter the name of a predefined network service, such as HTTP or HTTPS. The maximum length is 63 characters.

To display the list of existing services, enter:

edit ?

No default.

Example

This example shows the default settings for all of the predefined services.

config server-policy service predefined

show


Output:

config server-policy service predefined

edit HTTP

set port 80

set protocol TCP

next

edit HTTPS

set port 443

set protocol TCP

next

end

Related topics

server-policy service predefined

Use this command to view a predefined service.

This command only displays predefined services. It cannot be used to modify them. If you attempt to edit the port number and protocol, the appliance will discard your settings.

Predefined Internet services can be selected in a policy in order to define the protocol and listening port of a virtual server. For details, see server-policy policy.

To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For details, see Permissions.

Syntax

config server-policy service predefined

edit "<service_name>"

show

next

end

Variable Description Default

"<service_name>"

Enter the name of a predefined network service, such as HTTP or HTTPS. The maximum length is 63 characters.

To display the list of existing services, enter:

edit ?

No default.

Example

This example shows the default settings for all of the predefined services.

config server-policy service predefined

show


Output:

config server-policy service predefined

edit HTTP

set port 80

set protocol TCP

next

edit HTTPS

set port 443

set protocol TCP

next

end

Related topics