I have two linux servers in two different datacenters with the following IPs:
Server1: 4.4.4.4
Server2: 8.8.8.8 and 8.8.8.9
I need to route all traffic from 8.8.8.9 (Server2) to 4.4.4.4 (Server1) but in way that Server1 would see 8.8.8.9 as a local ip.
So if I run ifconfig i would get:
eth0 4.4.4.4
eth0:1 8.8.8.9
Is there any type of software that can do this?
Thanks.
Additional details
The reason why i'm trying to do this is a bit complex. I will try to summarize.
I have a mail server in Server 1 and Server 2 ( currently a relay for Server 1 ).
The logs of this mail server are processed by a software (closed source, company who makes it is out of business) which provides some useful information to the company that I work. But it can't capture data for the relayed emails. Maybe some missing fields/data, I don't know for sure.
I have two options:
- Write a new software ( expensive )
- Be able to assign the IP in Server 1 to make it work as a local IP. This way I don't have to use the relay anymore, and the old software should be able to process logs normally.