firewall + network

firewall + network

Post by Frank&Stei » Thu, 10 Oct 2002 16:58:54



Hi,

Currently we are migrating from one ISP to another. This is the case (ip
addresses have been replaced by fake ones):

current public IP: 123.123.123.1
new public IP: 234.234.234.1

The public IP's are dnatted to an internal address:
iptables -t nat -A PREROUTING -p tcp -d 123.123.123.1 --dport 80 -j
DNAT --to 10.0.0.1:80

Currently the default gateway of the firewall points to the 123.123.123.2
address...

Is there a (simple) way to let the 2 public IP's co-exist for some time,
untill we migrated DNS to the new provider?
I want to replace the default gw with 234.234.234.2, but I want the
webserver to be reachable by the 2 public IP addresses 123.123.123.1 and
234.234.234.1. Can this be accomplished with iptables?

Thanx,
E.T.