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. "should go to pool"
pool https_pool
}
}
The log command is executing (so i know the if command is being triggered) and the request is being sent to the https_pool pool but no response comes back from the server. I know the pool member is correct as when i change it i get a compilation error.
I added the following and i can see that the correct pool has been selected and the pool is up and accessible:
when LB_SELECTED {
log local0. "Selected server: [LB::server]"
}
when LB_FAILED {
log local0. "Selected server: [LB::server]"
}
ASM is being used but the page i want to access has no restrictions.I want requests to /test/ to go to a different pool which will handle the users login and then set the cookie for the same domain.
Thanks
- nitassEmployeecan you try something like this?
[root@ve10:Active] config b virtual bar list virtual bar { snat automap destination 172.28.19.79:443 ip protocol 6 rules myrule profiles { http {} serverssl { serverside } tcp {} test { clientside } } } [root@ve10:Active] config b profile test list profile clientssl test { defaults from clientssl } [root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { SSL::disable serverside if {[HTTP::uri] contains "/test/"} { SSL::enable serverside pool https_pool } else { pool http_pool } } } [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 {} }
- YozzerNimbostratushave added in the ssl enable disable commands but still get connection reset.
- nitassEmployeehave added in the ssl enable disable commands but still get connection reset.so, i think you may have to capture packet.
- YozzerNimbostratusi can do that tomorrow. what are the possible issues that i can identify from the capture?
- nitassEmployeei can do that tomorrow. what are the possible issues that i can identify from the capture?i am not sure but the above configuration works fine in my lab. i expect to see who initially sending reset and why from the packet capture.
- YozzerNimbostratusSo the browser talks over HTTPS to the Virtual and then talks to the default pool over HTTP. So i think the reset connection is due to the virtual not being able to talk HTTPS to the HTTPS pool due to the SNAT automap and certificate isnt configured.
- hooleylistCirrostratusIf you want LTM to use serverside SSL for the HTTPS pool, Nitass' latest iRule should work. The servers in the HTTPS pool would need to be configured to accept SSL handshake attempts.
- YozzerNimbostratusThanks
- nitassEmployeeSo if we didn't set the serverssl server side in the virtual settings can it be defined in the irule to use a certain certificate?i understand it is not possible. we have to assign ssl profile to virtual and disable/enable it through irule.
- YozzerNimbostratusHi
Recent Discussions
Related Content
- Nov 12, 2021Former Member
Â
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