Forum Discussion
daviddaoud2_205
Nimbostratus
Apr 25, 2008iRule 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_Bhattman
Nimbostratus
Hi David, - daviddaoud2_205
Nimbostratus
Ok sorry for not being clear. Here is the exact scenario; - hoolio
Cirrostratus
Hi David, - daviddaoud2_205
Nimbostratus
yesssssss ! you made my day. Address translation was not activated ! - daviddaoud2_205
Nimbostratus
Hmmm ... the problem is that this Adress Translation option has solved the issue but nothing works anymore ... - hoolio
Cirrostratus
What kind of a VIP are you using the iRule on? Can you post the output from 'b virtual VIP_NAME list'? - daviddaoud2_205
Nimbostratus
First, 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. - hoolio
Cirrostratus
Are 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 } }
- hoolio
Cirrostratus
Actually, 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_Thirasuttakorn
Employee
not 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