Skip to main content
fortega
Staff
Staff
September 24, 2025

Technical Tip: How to forward multiple ports with FortiWeb

  • September 24, 2025
  • 0 replies
  • 737 views
Description

This article describes how to forward multiple external ports to multiple internal ports in FortiWeb.

 

There are some scenarios where it is necessary to forward multiple external ports to a single internal web server or multiple internal servers.

Scope FortiWeb.
Solution
  1. Configure a Virtual Server with the desired external IP.

 

Virtual Server.png

 

  1. Configure Server Pools in FortiWeb: one server pool for TCP port 80 and one for 90.
                                               

server pool 1.png

 

Both Server Pools point to the same internal server but different ports.

 

server pool 80.png

 

server pool 90.png

 

  1. Configure the Content Routing: one for each server pool.

 

Content routing.png

 

  1. Configure the Custom Service with TCP ports 80 and 90. When this object is created, the ports must be separated by a space in the Port field.

01a.png

 

custom port.png

 

CLI commands:

 

config server-policy service custom
    edit "multiport"
        set port 80 90
        set protocol TCP
    next
end

 

  1. Configure Server Policy and set the Deployment Method to 'HTTP Content Routing', then select the Content Routing and Service created in steps 3 and 4.

 

Server Policy 1.png

 

  1. In the results, traffic is forwarded from the Virtual Server to the Internal Server using TCP ports 80 and 90.

     

curl 80.png

 

curl 90.png

 

Related documents:

server-policy http-content-routing-policy 

server-policy policy