Forum Discussion
TMcGov_92811
Nimbostratus
Jan 29, 2009Help with simple iRule to log client IP
Hi, I wish to create an IRule that can be used in troubleshooting issues with particular source IPs. It would be applied to a VS only during troubleshooting. Specifically I want to match on a source I...
Colin_Walker_12
Jan 29, 2009Historic F5 Account
The syntax looks pretty close. You'll want to use the IP::addr command, but that shouldn't cause the syntax error. What error are you getting?
The result should look like:
when SERVER_CONNECTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
log local0. "Client Source IP: [IP::client_addr]:[TCP::client_port]<-->POOL<-->[LB::server]<-->ACTUALNODE<-->[IP::server_addr]:[TCP::server_port]"
}
}
Colin
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