Forum Discussion

Heinen_Markus's avatar
Heinen_Markus
Icon for Nimbostratus rankNimbostratus
Aug 01, 2011

iRule and Firefox Problems

Hi

 

 

i have a problem with this irule and Firefox Browser with IE it works good

 

Spezial this part don´t work

 

 

"/appserver/*" {

 

pool DMZ-APP

 

persist cookie insert APPLSID $APPZeit

 

log local0. "APPL Client: [IP::remote_addr] VIP: [IP::local_addr] [LB::server]"}

 

 

Can someon help me please ?

 

----

 

 

the complett rule are

 

 

when HTTP_REQUEST {

 

 

set path [string tolower [HTTP::path]]

 

set APPZeit 7200

 

 

switch -glob $path {

 

"/basicgate/appserver/ws/rubin*" {

 

pool DMZ-Rubin-APP

 

persist cookie insert APPLSID $APPZeit}

 

"/appserver/ws/rubin*" {

 

pool DMZ-Rubin-APP

 

persist cookie insert APPLSID $APPZeit

 

log local0. "Rubin: [IP::remote_addr]"}

 

"/appserver/ws*" {

 

pool DMZ-LO-APP

 

persist cookie insert APPLSID $APPZeit}

 

"/basicgate/appserver/ws*" {

 

pool DMZ-LO-APP

 

persist cookie insert APPLSID $APPZeit}

 

"/basicgate/appserver*" {

 

pool DMZ-APP

 

persist cookie insert APPLSID $APPZeit}

 

"/appserver/*" {

 

pool DMZ-APP

 

persist cookie insert APPLSID $APPZeit

 

log local0. "APPL Client: [IP::remote_addr] VIP: [IP::local_addr] [LB::server]"}

 

"/aspnet_client*" {

 

pool DMZ-APP

 

persist cookie insert APPLSID $APPZeit}

 

default { pool DMZ-CMS

 

persist cookie insert CMSSID 3600}

 

}

 

}

 

 

 

3 Replies

  • Hi Heinen,

     

     

    What about that piece of code that doesn't work? However, I do find [LB::server] a tad suspicious.

     

     

    Bhattman
  • [LB::server] is not useful/valid in the HTTP_REQUEST event since the server pool member selection logic has not yet executed in the event sequence. Not sure what you are trying to obtain by using it. Try removing it. You can also look at the /var/log/ltm log for possible Tcl run time errors.
  • LB::server should just log the most recently selected pool name:

     

     

    http://devcentral.f5.com/wiki/iRules.lb__server.ashx

     

    LB::server returns a Tcl list with pool, node addr and port. If no server was selected yet or all servers are down, returns default pool name only.

     

     

    Heinen, what actually breaks when you test with Firefox? Can you use HttpFox or Fiddler to record the session and see more exactly what's failing?

     

     

    Do you have a OneConnect profile enabled on the virtual server? This is necessary for evaluating each HTTP request on a keepalive connection. See this article for details:

     

     

    http://devcentral.f5.com/wiki/AdvDesignConfig.ONECONNECT.ashx

     

     

    Aaron