Description
This article describes how to configure port forwarding as per the below topology.
Scope
FortiGate.
Solution
From GUI.
1) To create a VIP object, go to Policy and Objects -> Virtual IPs and select 'Create New'.
# config firewall vip
edit "VIP"
set extip 1.1.1.1
set extintf "port3"
set portforward enable (depends on requirement)
set mappedip 10.0.0.10
set extport 80 (depends on requirement)
set mappedport 80 (depends on requirement)
next
end
# config firewall policy
edit 1
set srcintf "port3"
set dstintf "port4"
set srcaddr "all"
set dstaddr "Test"
set action accept
set schedule "always" (depends on requirement)
set service "ANY" (depends on requirement)
set nat enable (depends on requirement)
next
end
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 2023 Fortinet, Inc. All Rights Reserved.