FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
Khidzir_MN
Staff
Staff
Article Id 252498
Description This article describes how to setup a single server policy with multiple ports.
It is maybe necessary to preconfigure other respective server policy setup and refer to the documentation at the end of this article for more information on configuring the server policy.
Scope FortiWeb and FortiWeb VM.
Solution

It is necessary to set up a single server policy with multiple ports.

 

For example, there is a requirement to setup website access as below:

https://www.example.com
https://www.example.com:10443
https://www.example.com:8443

 

One option is to set up multiple server policies and specify the port accordingly.

 

Another option is to set up a single server policy with multiple ports. 

The Custom Service feature may be used for the requirement.


From GUI:

 

1) Create Custom Service:

- Go to Server Objects -> Service -> Custom (tab).
- Select 'Create New'. Provide the preferred Name. In this example, 'Multi_Ports' is used as the name.
- Select the Protocol TCP and specify the ports accordingly. In this example, the ports are 443, 10443, and 8443.
- The ports are separated by space. Refer documentation link at the end of this article for more options on specifying the ports.
- Select 'OK'.

 

custom_port.PNG

 

2) Apply the custom port at the respective server policy accordingly (HTTP or HTTPS). For this example,  HTTPS is used.

 

server_policy.PNG


 From CLI

 

# config server-policy service custom
    edit "Multi_Ports"
        set port 443 10443 8443
    next

end

 

# config server-policy policy
    edit "server_policy"
        set https-service Multi_Ports
    next

end

 

Refer to the below documentation for more information on configuring server policy:

https://docs.fortinet.com/document/fortiweb/7.2.1/administration-guide/201872/configuring-an-http-se...

 

Refer to the below documentation for more information on customer service

https://docs.fortinet.com/document/fortiweb/7.2.1/administration-guide/163547/defining-your-network-...

Contributors