腾讯云跨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


相关推荐
海拥✘2 小时前
深入理解 IP 地址:概念、分类与日常应用
网络·网络协议·tcp/ip
Miracle&2 小时前
1.TCP/IP模型:各层协议(重点TCP/UDP)
网络协议·tcp/ip·udp
Miracle&3 小时前
2.TCP深度解析:握手、挥手、状态机、流量与拥塞控制
linux·网络·tcp/ip
liulilittle3 小时前
IP校验和算法:从网络协议到SIMD深度优化
网络·c++·网络协议·tcp/ip·算法·ip·通信
c&0xff003 小时前
Flink反压问题
网络·flink
7ACE4 小时前
Wireshark TS | 接收数据超出接收窗口
网络协议·tcp/ip·wireshark
深圳多奥智能一卡(码、脸)通系统4 小时前
基于多奥(DAIC)品牌的IC卡电梯门禁系统(梯控)基础配置清单,整合核心硬件、软件及安全组件,确保系统可独立运行并支持未来扩展
网络
googleccsdn4 小时前
ESNP LAB 笔记:配置MPLS(Part4)
网络·笔记·网络协议
tan180°4 小时前
Boost搜索引擎 网络库与前端(4)
linux·网络·c++·搜索引擎
Dontla5 小时前
Docker多共享网络配置策略(Docker多网络、Docker networks、Docker Compose网络、Docker网络、Docker共享网络)
网络·docker·容器