choose ip for outgoing connections

normaly if you got acces to numerous ip you add them as aliases to eth0. You can listen on any of them. But what about outgoing connections? For outgoing connections (like mysql connect, pings etc) basic ip of eth0 is always used.

Is it possible to specify other ip for outgoing connections without changing ip under eth0? Maybe some iptables rule? anyone?

 

 

 

 

Top