[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ALTQ/FreeBSD] config problem
Hi!
I am actually
writing an altq.conf file, but there seams to be some
errors.
I don't really
understand, maybe that you have more experience than me on
this.
Thank you very
much
Aymeric
________________
interface fxp0
bandwidth 2M cbq
class cbq fxp0 root NULL pbandwidth 100
################################
############ Classes
Principales
##########
class cbq fxp0 ctl_class root pbandwidth 4
control
class cbq fxp0 def_class root borrow pbandwidth 95 default
class
cbq fxp0 admin_class root borrow pbandwidth 1
filter fxp0 admin_class 0
22 0 0 0 # ssh
filter fxp0 admin_class 0 0 0 22 0 #
ssh
################################
############
priorised class (http, mail, msn ...)
80%
##########
class cbq fxp0 priorise def_class borrow pbandwidth
80
######################
## Class
for mail (high priority)
class cbq fxp0 mail_class priorise borrow
pbandwidth 80 priority 7
filter fxp0 mail_class 0 25 0 0 0
# smtp
filter fxp0 mail_class 0 0 0 25 0 #
smtp
filter fxp0 mail_class 0 110 0 0 0 # pop3
filter
fxp0 mail_class 0 0 0 110 0 # pop3
######################
## Class for Web (medium
priority)
class cbq fxp0 http_class priorise borrow
pbandwidth 80 priority 5
filter
fxp0 http_class 0 80 0 0 0 # http
filter fxp0 http_class 0
0 0 80 0 # http
filter fxp0 http_class 0 0 0 443 0 #
https
filter fxp0 http_class 0 443 0 0 0 # https
######################
## Class for IRC (low
priority)
class cbq fxp0
irc_class priorise borrow pbandwidth 80 priority 3
filter fxp0
irc_class 0 1863 0 0 0 # msn
filter fxp0 irc_class 0 0 0 1863
0 # msn
filter fxp0 irc_class 0 5190 0 0 0 #
icq
filter fxp0 irc_class 0 0 0 5190 0 # icq
filter fxp0
irc_class 0 194 0 0 0 # irc
filter fxp0 irc_class 0 0 0 194
0 # irc
#
class cbq fxp0 misc def_class borrow
pbandwidth 20 red
filter fxp0 misc 0 0 0 0
0 #other
_____________________
Here are the
errors
Mar 31
17:21:21 lof altqd[1032]: syscall error: add filter failed!: Invalid
argument
Mar 31 17:21:21 lof altqd[1032]: can't add ctl class IPv6
filter on interface 'fxp0'
Mar 31 17:21:21 lof altqd[1032]: cbq
admission failed! 1600K requested but only 0K available (1600K already
allocated)
Mar 31 17:21:21 lof altqd[1032]: cbq: admission failure (no
bandwidth): can't add class 'http_class' on interface 'fxp0'
Mar 31
17:21:21 lof altqd[1032]: Error in /etc/altq.conf, line 33. config
failed.