Forum Discussion

Matt_May_64216's avatar
Matt_May_64216
Icon for Nimbostratus rankNimbostratus
Oct 06, 2005

Reading TCP:Payload from a SSL'd Virtual Server

Im trying to read the first few bytes of a incomming connection to decide where it goes. When i have a SSL Profile (Client) setup on the Virtual server the TCP::Payload returns the encrypted data. Is there a way to read the decrypted message?

when CLIENT_ACCEPTED {
   TCP::collect 5
}
when CLIENT_DATA {
   log "Received Client date ... [TCP::payload]"
   if {[TCP::payload ] starts_with "UK" } {
      pool UAT-UK 
      log "UK"
   } elseif {[TCP::payload] starts_with "Ofex" } {
      pool UAT-Ofex
      log "Ofex"
   } else {
      log "Lookup Failed"
   }
}

Kind regards

Matt May