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