Forum Discussion
LTM as Name-Based reverse proxy
Dears,
i'm tring to implement a Name-based reverse proxy with LTM v12. The schema of our request should be similiar to the below:
site1.com ---\ /server1:80 (pool1)
>------ VIP (virtual server) ----<
site2.com ---/ \server2:80 (pool2)
I've set the following local policy and attached it to the VIP virtual server:
ltm policy Name_based_reverse_proxy {
controls { forwarding }
last-modified 2017-01-18:19:06:49
requires { http }
rules {
rule1 {
actions {
0 {
forward
select
pool POOL1
}
}
conditions {
0 {
http-host
host
values { site1.com }
}
}
ordinal 1
}
rule2 {
actions {
0 {
forward
select
pool POOL2
}
}
conditions {
0 {
http-host
host
values { site2.com }
}
}
}
}
status published
strategy first-match
}
Now the problem, if I try to request from my browser one of these two URLs the connection fails and on the statistics of LTM the above rule created has not invocations, it seems that something is missing and the rule is not invoked on my http request sent to the virtual server.
Could you please help me?
Many thanks
Regards
2 Replies
Hi!
Saw your post and thought. 7 hours and no answers for name based pool selection how hard can it b... ahhhhhh policies! :D
We're too many die hard old school iRule guys here.
Tested your policy and it works fine. Gotta ask, have you assigned it to your VIP?
/Patrik
- JG
Cumulonimbus
And have you applied a OneConnect profile to your vs?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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