Forum Discussion
irule to route traffic to specific pool
we want 2 particular source to access pool B and the remaining traffic to go to poolA.
When all node in poolB fail traffic need to go to default poolA . Please let me know how can i get this working.
Hi.
It this useful?
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 192.168.19.80] || [IP::addr [IP::client_addr] equals 192.168.19.29] } {
log local0. "IP address is [IP::client_addr]"
if { [active_members pool_B] > 0 } {
log local0. "pool_B"
pool pool_B
} elseif { [active_members pool_A] > 0 } {
log local0. "pool_A"
pool pool_A
}
}
}
}
ltm virtual /Common/VS_http {
destination /Common/192.168.19.93:80
ip-protocol tcp
mask 255.255.255.255
profiles {
/Common/http { }
/Common/tcp { }
}
rules {
/Common/My_rule
}
source 0.0.0.0/0
source-address-translation {
pool /Common/My_Snat_pool
type snat
}
translate-address enabled
translate-port enabled
}
Recent Discussions
Related Content
* 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