Forum Discussion

daviddaoud2_205's avatar
daviddaoud2_205
Icon for Nimbostratus rankNimbostratus
Apr 25, 2008

iRule to change IP destination

Hello,

 

 

I want to define an iRule for the following scenario:

 

 

A----- BIGIP ----> B

 

 

when A sends a packet to B, BIGIP should send it to C_pool. In C_pool, there is only one member.

 

If I use in an iRule "pool poolname", the message is redirected but the IP in the packet is not changed.

 

 

As C is an application server, it can not see this packet (even if Wireshark can) ... my question is then: how can i cange the IP destination address ?

 

 

Thanks,

 

 

David
  • Actually, I have found the final solution. It may sound obvious but thanks to you it all makes sense:

     

     

    - When Address Translation is activated ... the packets are lost in the BIG-IP. As hoolio said, the only way to route them is to specify for each type of REQUEST and RESPONSE, where to send the SIP messages. And apply this iRule for the VS UDP 5060 dedicated to SIP.

     

     

    - It is working fine now and the code looks like:

     

     

    when SIP_REQUEST {

     

     

    if { SIP::method equals "INVITE"} {

     

     

    pool callmanager_pool

     

    }

     

     

    if { SIP::method equals "NOTIFY"} {

     

     

    pool SIPASserver_pool

     

     

    }

     

    }

     

     

    same with SIP_RESPONSE.

     

     

    I have made some testing and it doesnt introduce any delays in the call establishment.

     

     

    Thank you guys for your help.

     

     

    David