To redirect traffic from one port, you can either use iptables PREROUTING or – if need be only tcp – also rinted.
Rinetd has the advantage that the setup is simpler.
You only have to adjust the settings in /etc/rinetd.conf.
To redirect. http and https:
#source port destination port
184.108.40.206 http 220.127.116.11 http
18.104.22.168 https 22.214.171.124 https
This sends the traffic from port 80 and 443 from 126.96.36.199 to 188.8.131.52.
Before you can start rinetd on the source-server, you must stop apache as a double binding to a port is not possible.
Now we can start rinetd
by now the traffic is redirected.
It does not replace any failover-ip, because the server must continue constant, but for smaller jobs (eg the filesystem) it´s quite practical.