Description | This article describes that there may be a requirement where FortiGate is in the middle of 2 other routers/ firewalls where those devices need to be configured for site-to-site VPN. |
Scope | FortiGate v6.0 or above. |
Solution |
Diagram:
The configuration for that requirement in FortiGate is mentioned here. FortiGate port2 is the public-facing interface which connected to the remote device over the internet and port3 is connected internal device.
IKE service config.
Fortigate # config firewall service custom
Fortigate (custom) # edit "IKE"
Fortigate (IKE) # show
config firewall service custom
edit "IKE"
set category "Tunneling"
set udp-portrange 500 4500
next
end
Fortigate (IKE) #
VIP config.
Fortigate # config firewall vip
Fortigate (vip) # edit "To-internal"
Fortigate (To-internal) # show
config firewall vip
edit "To-FW4"
set uuid 8b3e2fa6-4350-51ee-1149-0f96fd9c92a1
set service "IKE"
set extip 172.16.1.2
set mappedip "172.16.2.2"
set extintf "port2"
next
end
Fortigate (To-internal) #
Firewall policy config.
Fortigate # config firewall policy
Fortigate (policy) # edit "2"
Fortigate (2) # show
config firewall policy
edit 2
set name "To-internal"
set uuid a5f530ec-4350-51ee-9e54-ea52191495e2
set srcintf "port2"
set dstintf "port3"
set action accept
set srcaddr "all"
set dstaddr "To-internal"
set schedule "always"
set service "IKE"
set logtraffic all
next
end
Fortigate (2) #
Fortigate # config firewall policy
Fortigate (policy) # edit "1"
Fortigate (1) # show
config firewall policy
edit 1
set name "Internet"
set uuid 669f8e24-4350-51ee-ed99-fea711a87459
set srcintf "port3"
set dstintf "port2"
set action accept
set srcaddr "all"
set dstaddr "all"
set schedule "always"
set service "ALL"
set logtraffic all
set nat enable
next
end
Fortigate (1) #
|
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.