Forward http traffic to another ip address with iptables
There are three potential problems I see (contary to the other answer I don't see anything that would cause a "loop" even in the unedited version of your question).
- IP forwarding must be enabled.
- After being natted and placed back on the network the packet may fall victim to source address filtering as it looks very much like a spoofed packet.
- Responses to packets that go through a NAT must go through the same NAT so the reverse translation can be performed. Otherwise the client will get a response with the wrong source IP/port which it is likely to drop (if it has not already been dropped by reverse path filtering).
You can work arround points 2 and 3 by using a SNAT or MASQURADE rule in addition to the DNAT but if you do that then you lose the original source IP of the traffic. That will make abuse control very difficult.
Another soloution to points 2 and 3 would be to set up a VPN between the two servers. Then use DNAT to forward traffic over the VPN and source IP based routing to bring the replies back to the NAT.