Forum Discussion

ORLANDO_GOZAR's avatar
ORLANDO_GOZAR
Icon for Nimbostratus rankNimbostratus
Sep 01, 2021

Configure balancing with XMPP protocol

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

No RepliesBe the first to reply