One that forwards all IP packets to anotehr IP....Please help me asap

some please could provide me with command to do it:
> now if i want to make so all the domains will go to the new server
> before even i updated the dns of my main domain name pchost.co.il ,
>
> is that possible?

In order words, you need all the requests, coming to your old server, to
be redirected to the new one. That is done using the iptables tool.
One that forwards all IP packets to anotehr IP
DMA (7:42 PM) :


All you need is _approximately_:
# iptables -t nat -A PREROUTING -p tcp -d 10.0.0.1 --dport 80 -j DNAT --to-destination 10.0.0.2
# iptables -t nat -A POSTROUTING -t tcp -d 10.0.0.2 --dport 80 -j SNAT --to-source 10.0.0.1
where 10.0.0.1 is your old server and 10.0.0.2 is your new server.

We need the commands to do it safe and fast?

Some one could help?

Thanks!

 

 

 

 

Top