Forum Discussion
monica_74227
Nimbostratus
Jun 10, 2009outbound iRule help
hey guys, i make a irule to use choose diffrent links as following:
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::CNC_class]} {
pool ISP-WANGTONG-FIRST...
monica_74227
Nimbostratus
Jun 15, 2009hey guys, I fixed the iRule, but always generate errors, thank you for your help:
when CLIENT_ACCEPTED {
if { [mathclass [IP::client_addr] equals $::Uni_client_class]} {
pool Uni_first_pool
}
elseif { [matchclass [IP::local_addr] equals $::Uni_class]} {
pool Uni_first_pool
}
elseif { [matchclass [IP::local_addr] equals $::CT_class]} {
pool CT_first_pool
}
else {
pool Default_gateway_pool
}
}
when LB_SELECTED {
if {[IP::addr [LB::server addr] equals 221.218.250.62] and [IP::addr [IP::client_addr] equals 12.10.10.2] or [IP::addr [IP::client_addr] equals 12.10.10.1] } {
snat 221.218.250.61
}
elseif {[IP::addr [LB::server addr] equals 202.224.233.89] and [IP::addr [IP::client_addr] equals 12.10.10.1] or [IP::addr [IP::client_addr] equals 12.10.10.2]} {
snat 202.224.233.90
}
else {
snat automap
}
}
thank you very much!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects