Forum Discussion
mbamusa_59409
Nimbostratus
Oct 07, 2012SNAT Issue
Hi Evrey one ,
i have virtual server created to load balance the outgoing traffic to 3 links and i applied the LB_Select Irule along with SNAT Irule as following :
ltm rule /Common/SNAT_ALL_IRULE_TEST {
when LB_SELECTED {
if { [LB::server addr] equals "1.1.1.1" } {
log local0.info "Selected ISP01 Snat for Client [IP::client_addr]"
snatpool ISP01_SNAT_POOL
} elseif { [LB::server addr] equals "2.2.2.2" } {
log local0.info "Selected ISP02 Snat for Client [IP::client_addr]"
snatpool ISP02_SNAT_POOL}
else {
log local0.info "Selected ISP03 Snat for Client [IP::client_addr]"
snatpool ISP03_SNAT_POOL
}
}
ltm rule /Common/Source_NAT_Irule_test {
when CLIENT_ACCEPTED {
log local0.info "iRule source NAT - CLIENT ACCEPTED - ip addr = [IP::client_addr]"
if {[IP::addr [IP::client_addr] equals 10.10.10.10]}{
snat 1.1.1.30
pool Gateway_POOL member 1.1.1.1
}
}
when the above irules applied on same VS the snat command in the second irule (Client_ACCEPTED) will not work but if we apply the second irule only it works .
if anyone could help me on this i would be greatful .
thank you
Mohammed A. Bamusa
- nitass
Employee
can you try this?
- mbamusa_59409
Nimbostratus
Dear Nitass ;
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