Description |
This article describes how to setup FortiGate-VM A-P HA on AWS within one zone. |
Scope |
Refer to the below documents: Attaching the new VPC Internet gateway. Creating routing tables and associate subnets.
Layout : Port1: External (Public) interface that is connected to the Internet. Port2: Internal Interface that is connected to the Private network. Port3: Dedicated HA Heartbeat Interface. Port4: Dedicated Management Interface. It is not necessary but it allows to connect directly to individual devices in the cluster if the AWS Failover failed for any reason.
Note: To be able to attach at Least 4 Network Interface, the Instances ('VM') size in AWS Must contains at least 4 vCPUs.
Port1 needs to be on the same Subnet. Port2 needs to be on the same Subnet. Port3 needs to be on the same Subnet. Port4 needs to be on the same Subnet.
|
Solution |
Refer to the below document: Deploying FortiGate-VM from AWS marketplace.
Refer to the below document : Adding network interfaces and elastic IP addresses to the FortiGate-VMs.
The below example demonstrates both the FortiGate Instance state is running and Status check 2/2 checks passed
HA Configuration. Primary FGT HA configuration:
PrimaryFGT # config system ha PrimaryFGT (ha) # set mode a-p PrimaryFGT (ha) # set group-name TAC PrimaryFGT (ha) # set hbdev port3 50 PrimaryFGT (ha) # set password fortinet PrimaryFGT (ha) # set session-pickup enable PrimaryFGT (ha) # set session-pickup-connectionless enable PrimaryFGT (ha) # set ha-mgmt-status enable PrimaryFGT (ha) # config ha-mgmt-interfaces PrimaryFGT (0) # set interface port4 -> (Choose the port accordingly). PrimaryFGT (0) # set gateway <class_ip> Class A,B,C ip xxx.xxx.xxx.xxx PrimaryFGT (0) # set gateway x.x.x.x PrimaryFGT (0) # show config ha-mgmt-interfaces edit 1 set interface "port4" set gateway x.x.x.x next end
PrimaryFGT (0) # end
PrimaryFGT (ha) # set unicast-hb enable PrimaryFGT (ha) # set unicast-hb-peerip y.y.y.y (It has to be peer FGT heartbeat IP address). PrimaryFGT (ha) # set priority 200 -> (Priority on the primary should be higher). PrimaryFGT (ha) # end
Secondary Fortigate HA Configuration :
SecondaryFGT # config system ha SecondaryFGT (ha) # set mode a-p SecondaryFGT (ha) # set group-name TAC SecondaryFGT(ha) # set hbdev port3 50 SecondaryFGT (ha) # set password fortinet SecondaryFGT(ha) # set session-pickup enable SecondaryFGT(ha) # set session-pickup-connectionless enable SecondaryFGT(ha) # set ha-mgmt-status enable SecondaryFGT(ha) # config ha-mgmt-interfaces SecondaryFGT (0) # set interface port4 -> (Choose the same port above). PrimaryFGT (0) # set gateway <class_ip> Class A,B,C ip xxx.xxx.xxx.xxx SecondaryFGT(0) # set gateway x.x.x.x SecondaryFGT (0) # show config ha-mgmt-interfaces edit 1 set interface "port4" set gateway x.x.x.x next end
SecondaryFGT (0) # end SecondaryFGT(ha) # set unicast-hb enable SecondaryFGT(ha) # set unicast-hb-peerip a.a.a.a (It has to be peer FGT heartbeat IP address). SecondaryFGT(ha) # set priority 100 SecondaryFGT(ha) # end
FGVM08TM22005241 # diagnose sys ha status HA information Statistics traffic.local = s:0 p:76747 b:19422007 traffic.total = s:0 p:76747 b:19423443 activity.ha_id_changes = 2 activity.fdb = c:0 q:0
Model=80008, Mode=2 Group=0 Debug=0 nvcluster=1, ses_pickup=1, delay=0
[Debug_Zone HA information] HA group member information: is_manage_primary=1. FGVM08TM22005241: Primary, serialno_prio=0, usr_priority=200, hostname=FGVM08TM22005241 FGVM08TM22005240: Secondary, serialno_prio=1, usr_priority=100, hostname=FGVM08TM22005240
[Kernel HA information] vcluster 1, state=work, primary_ip=10.1.3.189, primary_id=0 FGVM08TM22005241: Primary, ha_prio/o_ha_prio=0/0 FGVM08TM22005240: Secondary, ha_prio/o_ha_prio=1/1
FGVM08TM22005241 #
Related document: Deploying FortiGate-VM A-P HA on AWS within one zone. |
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.