LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I redirect all requests for 1 ip to a different IP? with iptables (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-redirect-all-requests-for-1-ip-to-a-different-ip-with-iptables-358867/)

abefroman 08-31-2005 12:25 PM

How can I redirect all requests for 1 ip to a different IP? with iptables
 
How can I redirect all requests for 1 ip to a different IP?

Is this correct?
iptables -t nat -A PREROUTING -i eth1 -p tcp -d 209.73.26.183 -j DNAT --to 209.249.123.116

"Send all outbound traffic on eth1 intended for 209.73.26.183 to 209.249.123.116"

nixcraft 08-31-2005 01:09 PM

Can't you use rinetd - Internet TCP redirection server. It is simple and easy to use. I used it in the past and it is nice.


All times are GMT -5. The time now is 02:36 PM.