Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 15:22:10 -0800 (PST)
From:      Dror Matalon <dror@dnai.com>
To:        freebsd-isp@FreeBSD.org
Subject:   Multiple virtual domains (was Re: Please help!) 
Message-ID:  <Pine.BSD/.3.91.951207150031.26008E-100000@venus.dnai.com>
In-Reply-To: <199512061652.KAA08482@brasil.moneng.mei.com>

next in thread | previous in thread | raw e-mail | index | archive | help

This works, but it's ugly for a couple of reasons. 
1. Your ethernet card is listening and sending arps for all these
addresses. This is no big deal with 5-10 aliases. What do you
do when you have 500?
2. Since these are all real address on your network you can only use 250
or so of these. What do you do if you need more?

The solution we're looking at involves vif Virtual IF. It creates
an if interface that doesn't really point to an Ethernet Card but
instead knows that all packets coming to that interface are for
the local machine. A more detailed description is in 
http://www.apache.org/docs/vif.info. It includes source code to
integrate this into Suns. 

The big question is, has anyone ported this to freebsd?



On Wed, 6 Dec 1995, Joe Greco wrote:

> 
> tazenda.sol.net# head /etc/start_if.ed0
> #! /bin/sh -
> /sbin/ifconfig ed0 206.55.64.254 netmask 0xffffff80
> /sbin/ifconfig ed0 alias 206.55.64.130 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.131 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.132 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.133 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.134 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.135 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.136 netmask 0xffffffff
> /sbin/ifconfig ed0 alias 206.55.64.137 netmask 0xffffffff
> tazenda.sol.net# view /usr/local/www/server/conf/httpd.conf
> [..... all sorts of stuff .....]
> MaxRequestsPerChild 30
> 
> # VirtualHost: Allows the daemon to respond to requests for more than one
> # server address, if your server machine is configured to accept IP packets
> # for multiple addresses. This can be accomplished with the ifconfig
> # alias flag, or through kernel patches like VIF.
> 
> # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
> # See alto the BindAddress entry.
> 
> <VirtualHost www.sol.net>
> ServerAdmin webmaster@www.sol.net
> DocumentRoot /usr/local/www/docs/www.sol.net
> ServerName www.sol.net
> ErrorLog logs/www.sol.net-error_log
> TransferLog logs/www.sol.net-access_log
> </VirtualHost>
> 
> <VirtualHost www.gmttech.ods.net>
> ServerAdmin webmaster@www.gmttech.ods.net
> DocumentRoot /usr/local/www/docs/www.gmttech.ods.net
> ServerName www.gmttech.ods.net
> ErrorLog logs/www.gmttech.ods.net-error_log
> TransferLog logs/www.gmttech.ods.net-access_log
> </VirtualHost>
> 
> <VirtualHost klements.ods.net>
> ServerAdmin webmaster@klements.ods.net
> DocumentRoot /usr/local/www/docs/klements.ods.net
> ServerName klements.ods.net
> ErrorLog logs/klements.ods.net-error_log
> TransferLog logs/klements.ods.net-access_log
> </VirtualHost>
> 
> Note that DNS maps the virtual host name to a physical address or alias.
> 
> Hopefully this will be enough to get you on the right track.  "Works for
> me."


Dror

Dror Matalon                                            Voice: 510 649-6110
Direct Network Access                                   Fax:   510 649-7130
2039 Shattuck Avenue                                    Modem: 510 649-6116
Berkeley, CA 94704                                      Email: dror@dnai.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD/.3.91.951207150031.26008E-100000>