Forum Discussion
felix001_29321
Nimbostratus
Sep 27, 2011Irule 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 :
-----------------------------------------...
Michael_Yates
Nimbostratus
Sep 27, 2011Hi Felix,
I am guessing that your BIG-IP Version is 9.x.x. If you are running v10.x.x you should change from "matchclass" to "class match" and drop the "$::" from the class name.
Try this:
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::src_nets ] and [[TCP::local_port] equals "8181" ] } {
snat 172.16.1.100
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
