Redirect all outgoing traffic on port 80 to a different IP on the same server
Posted
by
Spacedust
on Server Fault
See other posts from Server Fault
or by Spacedust
Published on 2012-11-08T16:04:25Z
Indexed on
2012/11/10
17:04 UTC
Read the original article
Hit count: 247
I have multiple IP addresses on the same server and I would like to redirect all outgoing traffic on port 80 to a different IP on the same server just no to use always main IP.
Currently I'm using this:
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source IP;
and it works well, but it redirects everything and when I make backups over SSH backup it's failing.
System: CentOS 5.8 64-bit
© Server Fault or respective owner