目錄表

有關 FortiGate 防火牆相關設定

基本設定

設定 Port Mapping

  • 如果 Policy 中有啟動 NAT 轉過去的內部 Server 來源 IP 就會是 Fortigate 的 IP
    • Exp. Fortigate 的 internal IP 是 192.168.0.1 在 21/May/2018:11:29:57 切換成有 NAT 的規則, 結果 Web Server Log 內看到的來源 IP 都變成 192.168.0.1 看畫面

針對 Port Mapping (WAN 連入 Internal) (Virtual IP) 特定來源(黑名單)IP 設定技巧

設定 SSL VPN

  • 設定帳號一次只能一個連線 :
    • VPN → SSL → Portals → 選擇指定的項目 Exp. full-access → Edit
    • [V] Limit Users to One SSL-VPN Connection at a Time

防止暴力登入 SSL VPN 方式

當出現 CPU 100% 時釐清問題方式

  1. 看哪個服務造成

    diagnose sys top -d 3

    Exp.

    FortiGate # diagnose sys top -d 3
    Run Time:  443 days, 19 hours and 44 minutes
    17U, 0N, 3S, 80I; 1838T, 1135F
             sslvpnd    10073      R      93.2     1.5
              newcli    24900      R       1.4     1.0
           ipsengine      158      S <     0.0     4.0
    Run Time:  443 days, 19 hours and 44 minutes
    26U, 0N, 3S, 71I; 1838T, 1135F
             sslvpnd    10073      S      92.2     1.5
              httpsd    24886      S       3.9     1.5
              httpsd    23905      S       1.3     1.6
     
    FortiGate #  

    釐清是 sslvpnd 造成

  2. 先刪除這程序

    diagnose sys kill 11 {pid}

    Exp.

    diagnose sys kill 11 10073

  3. 針對這程序進行處理, Exp. 遭受攻擊 : 找出並封鎖攻擊來源

IPSec - L2TP 用戶撥入 VPN 設定

設定多條 WAN 備援方式

路由偵錯檢測方式

FortiGate 60D 特別設定

端對端 VPN 使用 traceroute 非預期出現 DMZ IP

FortiGate 40C 特別設定

啟動 SNMP

建立 VLAN

設定 HA

graph TD Internet["Internet"] Router["VDSL Router"] FG1["Fortigate 40c
ichiayi-01-FG40C"] FG2["Fortigate 40c
ichiayi-02-FG40C"] Switch["Internal Switch"] PC1["PC or NB"] AP["Wi-Fi AP"] PC2["PC or NB"] Internet <-->|"WAN"| Router Router -->|"Static IP (wan1)"| FG1 Router -->|"Static IP (wan1)"| FG2 FG1 <-->|"wan2 HA 連線"| FG2 FG1 -->|"Internal"| Switch FG2 -->|"Internal"| Switch Switch --> PC1 Switch --> AP Switch --> PC2 style Internet fill:#e1f5ff,stroke:#333,stroke-width:3px style Router fill:#fff4e1,stroke:#333,stroke-width:2px style FG1 fill:#cce5ff,stroke:#333,stroke-width:2px style FG2 fill:#d4f1d4,stroke:#333,stroke-width:2px style Switch fill:#ffe1e1,stroke:#333,stroke-width:2px style PC1 fill:#f0f0f0,stroke:#333,stroke-width:2px style AP fill:#fff0cc,stroke:#333,stroke-width:2px style PC2 fill:#f0f0f0,stroke:#333,stroke-width:2px

參考網址

1)
免費只能建立一組, 預設是 full-access
2)
fortigate-ha-56.pdf Page.28
3)
fortigate-ha-56.pdf Page.24
4)
Active-Active 模式 wan1 介面無法使用 PPPoE