由於目的IP不同需走不同的線路,所以就寫了一個irule來導向
when CLIENT_ACCEPTED {
else if {
[class match [IP::local_addr] equals "Google"]||
[class match [IP::local_addr] equals "youtube"]
} {
pool "Telstra_20M_ISP13"
snatpool "Telstra_snatp_1.1.1.1"
;#指定目的為Goole or youtube走線路Telstra的1.1.1.1
}
elseif {
[class match [IP::local_addr] equals "FB"] ||
[class match [IP::local_addr] equals "IG"]
} {
pool "NTT_20M_ISP12"
snatpool "NTT_snatp_2.2.2.2"
;#指定目的為FB or IG走線路NTT的2.2.2.2
}
else {
snat automap
;#其餘的走原本的pool
}
}