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


相关推荐
骥龙1 小时前
3.10、构建网络防线:防火墙、WAF 与蜜罐实战
服务器·网络·数据库·网络安全
国科安芯2 小时前
国产RISC-V架构MCU在工控系统中的节能性分析
网络·单片机·嵌入式硬件·fpga开发·性能优化·架构·risc-v
云宏信息3 小时前
运维效率提升实战:如何用轻量化云管平台统一纳管与自动化日常资源操作
运维·服务器·网络·架构·云计算
TG:@yunlaoda360 云老大4 小时前
如何了解腾讯云国际站代理商FL有什么跨境优势呢?
网络·云计算·腾讯云
飞Link5 小时前
GDN:深度学习时代的图偏差网络异常检测全解析
网络·人工智能·深度学习
破刺不会编程6 小时前
socket编程TCP
linux·运维·服务器·开发语言·网络·网络协议·tcp/ip
gaize12136 小时前
腾讯云锐驰和蜂驰的区别
服务器·腾讯云
gxh19926 小时前
4步将HTTP请求升级为HTTPS
运维·服务器·网络协议·http·https
BullSmall6 小时前
日志打印IP:安全与合规的最佳实践
网络·tcp/ip·安全
易天ETU8 小时前
短距离光模块 COB 封装与同轴工艺的区别有哪些
网络·人工智能·光模块·光通信·cob·qsfp28·100g