Forum Discussion

kona2-9_51980's avatar
kona2-9_51980
Icon for Nimbostratus rankNimbostratus
Sep 22, 2011

Pool port redirection

Currently we have an iRule that is receiving traffic on port 80 when http is hit we are to redirect to pool .

 

 

The Log file shows the traffic making it into the LTM << Sep 22 08:34:57 local/tmm3 info tmm3[6060]: Rule MMS_iRule : 10.201.61.129 sent request for xml file to pool_8080>>

 

 

 

 

But tcpdump nevers shows the traffic going out on to my members on this port.

 

 

 

does anyone have any suggestions?

 

 

 

irule snippet:

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::path]] ends_with ".xml"}{

 

log local0. "[IP::remote_addr] sent request for xml file to Pool_8080"

 

pool Pool_8080

 

}

 

if { [string tolower [HTTP::path]] ends_with ".rdf"}{

 

pool Pool_8080

 

}

 

 

 

 

 

 

  • Brian_Deitch_11's avatar
    Brian_Deitch_11
    Historic F5 Account
    What is your tcpdump syntax? Can you validate that the traffic is being load balanced via the server?

    This might work a little bit better for you.

    when HTTP_REQUEST {
      if { [string tolower [HTTP::uri]] ends_with ".xml" } {
           log local0. "[IP::remote_addr] sent request for xml file to Pool_8080"
                   log local0. "[HTTP::uri] was presented to the VIP
               pool Pool_8080
      } elseif { [string tolower [HTTP::uri]] ends_with ".rdf" } {
           pool Pool_8080
     }
    } 
  • Hi kona2-9,

    If you are wanting to verify that the LTM is sending the traffic do then you can slightly modify your logging statement adding in the destination server port.

    
    when HTTP_REQUEST {
    if { [string tolower [HTTP::path]] ends_with ".xml" } {
    log local0. "[IP::remote_addr]:[TCP::server_port] sent request for xml file to Pool_8080"
    pool Pool_8080
    }
    if { [string tolower [HTTP::path]] ends_with ".rdf" } {
    pool Pool_8080
    }
    }