Forum Discussion
For_saken_9071
Nimbostratus
Nov 25, 2008Local Port Irule - Requires Ip Persistence
Hi All,
I have the below config that is running fine though I now want to specify different IP Persistence for each of the below pools. Currently I have set on the VIP a Persistence of 3600seconds - Source Address Affinity. I'm pretty new to irules so looking for some config that I could use.
when CLIENT_ACCEPTED {
log local0. [TCP::local_port]
if { [TCP::local_port] == 80 } {pool pool-testesttest-sotl}
elseif { [TCP::local_port] == 17024 } {pool pool-anothertest-sotl}
elseif { [TCP::local_port] == 19012 } {pool pool-extratest-sotl}
}
}
- hoolio
Cirrostratus
Hi there,when CLIENT_ACCEPTED { switch [TCP::local_port] { "80" { pool pool-testtesttest-sotl persist source_addr 255.255.255.255 3600 } "17024" { pool pool-anothertest-sotl persist source_addr 255.255.255.255 120 } "19012" { pool pool-extratest-sotl persist source_addr 255.255.255.255 240 } default { Take some default action? } } }
- For_saken_9071
Nimbostratus
Thanks, will give this ago and will let you know
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