Re: Forcing a connection from a particular NIC

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

 



Hi,

This seems very close to what I was looking for. Thanks.

Just one more thing- is there any way of making the LD_PRELOAD associate with 
socket() calls from only a particular 'pid'. If I set the LD_PRELOAD 
environment variable for only one shell would it affect the socket calls which 
are initiated by other programs?
I only need to hijack socket calls() emanating from a particular pid.


thanks,

Ronak

Quoting Gilad Ben-Yossef <gilad@codefidence.com>:

> 
> 
> 
> Henrik Nordstrom wrote:
> > On Thu, 26 Aug 2004, Anupam Kapoor wrote:
> > 
> >> how about limiting the packet through a specific interface via the
> >> SO_BINDTODEVICE socket
> >> option ? i guess that's what you (henrik) means. right ?
> > 
> > 
> > That is one way of many. I was responding to the specific issue of
> being 
> > able to do this without modifying the applicatio.
> > 
> 
> 
> No need to nodify the app. See: 
> http://www.uwsg.iu.edu/hypermail/linux/net/0401.3/0009.html
> 
> PS. I keep reposting the same link in response to this kind of question
> 
> every couple od weeks. If there's some sort of linux-net FAQ, I think 
> this should on it.
> 
> Gilad
> 
> -- 
> Gilad Ben-Yossef <gilad@codefidence.com>
> Codefidence. A name you can trust(TM)
> Tel: +972.9.8650475 ext. 201, Fax: +972.9.8850643
> http://www.codefidence.com
> 
> 

-
: 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