Re: Forcing a connection from a particular NIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Aug 2004 rss26@njit.edu wrote:

Given a setup where there are multiple NIC's (some of them being virtual
eth1:1, etc and others being real) and if they all have the same default gw
can a preference be made by a network-application such as the browser of
selecting to use a one NIC over another.

The idea here is that I should be able to select the source IP which should be
used by the network-application.

You can in most cases accomplish this with a little LD_PRELOAD hackery, to modify the socket calls to always bind() to the desired address when the application tries to call connect().


Much in the same way that the runsocks wrapper intercepts network calls of dynamically linked applications and redirects them to SOCKS.

Regards
Henrik

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux