The man page is not very clear to me on howto do POSTROUTING of port to some internal machines. What I am trying to do is port forward 2090 to some of my intranet machines. Man page says this
could someone be able to show me the correct way to write
this. This is what I have and it works for one machine only.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2090 -j DNAT --to-destination 192.168.1.2:2090
man page says this, but I recieved an error about the first ip.
iptables -t nat -A POSTROUTING -i eth0 -p tcp --dport 2090 -j DNAT --to-destination 192.168.1.2 -192.168.1.3:2090
I tried this and it has no errors but it don't work.
iptables -t nat -A POSTROUTING -i eth0 -p tcp --dport 2090 -j DNAT --to-destination 192.168.1.2-192.168.1.3:2090
help will be !!!