Forum Discussion

giaccadabar_254's avatar
giaccadabar_254
Icon for Nimbostratus rankNimbostratus
Jan 18, 2017

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's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    And have you applied a OneConnect profile to your vs?