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
22.214.171.124 http 126.96.36.199 http
188.8.131.52 https 184.108.40.206 https
This sends the traffic from port 80 and 443 from 220.127.116.11 to 18.104.22.168.
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.