Forum Discussion
Bciesz_171056
Cirrus
Aug 21, 2017iRule if based on incoming IP
Hi,
I have a problem here... I'm trying to make an iRule perform specific action if incoming traffic comes from a specific IP address. I have:
if {[IP::addr [IP::client_addr] equals 10.8.199...
jaikumar_f5
Noctilucent
Aug 21, 2017Did you refer this Q&A and Q&A.
So it would be something like below,
set rd "%[ROUTE::domain]"
set client_ip [string map "$rd \"\"" [IP::client_addr]]
if {$client_ip equals "10.8.199.231"} {
log local0. "IDMS dupa"
}
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