| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello everyone, I have a question: is it possible to use iptables to redirect every packet received by a host to another entirely different host (transparently for the user)? I ask this because the company I work in is moving gradually to another office space, which offers a different IP than our current office space. I need to somehow redirect every packet received by my current IP to my new IP. I tried using iptables for that using the following line: iptables -t nat -A PREROUTING -i eth0 -p tcp \ -j DNAT --to-destination XXX.YYY.ZZZ.WWW But that didn't work. I tried using -j REDIRECT, but it seems this only works to redirect packets to itself, not other hosts. Sorry about my poor English, but it's not my primary tongue. Regards, Flavio C. Prado fprado@pmovil.com.br _______________________________________________ LinuxManagers mailing list - http://www.linuxmanagers.org submissions: LinuxManagers@linuxmanagers.org subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
[Home] [Kernel List] [Linux SCSI] [Video 4 Linux] [Linux Admin] [Yosemite News] [Motherboards]