差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:fortigate_tips [2019/10/24 09:31] – jonathan_tsai | tech:fortigate_tips [2024/06/22 00:18] (目前版本) – [防止暴力登入 SSL VPN 方式] jonathan | ||
---|---|---|---|
行 81: | 行 81: | ||
</ | </ | ||
+ | ===== 防止暴力登入 SSL VPN 方式 ===== | ||
+ | * 參考 - https:// | ||
+ | * 當 Log & Report 的 VPN Events 出現大量 ssl-login-fail , sslvpn_login_unknown_user 狀況 | ||
+ | * 設定當 SSL VPN 登入失敗超過 x 次就鎖定 n 秒, 來降低嘗試暴力登入的狀況 Exp. 失敗超過 3 次, 就鎖 3600 秒< | ||
+ | config vpn ssl settings | ||
+ | set login-attempt-limit 3 | ||
+ | set login-block-time 3600 | ||
+ | end | ||
+ | </ | ||
===== IPSec - L2TP 用戶撥入 VPN 設定 ===== | ===== IPSec - L2TP 用戶撥入 VPN 設定 ===== | ||
* 參考 - http:// | * 參考 - http:// | ||
行 95: | 行 104: | ||
</ | </ | ||
* 可以在外部 192.168.1.140 的 Windows 10 PC 執行 ping 與 tracert , 只要有經過 Fortigate 就會顯示流量訊息 | * 可以在外部 192.168.1.140 的 Windows 10 PC 執行 ping 與 tracert , 只要有經過 Fortigate 就會顯示流量訊息 | ||
- | * ping 範例 ++PC 端 |<xtermrtf> | + | * ping 範例 ++PC 端 |<cli> |
C: | C: | ||
行 102: | 行 111: | ||
回覆自 192.168.0.250: | 回覆自 192.168.0.250: | ||
- | </xtermrtf> ++ ++Fortigate 端 |<xtermrtf> | + | </cli> ++ ++Fortigate 端 |<cli> |
TPFortiGate40C-1 # diag debug reset | TPFortiGate40C-1 # diag debug reset | ||
行 122: | 行 131: | ||
0 packets dropped by kernel | 0 packets dropped by kernel | ||
- | </xtermrtf>++ | + | </cli>++ |
- | * tracert 範例 ++PC 端 |<xtermrtf> | + | * tracert 範例 ++PC 端 |<cli> |
C: | C: | ||
行 133: | 行 142: | ||
追蹤完成。 | 追蹤完成。 | ||
- | </xtermrtf> | + | </cli> |
TPFortiGate40C-1 # diagnose sniffer packet any "host 192.168.0.250 and icmp" 4 | TPFortiGate40C-1 # diagnose sniffer packet any "host 192.168.0.250 and icmp" 4 | ||
interfaces=[any] | interfaces=[any] | ||
行 167: | 行 176: | ||
27 packets received by filter | 27 packets received by filter | ||
0 packets dropped by kernel | 0 packets dropped by kernel | ||
- | </xtermrtf>++ | + | </cli>++ |
===== FortiGate 60D 特別設定 ===== | ===== FortiGate 60D 特別設定 ===== | ||
==== 端對端 VPN 使用 traceroute 非預期出現 DMZ IP ==== | ==== 端對端 VPN 使用 traceroute 非預期出現 DMZ IP ==== | ||
- | * 參考 - http:// | + | * 參考 - http:// |
traceroute 192.168.1.5 | traceroute 192.168.1.5 | ||
行 178: | 行 187: | ||
| | ||
| | ||
- | </xtermrtf> | + | </cli> |
- | * 只要設定 VPN 虛擬介面的 IP 即可解決 Exp. 192.168.101.254 ++看畫面|{{: | + | * 只要設定 VPN 虛擬介面的 IP 即可解決 Exp. 192.168.101.254 ++看畫面|{{: |
traceroute 192.168.1.5 | traceroute 192.168.1.5 | ||
traceroute to 192.168.1.5 (192.168.1.5), | traceroute to 192.168.1.5 (192.168.1.5), | ||
行 185: | 行 194: | ||
| | ||
| | ||
- | </xtermrtf> | + | </cli> |
===== FortiGate 40C 特別設定 ===== | ===== FortiGate 40C 特別設定 ===== | ||
行 193: | 行 202: | ||
==== 建立 VLAN ==== | ==== 建立 VLAN ==== | ||
* http:// | * http:// | ||
+ | * https:// | ||
==== 設定 HA ==== | ==== 設定 HA ==== |