I have two linux servers in two different datacenters with the following IPs:
Server1: 220.127.116.11 Server2: 18.104.22.168 and 22.214.171.124
I need to route all traffic from 126.96.36.199 (Server2) to 188.8.131.52 (Server1) but in way that Server1 would see 184.108.40.206 as a local ip.
So if I run ifconfig i would get:
eth0 220.127.116.11 eth0:1 18.104.22.168
Is there any type of software that can do this?
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.