Forum Discussion
daviddaoud2_205
Apr 25, 2008Nimbostratus
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
- The_BhattmanNimbostratusHi David,
- daviddaoud2_205NimbostratusOk sorry for not being clear. Here is the exact scenario;
- hooleylistCirrostratusHi David,
- daviddaoud2_205Nimbostratusyesssssss ! you made my day. Address translation was not activated !
- daviddaoud2_205NimbostratusHmmm ... the problem is that this Adress Translation option has solved the issue but nothing works anymore ...
- hooleylistCirrostratusWhat kind of a VIP are you using the iRule on? Can you post the output from 'b virtual VIP_NAME list'?
- daviddaoud2_205NimbostratusFirst, thanks for your help. Here are the details about my configuration. Im using BIG-IP for a VOIP platform. Its unusual specially as BIGIP is not used as a load balancer but mainly as a packet inspector that redirect the SIP traffic to certain SIP Application server directly plugged to the BIGIP.
- hooleylistCirrostratusAre you setting the pool in the rule in the CLIENT_ACCEPTED event? If so, can you disable address translation on the virtual server and test the following rule:
when CLIENT_ACCEPTED { Check if the SIP method is NOTIFY if {[SIP::method] equals "NOTIFY"} { node 1.1.1.1 5060 } }
- hooleylistCirrostratusActually, I just read your post again and saw "Same if I use the command node.".
when CLIENT_ACCEPTED { Check if the SIP method is not NOTIFY if {not ([SIP::method] equals "NOTIFY")} { node [IP::local_addr] 5060 } }
- Nat_ThirasuttakornEmployeenot sure if this can help .... (I confess that I dont understand your configuration much)
Recent Discussions
Related Content
Â
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects