Forum Discussion
Spiderman_11815
Jan 23, 2013Nimbostratus
Here is the log I am getting after this.
Jan 23 13:40:32 local/tmm1 info tmm1[6860]: Rule test6 : SNAT for: 10.75.134.8%2 (It does not work)
Jan 23 13:40:51 local/tmm2 info tmm2[6861]: Rule test6 : SNAT for: 172.22.10.128%2 ( It is working but not sure why it did not encounter a match prior to this and exit)
IP:addr variable was not working. So I modified the irule as below.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.21.10.0/24] } {
log local0. "Not NATing for: [IP::client_addr]"
snat none
Stop processing the iRule
return
} else {
snatpool
log local0. "SNAT for: [IP::client_addr]"
}
}