Forum Discussion
Dave_73612
Nimbostratus
Jul 28, 2009Pool redirect based on source IP Range
Hi guys,
I need to write an IRule to route traffic to different pools based on source IP range.
Would this be the best syntax to use?
when CLIENT_ACCEPTED ...
hoolio
Cirrostratus
Jul 29, 2009It's the same whether you're explicitly providing an IP address or using IP::client_addr to get the client IP address. So the first two are equivalent, as are the second two if the client IP address for the test was 10.42.2.2
[IP::addr 10.42.2.2/24 equals 10.42.2.1]: 1
[IP::addr 10.42.2.2 equals 10.42.2.1/24]: 1
[IP::addr [IP::client_addr]/24 equals 10.42.2.1]: 1
[IP::addr [IP::client_addr] equals 10.42.2.1/24]: 1
If you have a default pool on the VIP and you're making the pool decision for the entire TCP connection, you don't need to explicitly define a pool in an else clause.
Aaron
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