Forum Discussion
Livius
Cirrus
Jul 09, 2018Small iRule help
Small iRule help
Hi guys,
I want to send a HTTP response based on the client source IP address, it is just for a test, but the iRule validation fails. I prefer to keep it simple, I know I c...
RaghavendraSY
Altostratus
Jul 09, 2018Please use below iRule and assigned to virtual server. when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 10.1.1.1/32] or [IP::addr [IP::client_addr] equals 10.1.1.2/32]} { if { [TCP::local_port] == 22 } { pool pool-1 } else { reject } } else { reject } }
Port 22 is just an example.
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