FortiGate - VDOM

Reference

https://support.fortinet.com.cn/vdom/vdom_basic

https://support.fortinet.com.cn/vdom/vdom_comm#%E7%BD%91%E7%BB%9C%E9%9C%80%E6%B1%82

Situation

# 切了兩個VDOM要互通
Configured two VDOMs and need to establish inter-VDOM communication.   

Introduction

# 全局的功能有HA、SNMP、Cerficate
config global 
    config system snmp sysinfo
        set status enable
    end
end

# root vdom是預設的虛擬防火牆

Basic VDOM Setup

[1]
# 開啟VDOM功能
config system global 
    set vdom-mode multi-vdom 
end

[2]
# 開起建立VDOM提示
config global 
    config system global 
        set edit-vdom-prompt enable 
    end
end

# 新增一個VDOM,預設是NAT模式
FGT WebGUI > Global VDOM > System > VDOM > Create OA VDOM

or 

config vdom 
    edit OA
end

[3]
# 新增Port進入VDOM
FGT WebGUI > Global VDOM > Network > Interface > "Port8" > Virtual Domain > OA VDOM

or 

config global 
    config system interface
        edit port8
            set vdom OA
        next
    end
end

Solution 1. 實體互接

[1]
# 將兩個VDOM的實體接線(Port3, Port4)連接


# 測試這兩個vlink有沒有通(要進兩個VDOM互相測試)
exe ping 10.1.1.1
exe ping 10.1.1.2

[2]
# 新增路由和政策
[1]
# 設定npu0_vlink0, npu0_vlink1 IP
FGT WebGUI > network > interface > NPU VDOM > npu0_vlink0 or npu0_vlink1

# 新增這兩個vlink進入各自的VDOM
vpu0_vlink0 : 加到VDOM root
vpu0_vlnik1 : 加到VDOM OA

# 測試這兩個vlink有沒有通(要進兩個VDOM互相測試)
exe ping 10.1.1.1
exe ping 10.1.1.2

[2]
# 新增路由和政策

Solution 3. 透過外接L3轉送打通

[1]
# 將兩個VDOM的實體接線(Port3, Port4)連接外接L3

[2]
# 新增路由和政策