FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nkorea
Staff
Staff
Article Id 400303
Description This article describes how to add multiple Service/Server mappings for TCP forwarding in ZTNA for the GUI.
Scope

FortiOS v7.4.2 and later.

FortiOS v7.6.0 and later.

Solution

To add multiple Service/Server mappings for TCP forwarding in ZTNA, real server mappings can now be configured directly from the Server/Server Mapping slide-in page in the GUI.

 

To enable this, the second real server entry must be created using the CLI. After this is done, further entries may be configured using either the CLI or the GUI. This behavior is by design.

 

In the example deployment, a ZTNA Server 'ZTNA_RDP' has one TCP Forwarding Service/Server mapping already with the server name bcc056:

 

config firewall address
    edit "bcc056"
        set subnet 172.16.1.14 255.255.255.255
    next
end

 

nkorea_7-1752184410696.png

 

When attempting to create a new Service/Server Mapping, the TCP Forwarding option is grayed out and cannot be selected.

 

nkorea_8-1752184410705.png

 

The second server can be added via CLI as shown below.

 

Configure a firewall address matching the second internal server's IP address.

 

config firewall address

    edit To_HUB_NA_local_subnet_1

        set subnet 172.16.1.15 255.255.255.255
    next
end


Configure the second service/server mapping in the CLI; the option to add multiple service/server mappings for TCP forwarding becomes available in the GUI, as shown below.

 

config firewall access-proxy

    edit "ZTNA_RDP"

        set vip "ZTNA_RDP"

            config api-gateway

                edit 1

                    set url-map "/tcp"

                    set service tcp-forwarding

                        config realservers

                            edit 1

                                set address "bcc056"

                                set mappedport 3389 445

                            next

                            edit 2

                                set address "To_HUB_NA_local_subnet_1"

                                set mappedport 3389

                            next

                        end

                next

            end

    next

end

 

nkorea_9-1752184410710.png

 

Go to Policy & Objects -> ZTNA -> ZTNA Server -> Edit ZTNA Server -> Select 'Create New' Service/Server Mapping.

Multiple service/server mappings can now be added for TCP forwarding in the GUI.

 

nkorea_10-1752184410713.png