I have a Cent OS setup running a pretty standard LAMP stack and I have two publicly available IP addresses (eth0 and eth0:1).
I want to use the second IP address (eth0:1) when connecting out to a remotely hosted MySQL database. How can I go about that?
Thanks!
If you have root access, you can do SNAT with iptables to use a specific source IP for this particular destination: