<!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&nbsp; -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&nbsp;&nbsp;&nbsp;&nbsp; prot opt source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
REDIRECT&nbsp;&nbsp; tcp&nbsp; --&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 209.168.246.234&nbsp;&nbsp;&nbsp;&nbsp; tcp dpt:80
redir ports 5000 <br>
DNAT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp&nbsp; --&nbsp; 0.0.0.0/0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 209.168.246.236&nbsp;&nbsp;&nbsp;&nbsp; tcp
dpt:5000 to:65.254.217.214:5000 <br>
<br>
Chain POSTROUTING (policy ACCEPT)<br>
target&nbsp;&nbsp;&nbsp;&nbsp; prot opt source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target&nbsp;&nbsp;&nbsp;&nbsp; prot opt source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></small></b>&nbsp;&nbsp;
<br>
<br>
It is not working.&nbsp; If I telnet 209.168.246.236 5000 from my desktop<br>
it seems to never conenct.&nbsp; Just times out.&nbsp; Can someone tell me<br>
what I did wrong?<br>
<br>
Thanks,<br>
Chris<br>
<br>
</body>
</html>