Forum Discussion
Yozzer
Jul 08, 2012Nimbostratus
Pool not called
Hi
Is there any other configuration i need to perform to get the following irule to trigger correctly:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/test/"} {
log -noname local0. "...
nitass
Sep 02, 2012Employee
Which will use the source_addr settings predefined in Local Traffic ›› Profiles : Persistence. So, as the stickiness timeout is defined for 3 minutes in source_addr then the chosen pool member will be available to the user for 3 minutes. Is that correct?i understand you also have to assign source_addr persistence profile to virtual server to use timeout setting in profile. so, you could use persist none when http_pool is used.
another way is to specify timeout in persist irule command i.e. no persistence profile is required to assign to virtual server.
e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
destination 172.28.19.79:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
serverssl {
serverside
}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set uri [HTTP::uri]
SSL::disable serverside
if {[string tolower $uri] contains "/test/"} {
SSL::enable serverside
persist source_addr none 180
pool https_pool
} else {
pool http_pool
}
}
when SERVER_CONNECTED {
log local0. "client [IP::client_addr]:[TCP::client_port] | vs [clientside {IP::local_addr}]:[clientside {TCP::local_port}] | server [IP::remote_addr]:[TCP::remote_port] | uri $uri"
}
}
[root@ve10:Active] config b pool https_pool list
pool https_pool {
members 200.200.200.102:443 {}
}
[root@ve10:Active] config b pool http_pool list
pool http_pool {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config tail -f /var/log/ltm
Sep 3 00:47:46 local/tmm info tmm[4925]: Rule myrule : client 172.18.204.138:49208 | vs 172.28.19.79:443 | server 200.200.200.101:80 | uri /
Sep 3 00:47:51 local/tmm info tmm[4925]: Rule myrule : client 172.28.19.251:41644 | vs 172.28.19.79:443 | server 200.200.200.102:443 | uri /test/
[root@ve10:Active] config b persist show all
PERSISTENT CONNECTIONS
| Mode source addr Value 172.28.19.251
| virtual 172.28.19.79:443 node 200.200.200.102:443 age 7sec
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