Description | This article describes the scenario for VIP port forwarding in an NGFW policy-based central NAT setup. |
Scope | FortiGate Central NAT. |
Solution |
In the scenario of 2 DNATs are configured. One DNAT with port forwarding but the other DNAT without.
If the DNAT without port forwarding is on top, then it will not match the port forwarding VIP.
Debug flow:
id=20085 trace_id=31 func=ipv4_fast_cb line=53 msg="enter fast path"
The firewall will not do the port mapping from 33389 to 3389.
It is necessary to move the VIP object with port forwarding to the top from GUI.
Or from CLI:
# config firewall vip move test2 before test1 end
With the above changes, FortiGate will match test2 prior to test 1.
Debug flow:
id=20085 trace_id=36 func=ipv4_fast_cb line=53 msg="enter fast path"
Now the port is forwarding from 33389 to 3389. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.