IP Forwarding

IP forwarding needs to enabled: edit /etc/sysctl.conf and ensure that the line net.ipv4.ip_forward = 1 is there and not commented out.

Then you need to execute this command:

  sudo iptables -t nat -A OUTPUT -d $SOURCEIPADDRESS -j DNAT --to-destination $DESTIPADDRESS

Where $SOURCEIPADDRESS is the address that you want redirecting to$DESTIPADDRESS.

Note - this command doesn't survive a reboot.