Forum Discussion
rababa74_74439
Nimbostratus
Jul 10, 2008SNAT base on Source IP and TCP Port
Hello.
I need some help in figuring out an iRule that can be applied on my outbound virtual server where if it sees that the source IP and TCP port is coming from A.A.A.A:ZZ, it will sn...
Nicolas_Menant
Employee
Jul 10, 2008Hi,
If you checked the wiki you'll have found this link for TCP port:Click here
So to check the ip AND port it would looks like this:
when CLIENT_ACCEPTED {
if { ([IP::addr [IP::local_addr] equals 10.10.10.0/24]) AND ([TCP::client_port] equals "80" }{
snat 192.168.20.10
}
}
HTH
N.
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