I have three machines on three networks
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
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 220.127.116.11 as follows
# iptables -t nat -A PREROUTING -d 10.1.1.12 -j DNAT --to-destination 18.104.22.168
The default policies for all chains is ACCEPT.
I then try to access 10.1.1.12 from 22.214.171.124 expecting it to actually access 126.96.36.199 ; it does not work
What am I missing?