Subject: Re: FTPD: disallowing concurrent connections from same IP
To: , <netbsd-users@netbsd.org>
From: John Maier <jmaier@midamerica.net>
List: netbsd-users
Date: 02/18/2003 17:45:59
Well folks, I have an Alpha 3000/300 so I decided to give ALTQ a try.

I setup ALTQ and added Kernel options:
options         ALTQ
options         ALTQ_CQB
options         ALTQ_RED


Installed kernel and rebooted ...

setup /etc/altq.conf ....

ran altqd ....

tada! it didn't work!  hehe
/var/log/messages:
Feb 18 16:51:18 alpha altqd[286]: ALTQ config file is /etc/altq.conf
Feb 18 16:51:18 alpha altqd[286]: tbr installed on le0 (rate:10.00M
size:5.86K)
Feb 18 16:51:18 alpha altqd[286]: CBQ open: Operation not supported by
device
Feb 18 16:51:18 alpha altqd[286]: syscall error: can't add cbq on interface
'le0': Operation not supported by device
Feb 18 16:51:18 alpha altqd[286]: Error in /etc/altq.conf, line 5.  config
failed.

----------------------------------------------------------------------------
--------
My altq.conf:
#
# le0
#
#
interface le0 bandwidth 10M cbq    # this is line 5
class cbq le0 root NULL pbandwidth 100

class cbq le0 tcp root pbandwidth 15 red
 filter le0 tcp 0 0 0 0 6 # other tcp

class cbq le0 ftp root pbandwidth 1 red
 filter le0 ftp 0 0 0 20 6 # ftp
 filter le0 ftp 0 0 0 21 6 # ftp

class cbq le0 other root borrow pbandwidth 69 red
 filter le0 other 0 0 0 80 6 # http
 filter le0 other 0 80 0 0 6 # http
 filter le0 other 0 6000 0 0 6 # xwin
 filter le0 other 0 0 0 0 1 # icmp
 filter le0 other 0 0 0 0 17 # udp


jam