Hello,
1) First type the following command that ensures that requests arriving on port 5000 at IP 192.168.2.2 be forward to the IP address on port 80 192.168.2.3.
Code:
iptables-t nat-A PREROUTING-d 192.168.3.3-p tcp - dport 5000-j DNAT - to-dest 192.168.3.3:80
2) Now is the logical part, but to think. Must type the following command will change the IP address of the addressee, package forward to that of the machine with iptables (192.168.2.2). All this is very logical because if the answer to the query will return forward directly to the machine where the original query was issued and it is not okay because it is necessary that all the traffickers transported through the computer with iptables who will undertake to follow properly all the requests. I hope this information will help you.
Bookmarks