Having multiple IP addresses, is it possible to make an arbitrary network application use only specific IP address when establishing connections to the outside world?
System-wide, routes can be used. Some applications are configurable for this. But is there a generic way?
Say, a browser should always use an IP bound to 'eth0', and a torrent-client should use an IP bound to 'eth1'.
Technically, this should explicitly pass a specific IP address to bind(2)
call when a client socket is created.