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