Re: Bind to specify sending NIC on multi-homed computer
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 10:38:54 +0200
Just my few cents in addition to Eugene's message...
"Koji Ishii" <KojiIshii@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FCF28BAA-2D4C-4DD9-A259-DFBCF90EA181@xxxxxxxxxxxxxxxx
>I found that even if I bind a socket to a local address, packets can go out
> from the other NIC. From the last paragraph of this KB:
> http://support.microsoft.com/kb/175396
> it looks like this is a by design.
>
> But my question is why.
> * Bind() is used to be used when dev wants to use a specific NIC. This
> design breaks developers' expectations by experiences.
No, metric is the king in the any RT embedded Os not only Windows use it to
decide
what is optimal path for sending data
> * Because of this design, non-Admin users can send UDP packets with their
> favorite source IP address.
Why not , that's what you want when you did bind()!
>Just plug two NICs and assign your favorite
> address to one NIC, then connect the other to Internet or Intranet. Isn't
> this a security probelm with current XP stack?
What ? Your packet send from different NIC that IP assigned , so what ?
> * When dev really wants to send packets from a NIC -- in my case, I want
> to
> seach an UPnP device connected to non-default NIC -- it's really hard to
> achieve. All search query packets go out from default NIC, and the device
> won't receive them, regardless I bind or not.
Are you sure ? Even packet went from default NIC the source IP is of one you
set so data will send back to that IP. OTOH M-SEARCH in SSDP from Control
Point went multicasted so if device announced itself before it have to
receive the M-SEARCH.
Arkady
>
> I originally thought this is a bug in the stack and queried KB. And this
> KB
> really surprised me. Does anyone have any opinions? Am I missing
> something?
.
- References:
- Bind to specify sending NIC on multi-homed computer
- From: Koji Ishii
- Bind to specify sending NIC on multi-homed computer
- Prev by Date: Re: urgent..to connect to port 80 plz help
- Next by Date: Re: urgent..to connect to port 80 plz help
- Previous by thread: Re: Bind to specify sending NIC on multi-homed computer
- Next by thread: How to set the properties of a dial-up connection?
- Index(es):
Relevant Pages
|