I have three machines on three networks
192.x.x.x
10.x.x.x
172.x.x.x
The routers are set to forward communication between 192. network and 10. network, and between the 10. network and the 172. network.
However, there's not routing between 192. and 172.
I want to fix that by using a machine on the 10. network to forward communication between the other two networks.
The machine has one etherent connection eth0 whose address is 10.1.1.11
I set up an aliased ip address eth0:0 to be 10.1.1.12 using
Quote:
|
ifconfig eth0:0 10.1.1.12
|
Then I tried to set forwarding rules the 10. machine such that 10.1.1.12 address will provide access to the machine 172.1.1.55 as follows
Quote:
|
# iptables -t nat -A PREROUTING -d 10.1.1.12 -j DNAT --to-destination 172.1.1.55
|
The default policies for all chains is ACCEPT.
I then try to access 10.1.1.12 from 192.1.1.20 expecting it to actually access 172.1.1.55 ; it does not work
What am I missing?