RB450G 請教一下Mangle 設定一問

現時已經set 好哂D interface, int1 用HKBN,  int2 PCCW pppoe
兩條線單獨插住已經可以上網, 只不過未搞掂mangle 個concept. 請教一下

係官网個wiki 睇到個example, 頭兩句個dst 佢sample 係10.111.0.0/24
想問問如果我地用HKBN同pccw pppoe既, 咁應該打咩?

謝謝
/ ip firewall mangle
add chain=prerouting dst-address=10.111.0.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=10.112.0.0/24  action=accept in-interface=LAN
add chain=prerouting in-interface=ISP1 connection-mark=no-mark action=mark-connection \
    new-connection-mark=ISP1_conn
add chain=prerouting in-interface=ISP2 connection-mark=no-mark action=mark-connection \
    new-connection-mark=ISP2_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \
    per-connection-classifier=both-addresses:2/0 action=mark-connection new-connection-mark=ISP1_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local \
    per-connection-classifier=both-addresses:2/1 action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing \
    new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing \
    new-routing-mark=to_ISP2
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1     
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2

我之前set dual wan行pcc攪左好耐都唔得, 最後跟返佢d sample setting, 但route 到的gateway一定要人手改返做gateway ip就得左, 所以我覺得你個問題唔關mangle事

TOP