[381] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Feature/hack for multi-homed hosts (esp. ifconfig alias)

daemon@ATHENA.MIT.EDU (H. Peter Anvin)
Sat May 27 16:39:48 1995

To: submit-linux-dev-net@ratatosk.yggdrasil.com
From: hpa@asgard.yggdrasil.com (H. Peter Anvin)
Date: 27 May 1995 19:52:00 GMT
Reply-To: Peter.Anvin@linux.org (H. Peter Anvin)

Followup to:  <m0sFKFQ-0000XQZ@chiark.al.cl.cam.ac.uk>
By author:    iwj10@cus.cam.ac.uk (Ian Jackson)
In newsgroup: linux.dev.net
>
> There is currently a small problem when trying to use ifconfig alias
> or dummy devices or just plain multiple interfaces to give their
> machine several IP#'s which respond differently to incoming
> connections.
> 
> Most TCP/IP-based programs aren't aware that there is a decision to be
> made about which local address to bind to, and just pass `bind'
> all-zeroes in the IP# field.  This causes the resulting socket to
> listen on all the machine's interfaces.
> 

This isn't a problem, at least not IMHO.  In fact, this is *exactly*
what the program wants - bind to all existing IP local addresses.
This is most frequently requested for httpd, and there *are* properly
modified version of httpd (Apache, for example).  One program,
however, which probably should be modified is inetd, for obvious reasons.

	/hpa
-- 
PGP public key available - finger hpa@yggdrasil.com
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

home help back first fref pref prev next nref lref last post