<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I've moved a server to a new colo and I want to redirect services from<br>
the first colo to the second until the DNS change takes full effect.<br>
<br>
Here is what I've done.<br>
<br>
<b><tt><small>[root@demo tomcat]# ifconfig eth0:2 209.168.246.236 <br>
[root@demo tomcat]# iptables -t nat -A PREROUTING -d
209.168.246.236/32 -i eth0 -p tcp --dport 5000 -j DNAT
--to-destination 65.254.217.214:5000<br>
<br>
<small><br>
</small></small></tt><small><tt>[root@demo tomcat]# iptables -L -n -t
nat<br>
Chain PREROUTING (policy ACCEPT)<br>
target prot opt source destination <br>
REDIRECT tcp -- 0.0.0.0/0 209.168.246.234 tcp dpt:80
redir ports 5000 <br>
DNAT tcp -- 0.0.0.0/0 209.168.246.236 tcp
dpt:5000 to:65.254.217.214:5000 <br>
<br>
Chain POSTROUTING (policy ACCEPT)<br>
target prot opt source destination <br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target prot opt source destination </tt></small></b>
<br>
<br>
It is not working. If I telnet 209.168.246.236 5000 from my desktop<br>
it seems to never conenct. Just times out. Can someone tell me<br>
what I did wrong?<br>
<br>
Thanks,<br>
Chris<br>
<br>
</body>
</html>