Redirect entire IP traffic

Hello,

i need to move the public IP of my servers. Since i can´t change the dns servers at the same time, i want to redirect all traffic reaching the old ip address to the new one. I fiddled around with nat rules, but with no luck.

I have a dst-nat rule

chain=dstnat action=dst-nat to-addresses= protocol=tcp dst-address=

which i expect to redirect all tcp traffic, the Statistics of the rule show activity, but nothing happens (e.g. Port 80).

Am i on the right way?

thanks for any help
Oliver

The rule you have showed is going to redirect traffic destined to new IP address to (to-addresse) IP-old.

You may need to havfe a src-nat rule as well for traffic coming from that server to be natted out properly as the old IP. Use a “Private” IP to do the NATing too, this way, you can exclucde traffic going to your new PUblic IP that would be on the server as well.