Forum Discussion
What_Lies_Bene1
Nov 21, 2012Cirrostratus
Can you remove the 'forward' command. If that doesn't work, add a bit more logging and another 'else' statement like so;
when CLIENT_ACCEPTED {
This iRule would NAT the source IP in the DG_SRC and match it to a destination in DG_DEST
and then snat to the snatpool defined in DG_DST as the value corresponding to the name.
if { [class match [IP::client_addr] equals "DG_SRC" ] } {
set snatip [class match -value [IP::local_addr] equals "DG_DST" ]]
if { not ($snatip equals "") } {
log local0. "[IP::client_addr] going to [IP::local_addr] got Natted to $snatip"
snat $snatip
return
}
else
log local0. "SNAT IP was empty"
}
else {
log local0. "[IP::client_addr] going to [IP::local_addr] did NOT get Natted!!!"
}
}