httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@atropos.c2.org
Subject Re: slowlaris ip alias/vhost question
Date Fri, 15 Mar 1996 22:18:45 GMT
	Thanks much.

> 
> Use the following script (place it in /etc/init.d/ipaliases) and
> hard link it to /etc/rc2.d/S00ipaliases.
> 
> The interface:blah stuff is documented in 2.5, and existed at least since 
> 2.3.
> 
> BTW 2.5 has some really neat TCP/IP features like hashed lookup of TCP 
> connections and stuff that make it ideal to handle lots of TCP connections.
> Sure the heal beat a linear search :)
> 
> Also, be sure to do a:
> 
>         /usr/sbin/ndd -set /dev/tcp tcp_conn_req_max 1024
> 
> somewhere to raise that listen queue :)
> 
> in 2.4 you can only raise it to 32, but that was also fixed in 2.5, if
> you need more than 32 in 2.4 or easlier, you can adb the kernel modules.
> 
> 
> Rumour has it that 2.6 will be a real kick butt for netowrk stuff, but it 
> is a bit away.
> 
> ::::
> /etc/init.d/ipaliases
> ::::
> #!/sbin/sh
> #
> PATH=/usr/bin:/bin
>  
> INTERFACE="le0"
> 
> IPALIASES="a.b.c.d e.f.g.h ........"
> 
> case $1 in
> 'start')
>         count=1
>  
>         for addr in ${IPALIASES}
>         do
>                 /usr/sbin/ifconfig ${INTERFACE}:${count} ${addr} netmask 
> 255.255
> .255.224 up
>                 count=`expr ${count} + 1`
>         done
>         ;;
> 'stop')
>         count=1
>  
>         for addr in ${IPALIASES}
>         do
>                 /usr/sbin/ifconfig ${INTERFACE}:${count} down
>                 /usr/sbin/ifconfig ${INTERFACE}:${count} 0.0.0.0
>                 count=`expr ${count} + 1`
>         done
>         ;;
> *)
>         echo "usage: /etc/init.d/ipaliases {start|stop}"
>         ;;
> esac
> 
> 
> 
> On Fri, 15 Mar 1996 sameer@atropos.c2.org wrote:
> 
> > 	quick question - does solaris 2.4 have ip aliases or does one need
> > to install 'vif' or something similar?
> > 
> > thanks,
> > -- 
> > Sameer Parekh					Voice:   510-601-9777x3
> > Community ConneXion, Inc.			FAX:     510-601-9734
> > The Internet Privacy Provider			Dialin:  510-658-6376
> > http://www.c2.org/ (or login as "guest")		sameer@c2.org
> > 
> 
> --
> Cliff Skolnick                                      cliff@organic.com
> 
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759
> 


-- 
Sameer Parekh					Voice:   510-601-9777x3
Community ConneXion, Inc.			FAX:     510-601-9734
The Internet Privacy Provider			Dialin:  510-658-6376
http://www.c2.org/ (or login as "guest")		sameer@c2.org

Mime
View raw message