Forward packets to other server

Hello,
I want to forward packets from one server to other servers (depends on the IP) by iptables. Could anyone help?

Say, I want to forward 172.16.1.1 and 172.16.1.2 to 10.1.1.1 and 10.1.1.2 respectively. (172.16.1.1 and .2 are on the same server, but 10.1.1.1 and .2 are on different server.) How can I do it?

Thanks in advance
mmm

 

 

 

 

Top