Unusual NAT question
Posted on 2004-08-22
I have to configure a rather unusual network address translation scheme in a linux box;
These are the interfaces and information about them
eth0 - This interface has the IP address of 10.10.4.5 with gateway 10.10.4.1
eth1 - This interface has the address of 126.96.36.199 and is a NAT gateway itself which is connected to a single machine with IP 188.8.131.52
eth2 - This interface has the address of 10.0.0.2 and connects to a private LAN
I wish to do the following operation with these three interfaces;
- [any] request from outside to eth0's local IP number 10.10.4.5 must first be redirected to 184.108.40.206 [that machine connected to eth1]
- The machine [220.127.116.11] that gets redirected packets from 10.10.4.5 must send them back 10.10.4.5**
!! But this 10.10.4.5 is a different host, not the local IP number assigned eth0. This causes all the problem in this scheme now...
To simplify the issue I could explain the following;
Consider that there is machine with two ethernet ports:
- 1st Ethernet port has an address assigned as 10.10.4.5
- 2nd Ethernet port has an address assigned as 10.0.0.2
These two networks are not in the same subnet physically, they are separate networks:
In the subnet to which the 2nd ethernet port is connected, there is a host whose address is the same as 10.10.4.5, and this address of this host must not be changed. So there are two networks, and two different hosts on both with the same address.
What can I do to resolve the issue without changing the IP addresses. (Indeed if I change the addresses it would be very easy, but it will not be convenient for our current network. We are just trying to connect one network to the other through two hosts that have the same IP address.
Any urgent help would be greatly appreciated...