Forum Discussion
Touch_100239
Nimbostratus
Aug 02, 2010iRule Implementation (SNAT)
Hi All
I am new about F5 iRule and facing a problem about iRule implementation on F5. I was struggling with it for more than two weeks. Really hope if there is someone could help me to solve it.
My sc...
The_Bhattman
Nimbostratus
Aug 02, 2010Hi Touch,
I think the problem might be due because you are trying to matchclass the node before the server side is connected.
Try the following code
I.E.
when CLIENT_ACCEPTED {
log local0 "The Client IP is [IP::client_addr] and the node IP is [IP::remote_addr]"
if {[matchclass [IP::client_addr] equals 192.168.1.2]} {
snat 192.168.2.3
} else {
snat none
}
}
I hope this helps
Bhattman
Bhattman
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