cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Configure balancing with XMPP protocol

ORLANDO_GOZAR
Nimbostratus
Nimbostratus

Hello.

 

I would like to know if someone has performed a balancing with XMPP using an irule so that it reads the "TO" of the message and is sent to a specific node of the associated POOL.

 

A similar example would be to perform an irule so that when it reads a code from the HTTP header, it is sent to a specific node:

 

when HTTP_REQUEST {

log local0. "client IP: [IP::client_addr] - [virtual] - [whereis [IP::client_addr] country]"

switch -glob [IP::client_addr] {

 

  "190.50.130.0/18" 

{

  switch -glob [HTTP::header values identificadorDIS] {

    "PRD_001_TX1" { 

# Proyect Test    

     log local0. "Entra a PRD_001_TX1"

#     SSL::disable serverside

     pool pool_pay member 10.16.50.10 8020

            }

    "PRD_001_TX2" { 

     log local0. "Entra a PRD_001_TX2"

#     SSL::disable serverside

     pool pool_pay member 10.16.50.11 8020

            }

 

default   { 

       log local0. "PDV invalido: [HTTP::header values identificadorDIS] " 

       reject

       }

}       }

     }

     }

  default   { 

      log local0. "IP no permitida: client IP: [IP::client_addr] - [virtual] - [whereis [IP::client_addr] country]" 

      reject

      }

    }

}

 

...But with the XMPP protocol

 

Thank's

0 REPLIES 0