跳到主要內容

發表文章

目前顯示的是有「Fortigate」標籤的文章

Fortigate IPS, DNS/WEB Filter, Domain & IP Reputation

 Fortigate 啟用 Fortigate IPS, DNS/WEB Filter, Domain & IP Reputation 相關功能 在 Fortigate 要使用一些功能,必須先到[Feature Visibility] 中啟用該功能。 DNS Filter Apply DNS category filtering, URL filtering to control user's access to web resources. Set up DNS Filter Profiles (Security Profiles > DNS Filter) and add them to Firewall Policies or add them to a DNS Server on a FortiGate interface. Some features require a subscription to FortiGuard Web Filtering. Web Filter Apply web category filtering, URL filtering, and content filtering to control user's access to web resources. Set up Web Filter Profiles (Security Profiles > Web Filter) and add them to Firewall Policies. Some features require a subscription to FortiGuard Web Filtering. 前兩項 ,個人認為比較偏向 Client (Outgoing),避免去到惡意的網站或網址 Domain & IP Reputation Enable the Reputation Lookup feature. This page allows querying of reputations for IPs or FQDNs as classified in FortiGuard databases. Databases require a valid FortiGuard subscription. Int...

External Block List (Threat Feed)

如何建立外部的 IP 封鎖清單 # Explame Paltfrom: Fortigate 20xE / 6.2.11 Ref: Fortigate Threat feeds(6.2.x) Ref: External Block List (Threat Feed) – Policy(6.2.0)   Ref: All Cybercrime IP Feeds by FireHOL [Security Fabric] → [Fabric Connectors]  → [Create New] → [IP Address] 以 [https://raw.githubusercontent.com/ktsaou/blocklist-ipsets/master/firehol_level1.netset] 為 List 來源 在 Policy 引用 (記得 Block Deny Policy 要在前面) 建議搭配 [Intrusion Prevention]及其Block [Botnet C&C]、DNS Filter、Web Filter

Fortigate 最多可以指定4個 syslog server

 Ref: https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-multiple-SYSLOG-servers/ta-p/194117 UI 上設定的是 config log syslogd setting # config log {syslogd | syslogd2 | syslogd3 | syslogd4} setting set status {enable | disable} set csv {enable | disable} set facility {alert | audit | auth | authpriv | clock | cron | daemon | ftp | # kernel | local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7 | lpr | mail | news | ntp | syslog | user | uucp} set port <port_integer> set reliable {enable | disable} set server <address_ipv4 | FQDN> set source-ip <address_ipv4> end

Fortigate auto backup config by tftp

Tips: Adding date and time in file name after 6.4.9 and 7.0.2 later.           Key point:                               Enclose date and time in %%                               Example: %%date%% or %%time%% CLI:      config system automation-trigger          edit "Daily Backup Config"              set trigger-type scheduled              set trigger-hour 23              set trigger-minute 59          next      end      config system automation-action          edit "Daily Backup Config"              set action-type cli-script ...

Fortigate SD-WAN with IP Pools 問題

# Fortigate 200E v6.2.3 Ref: https://forum.fortinet.com/tm.aspx?m=157745 https://forum.fortinet.com/tm.aspx?m=171015 https://kb.fortinet.com/kb/documentLink.do?externalID=FD40845 在官網的手冊中,使用『Virtual IPs』時,NAT 會優先使用 VIP 關聯的 IP 當作對外IP, 但我在使用時,好像沒有?不知道是不是 WAN Port 我沒有將該 IP 設到 [Secondary IP address]中,待測.... 在 Fortigate  Firewall,我們想某個內部 Interface 出去(NAT)時,使用指定的 IP, 可以使用 IP Pools來達成。最常使用的情境式 Mail Server(SMTP)。 但當使用 SD-WAN + IP Pools 時,會使得該 Policy 連線異常或中斷。 #.1 當 『SD-WAN Rules』使用『 Load Balancing Algorithm』(cli: set load-balance-mode) 預設【Source IP】時,不會有問題,或是問題不明顯,原因/理論 不明白? → 2020/04/27,不是不會有問題,而是機率是 1/WAN數量。也就是對外越多條,可用機率越低。 #.2 承 #.1,在 Fortigate 200D(v5.6.12) 時,使用預設值(沒設定  cli: set load-balance-mode) 也沒問題。 → 2020/04/27,翻以前的文章 v5.6.12v5.6.12時,我就遇過同樣問題,也有修正 Orz。 #.3  承 #.1,在 Fortigate 200B(v5.2.15) 時,沒使用 SD-WAN 做多 WAN時,也沒問題。 可能原因: 當 SD-WAN 搭配 IP Pools 時,SD-WAN 不知道使用到的 IP Poolsools是屬於哪一條 WAN(Interface)。所以可能牽錯紅線,A IP 走 B WAN 的情況,因而對外連線異常(時好時壞)。 為解決...

How to sign a CA certificate on Windows server 2012 R2 and import certificate for SSL inspection to a FortiGate.

#Fortigate 200E、Windows 2012 R2、FortiOS 5.6.11 !! Chrome 58 以後,憑證如果沒有 SAN( subjectAlternativeName)屬性,一樣會被判定不安全的連線, 參考說明 。 本文在說明如何在  Windows 2012 R2 CA 下,申請 SubCA ubCA 以使 Fortigate  SSL inspection 運作時,不會出現憑證錯誤和不安全的連線訊息。 # 如何延長 Windows CA 所發憑證預設的有效期,請參考 這裡。 登入到 Fortigate GUI >> System >> Certificates >> Generate 填入憑證所需相關資料,請務必確認【Subject Alternative Name】欄位有正確填寫。 【Subject Alternative Name】欄位格式,並以逗號分隔多項: #超過 60 character ,必須使用 CLI ,請參考: Generate CSR via CLI when Subject Alternative Name field is long (FortiOS 5.0) Email: email:admin@ companyname .com IP Address: IP:1.1.1.1 URL: URI:https:// companyname .com DNS Name: DNS:www. companyname .com 下載所建立的憑證申請檔 到 Windows CA 網頁,申請憑證: 選擇【進階憑證要求】 填入剛剛的申請檔內容,並選擇憑證範本【附屬憑證授權單位/SubCA】 下載所申請到的憑證 在 Fortigate 中匯入憑證 (System >> Certificates >> Import >> Local Certificate) 可以看到剛剛的申請已有相關憑證資訊 另外要記得將上層 CA Server 的憑證匯入  (System >> Certificates >> Import >> CA Certific...