Forum Discussion

karthick_85385's avatar
karthick_85385
Icon for Nimbostratus rankNimbostratus
Jun 12, 2012

Context path creation using IRULE

 

 

Hi All,

 

 

Need to access my URL from public network through a context path by using irule

 

 

F5 config details

 

 

VIP 10.10.5.5 port 443

 

 

Pool 10.10.10.1 port 8834

 

 

VIP Natted with one public IP and i need to access the URL as below

 

 

https:///yamss/

 

 

 

IRULE created in F5 and mapped to respective VIP

 

 

when HTTP_REQUEST {

 

switch -glob [HTTP::uri] {

 

"/yamss*" -

 

{

 

nessus

 

pool pool_gen_yamss

 

 

}

 

}

 

 

}

 

 

 

I have done the above configuration but i cant able to access the application with the context path.

 

 

Please help me to resolve the issue.

 

 

Thanks in advance.

 

 

Regards,

 

 

karthick

 

 

 

 

 

 

 

 

 

 

2 Replies

  • make sure your routing is in place and accurate on the server side (if necessary). If the LTM is not the default gateway (or there is not a specific route for the client space back through the LTM) for the server, you will need to use snat automap or a snatpool on the virtual configuration. To validate your traffic flows, you can use the tcpdump utility in the command line interface.
  • Also, did you see any runtime TCL errors in /var/log/ltm? I'm not sure it would cause an error, but you had a - and { in your switch statement for the same case. Can you try this?

    
    when HTTP_REQUEST {
       switch -glob [HTTP::uri] {
          "/yamss*" {
             nessus
             pool pool_gen_yamss
          }
       }
    }
    

    Aaron