Redirecting IP > iptables?
I'm hoping someone can help me with my problem. :)
I'll start with explaining my situation. This is a box with iptables and 1 nic. It has a bunch of ip addresses and i want to redirect ip1 to ip2 with the end user seeing he's connected to ip2 (while having connected to ip1 intentionally). All traffic is staying internally.
I'm trying to redirect, if thats the right word, externalIP1 to externalIP2. I know this can be done with configuring the nat of iptables by using DNAT. This is however not exactly what I'm trying to achieve.
I would like the user to connect to externalIP1 and end up on externalIP2. I believe that with DNAT every packet gets tranferred from ip1 to ip2 internally while i would like a solution that somehow resolves ip1 into ip2.
Is this even possible? :confused:
The reason for this is rather odd and it is not load related.
Thanks for your input, it is much appreciated.