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


相关推荐
爱尔兰极光几秒前
计算机网络--网络基础概述
网络·计算机网络
Lvan的前端笔记22 分钟前
python:用 dotenv 管理环境变量&生产环境怎么管理环境变量
网络·数据库·python
卓豪终端管理27 分钟前
构建主动免疫:终端零日漏洞防护新体系
网络·安全·web安全
HappRobot40 分钟前
tcpdump抓包分析
网络·测试工具·wireshark
爬山算法1 小时前
Netty(20)如何实现基于Netty的WebSocket服务器?
服务器·websocket·网络协议
zfj3211 小时前
springmvc websocket 的用法
网络·websocket·网络协议·springmvc
莫叫石榴姐1 小时前
ast 在 Dify 工作流中解析 JSON 格式数据的深度解析
大数据·网络·安全·json
科技块儿1 小时前
如何使用IP数据云数据库接入流量监控?
数据库·网络协议·tcp/ip
沉醉不知处1 小时前
远程连接虚拟机,设置网络后,ip不变
服务器·网络·tcp/ip
咕噜企业分发小米1 小时前
阿里云与华为云在基因测序数据存储上哪个更好?
服务器·阿里云·腾讯云