本帖最後由 kingwilliam 於 2021-9-23 19:51 編輯
回覆 16# JMYPC
所有 multi-wan 可行 outgoing load balancing 都要set rules
最簡單就是 1:1 如有一網頁有5張圖 即 html x1, jpg x5
example-1
wan1: html
wan2: jpg1
wan1: jpg2
wan2: jpg3
wan1: jpg4
wan2: jpg5
如果wan2去到jpg3斷左, 就會自動用wan1做如下download.
example-2
wan1: html
wan2: jpg1
wan1: jpg2
wan1: jpg3
wan1: jpg4
wan1: jpg5
我諗你想的就是這樣, outgoing load balancing當然做到. 重做得好好.
但你是這樣諗, 對方比唔比你咁做. 由其是超高安全要求的金融系統
如用example-1
wan1: html
wan2: jpg1
server side會發現點解同一個user之前是用wan1 ip, 但現在轉了wan2 ip, 就會觸法保安系統 即時logout 你個account(避免 Man-In-The-Middle attack).
之後 就算跳回 wan1, account也都已經logout. 你只會發現不斷login logout 這已經是最好, 最壞就是 temporary disable 你個account.
所以上面已有 ching 講, 你要入曬同一間公司所有ip 到另一條rules, 即這組rules行那條 wan, 這樣你又跌入另一dead loop, 你好難知到 那間公司 那個服務 用了那組IP.
利申:我也用過pfsense(你可視為unix firewall)行兩條wan做outgoing load balancing, 最後都係放棄.
c hing 大家都知你好想在現有條件下用 multi-wan 行 outgoing load balancer解決你現有問題
但上面回答到你既所有 c hing 都係身經百戰, 唔係吹水. 因真係一個無底洞 唔係一定要 都唔好考慮.
如你用mutli-wan來BT 或做d同security無關既野, 這時outgoing load balancing 就能發揮到佢既小宇宙 重可打爆你兩條wan. |