felix001_29321
Sep 27, 2011Nimbostratus
Irule TCP Port Issue
Im trying to create an Irule which will snat the connection behind a single ip when destined for a destination port.
The iRule I have is :
-------------------------------------------------
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::src_nets ] and [[TCP::remote_port] equals "8181" ] } {
snat 172.16.1.100
}
else {
forward
}
}
--------------------------------------------------
The doesnt work. Ive tested it with just the matchclass and it works.
Many Thanks,