腾讯云跨AZ部署FortigateHA备忘录

随时保存配置

bash 复制代码
config system global
    set admintimeout 480
    set alias "FortiGate-VM64-KVM"
    set gui-auto-upgrade-setup-warning disable
    set hostname "FG-Slave"
    set revision-backup-on-logout enable
    set revision-image-auto-backup enable
    set timezone "Asia/Shanghai"
end

因为不同 AZ 的地址段是不一样的,因此下面的配置不需要同步

bash 复制代码
config system vdom-exception
    edit 1
        set object system.interface
    next
    edit 2
        set object router.static
    next
    edit 3
        set object firewall.vip
    next
    edit 4
        set object firewall.ippool
    next
end


FortiGate port1 是外网接口,对应的是由外向内的数据;

FortiGate port2 对应的是由内向外的数据,安全组要全放通;

FortiGate port3 是 HA 接口,互通的是 HA 交换的数据,安全组;

FortiGate port4 是 MGMT 接口,用于管理,放通 HTTPS,SSH 和 ICMP。

bash 复制代码
config system ha
    set group-id 10
    set group-name "fgha"
    set mode a-p
    set password fortinet
    set hbdev "port3" 50 
    set ha-mgmt-status enable
    config ha-mgmt-interfaces
        edit 1
            set interface "port4"
            set gateway 10.197.3.1
        next
    end
    set override disable
    set priority 200
    set unicast-hb enable
    set unicast-hb-peerip 10.197.12.11
end

config system ha
    set group-id 10
    set group-name "fgha"
    set mode a-p
    set password fortinet
    set hbdev "port3" 50 
    set ha-mgmt-status enable
    config ha-mgmt-interfaces
        edit 1
            set interface "port4"
            set gateway 10.197.13.1
        next
    end
    set override disable
    set priority 100
    set unicast-hb enable
    set unicast-hb-peerip 10.197.2.11
end


相关推荐
CDN36015 分钟前
各种网站高防服务器选型:360CDN 高防够用吗?
服务器·网络·安全
嵌入式-老费16 分钟前
vivado hls的应用(带ddr读取的ip)
服务器·网络·tcp/ip
软件工程小施同学16 分钟前
区块链论文速读 CCF A--CCS 2025 (2) 附pdf下载
网络·pdf·区块链
Barkamin21 分钟前
HTTPS的工作过程
网络协议·http·https
小鱼不会骑车31 分钟前
TCP 核心知识精讲:是什么 · 为什么 · 怎么做
网络·网络协议·tcp/ip
Du_chong_huan37 分钟前
1.6 面对攻击的网络 | 《计算机网络:自顶向下方法》精读版
网络·安全·php
cocologin1 小时前
防火墙虚拟系统实验【华为】
网络
kgduu1 小时前
js之网络请求与远程资源
开发语言·javascript·网络
Bling_Bling_11 小时前
【无标题】
前端·网络协议
虾..1 小时前
网络其他重要协议或技术
开发语言·网络·php