create account

FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION by hashem-s

View this thread on: hive.blogpeakd.comecency.com
· @hashem-s ·
$0.88
FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION
FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION
In this document we describe how to cluster two Fortigate devices and then make virtualization in this cluster with VDOMS and then making virtual cluster to load balance traffic between two deferent instances of devices.
In this scenario we use FG-300C as Fortigate firewall and cisco 3750X as switches.
In fortigates we will define to deferent VDOMs. EXRTRANET and INTRANET.
Please note to the following diagram:
![0.jpg](https://steemitimages.com/DQmVCgSqHuxwEbBQZYr9UE6Fmtmi1L5h2jYRPMr1b1brPa9/0.jpg)
As you can see in this scenario we have a stack switch in our network. The concept of connectivity in our scenario is that interfaces in firewall 1 are connected to interfaces in Switch member 1 and so on interfaces on firewall 2 are connected to interfaces in switch member 2. 
In this scenario we will use VLAN plan as follow
VLAN20 for EXTRANET-INSIDE zone.
VLAN21 for EXTRANET-OUTSIDE zone.
VLAN22 for INTRANET-INSIDE zone.
VLAN23 for INTRANET-OUTSIDE zone.

Let’s start to configuring switches:
The first step is VLAN configuration.
![1.JPG](https://steemitimages.com/DQmZsKVnD23iZiemHz3mLNyTYNPt6KbYpnBF9mJaBTCFmT1/1.JPG)
Now we should assign VLANs to interfaces.
!
interface GigabitEthernet1/0/5
 description <<FG1- EXTRANET-INSIDE -INTERFACE>>
 switchport access vlan 20
 switchport mode access 
end  
!
interface GigabitEthernet1/0/6
 description <<FG1 EXTRANET-OUTSIDE -INTERFACE>>
 switchport access vlan 21
 switchport mode access 
end  
!
interface GigabitEthernet1/0/2
 description <<FG1- INTRANET-INSIDE -INTERFACE>>
 switchport access vlan 22
 switchport mode access 
end  
!
interface GigabitEthernet1/0/6
 description <<FG1 INTRANET-OUTSIDE -INTERFACE>>
 switchport access vlan 23
 switchport mode access 
end
!
And like this method we should configure interfaces for second firewall:
!
interface GigabitEthernet2/0/5
 description <<FG1- EXTRANET-INSIDE -INTERFACE>>
 switchport access vlan 20
 switchport mode access 
end  
!
interface GigabitEthernet2/0/6
 description <<FG1 EXTRANET-OUTSIDE -INTERFACE>>
 switchport access vlan 21
 switchport mode access 
end  
!
interface GigabitEthernet2/0/2
 description <<FG1- INTRANET-INSIDE -INTERFACE>>
 switchport access vlan 22
 switchport mode access 
end  
!
interface GigabitEthernet2/0/6
 description <<FG1 INTRANET-OUTSIDE -INTERFACE>>
 switchport access vlan 23
 switchport mode access 
end
!
Now it is time to configure HA in firewalls. As you can see in following image we use default heartbeat links. (Port3 and port4). For security reasons I masked some information.
![2.jpg](https://steemitimages.com/DQmX8WGVLpcp8ubPfQGgwLVtoyLUZ8ehLyp3rnotLzNpnaL/2.jpg)
Follow these configuration on both devices:

FG-1 # config global

FG-1 (global) # config system ha

FG-1 (ha) # show
config system ha
    set group-id 1
    set group-name "FG-CLUSTER"
    set mode a-p
    set password ENC 4Lye/lPUw1UNn/O1unxY3hmO+
    set vcluster2 enable
    set override enable
    set priority 100
        config secondary-vcluster
            set override enable
            set priority 200
            set vdom "INTRANET"
        end
end
And make mirror of this configuration on 2ND device:
FG-2 #
FG-2 # config global
FG-2 (global) # config system ha
FG-2 (ha) # show
config system ha
    set group-id 1
    set group-name "FG-CLUSTER"
    set mode a-p
    set password ENC WMDvKIyun1ryvO5EPnIiuPendu7zeruS7
    set vcluster2 enable
    set override enable
    set priority 200
        config secondary-vcluster
            set override enable
            set priority 100
            set vdom "EXTRANET"
        end
end
As you can see I enable Virtual clustering in my HA. This feature help me to load balance traffics of various VDOMs in deferent cluster members.
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorhashem-s
permlinkfortigate-ha-and-virtual-cluster-configuration
categoryfortigate
json_metadata{"tags":["fortigate","ha","cluster","network","firewall"],"image":["https://steemitimages.com/DQmVCgSqHuxwEbBQZYr9UE6Fmtmi1L5h2jYRPMr1b1brPa9/0.jpg","https://steemitimages.com/DQmZsKVnD23iZiemHz3mLNyTYNPt6KbYpnBF9mJaBTCFmT1/1.JPG","https://steemitimages.com/DQmX8WGVLpcp8ubPfQGgwLVtoyLUZ8ehLyp3rnotLzNpnaL/2.jpg"],"app":"steemit/0.1","format":"markdown"}
created2017-07-16 13:19:39
last_update2017-07-16 13:19:39
depth0
children3
last_payout2017-07-23 13:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.861 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,773
author_reputation12,388,266,150
root_title"FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id8,668,537
net_rshares176,695,498,009
author_curate_reward""
vote details (56)
@learnandgrow ·
great post...i made a special thanking post including you as special ..please check in my blog
properties (22)
authorlearnandgrow
permlinkre-hashem-s-fortigate-ha-and-virtual-cluster-configuration-20171029t133448382z
categoryfortigate
json_metadata{"tags":["fortigate"],"app":"steemit/0.1"}
created2017-10-29 13:34:51
last_update2017-10-29 13:34:51
depth1
children0
last_payout2017-11-05 13:34:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length94
author_reputation14,597,806,002,352
root_title"FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,876,608
net_rshares0
@mahdiyari ·
Glad to see Iranians at Steemit :)
properties (22)
authormahdiyari
permlinkre-hashem-s-fortigate-ha-and-virtual-cluster-configuration-20170716t183923937z
categoryfortigate
json_metadata{"tags":["fortigate"],"app":"steemit/0.1"}
created2017-07-16 18:40:21
last_update2017-07-16 18:40:21
depth1
children1
last_payout2017-07-23 18:40:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length34
author_reputation199,864,818,197,856
root_title"FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,693,953
net_rshares0
@hashem-s ·
me too
πŸ‘  
properties (23)
authorhashem-s
permlinkre-mahdiyari-re-hashem-s-fortigate-ha-and-virtual-cluster-configuration-20170717t041210011z
categoryfortigate
json_metadata{"tags":["fortigate"],"app":"steemit/0.1"}
created2017-07-17 04:12:09
last_update2017-07-17 04:12:09
depth2
children0
last_payout2017-07-24 04:12:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6
author_reputation12,388,266,150
root_title"FORTIGATE HA AND VIRTUAL CLUSTER CONFIGURATION"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,730,619
net_rshares0
author_curate_reward""
vote details (1)