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


相关推荐
LyaJpunov2 分钟前
从颜料混色到网络安全:DH算法的跨界智慧
网络·安全·web安全
Waitccy6 分钟前
HTTP 与 HTTPS 的深度剖析:差异、原理与应用场景
网络协议·http·https·php
Nueuis28 分钟前
微信小程序使用腾讯云COS SDK实现用户头像上传
微信小程序·小程序·腾讯云
庸子31 分钟前
Docker容器网络架构深度解析与技术实践指南——基于Linux内核特性的企业级容器网络实现
网络·docker·架构
海尔辛1 小时前
学习黑客MAC 地址
网络·学习·macos
YJQ99671 小时前
构建高可用性的LVS-DR群集:实现无缝的负载均衡与故障转移
服务器·网络·lvs
GOATLong1 小时前
Socket 编程 TCP
linux·服务器·开发语言·网络·c++·网络协议·tcp/ip
稳联技术1 小时前
矿井设备通信破局:ModbusTCP转DeviceNet网关应用实践
网络
山乐191311 小时前
笔记本电脑实现网线内网 + Wi-Fi外网同时使用的配置方案
网络·windows·tcp/ip
猴子请来的逗比4891 小时前
代理服务器
linux·服务器·网络·学习