I want to know the way (if possible) to change the source ip address of the request packet managed by a virtual server for the one of the internal self ips of a LTM bigip(static or floating self ip), and not only the destination ip address as I read in the manuals:
In the Destination IP Address header of the request packets, theBIG-IP system changes the destination IP address (that is, thevirtual server address) to the actual address of the selected node. Inthis case, the source address in the packets (that is, the address of theclient that initiated the connection) remains unchanged.
That is, like the BIG-IP acts as a proxy for the traffic managed for that virtual server.
I have searched the manuals, but I have not found the way to make this.
You can use SNAT’s to perform source address translation. This could either be on load balanced traffic sent to the servers, or on the outbound connection for hosts originating traffic through the BIG-IP to other networks. The LTM config guide should provide good detail on picking the optimal SNAT for your scenario. If you have questions, reply here.
SNATs are used to translate traffic leaving the BIG-IP. If applied to a virtual server, a SNAT can translate the source address of a packet going to the destination server.
Could you elaborate on what traffic you’re trying to perform origin or source address translation for?
I will try to explain in more detail what I need to implement.
I have an LTM active-active configuration and I want to perform source address translation on the load balanced traffic sent to an https virtual server (I need to make source address translation because the default gateway on the load balanced web servers isn’t set to the big-ip’s floating self ip on the internal VLAN, in fact the web servers are located in a different vlan than the big-ip’s internal vlan). But, because my network arquitecture, I need that the translated source address be fixed and different for each active big-ip node, the ideal would be to use the active floating self ip of each node for the translated source address. It is possible to implement that using SNAT in an active-active configuration? please can you explain the way to make that?
Another doubt I have, in an LTM active-active HA configuration, it is possible to set a different default gateway or route table for each big-ip node?, I need to implement that to ensure traffic return along the same path (router) it entered.
The source address translation would occur between the BIG-IP and the destination server(s). You can use SNAT automap on the VIP to allow LTM to dynamically select the (or one of) the floating IP addresses on the egress VLAN. Or if you want to specify a source IP address that LTM should use, you can create a SNAT list and apply it to the VIP.
There is a general thought that using an active-active configuration is risky in that there is a tendency to load both BIG-IP’s past 50% capacity. At that point, if one unit fails, then the remaining unit cannot handle the total load. Other people might have opinions, but we’ve never implemented active-active for any of our customers.
Hoolio’s observatins about the limitations of active-active are correct, but there are some specific considerations for gateways & SNAT that you can use to support active-active configurations.
You can associate a non-default SNAT with a specific UnitID for an active-active system: Click here
You can also associate a gateway pool with a specific UnitID as described in the manual section about configuring gateway failsafe for redundant pairs: Click here
Are you wanting to specify a source IP address for LTM to use to send monitor traffic? If so, and you have a redundant pair of LTMs, this cannot work. Both units in the pair need to perform the monitor checks in order to determine the state of the pool member. And two separate network devices cannot use the same IP address at the same time. You’ll need to have the service provider allow requests from multiple IP addresses.
If I’ve misunderstood your scenario, could you provide more information on what you’re trying to do?