Miguel_Alfaro_6
Jun 15, 2008Nimbostratus
Irule to change dest IP and save the old one into the packet
Hi i'm new with irules and need to know if the following is possible
I need in to change a packet destination ip address to 172.16.49.70 and save the old ip "x.x.x.x" into any place in a packet.
something like this:
when CLIENT_ACCEPTED {
set firstIP [IP::remote_addr]
set secondIP "172.16.49.70"
[IP::remote_addr] replace [IP::remote_addr] $secondIP
here i need to save "firstIP" into the packet
}
And in a second ltm another irule that raplace the remote address with the one into the packet.
when CLIENT_ACCEPTED {
here I need look into the packet and find "firstIP"
[IP::remote_addr] replace [IP::remote_addr] $firstIP
}
it is that possible?
how close i am?