[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq 1378] altq3.1 + pppoe + cbq



Title: Message
thanks for releasing altq3.1 , not sure i get a bug before, but when trying again with 3.1 i get no more problems (see altq post 1354) . Here is my new problem,
 
when i run altqd i get
 
Feb 28 18:08:08 gateway altqd[738]: syscall error: add filter failed!: Invalid argument
Feb 28 18:08:08 gateway altqd[738]: can't add ctl class IPv6 filter on interface 'ppp0'
Feb 28 18:08:08 gateway altqd[738]: Unknown keyword 'def_class' in /etc/altq.conf, line 7
Feb 28 18:08:08 gateway altqd[738]: Error in /etc/altq.conf, line 7.  config failed.
 
i don't use IPV6 and the goal is to limit the transfer rate from internet to my hotline server (192.168.1.20) from 512kbs to 400kbs (or whatever until it doesn't use all bandwith) , i get my altq.conf from cbq_sample files. altq is setup on the gateway which connect internet thought a ppoe DSL modem.
 
thanks for help
 
here is my altq.conf

interface ppp0 bandwidth 512K cbq
class cbq ppp0 root_class NULL pbandwidth 100
class cbq ppp0 def_class root_class borrow pbandwidth 95 default
# tcp, udp, mcast
class cbq ppp0 tcp_class def_class borrow pbandwidth  40
 filter ppp0 tcp_class 0 0 0 0 6
class cbq en0 udp_class def_class borrow pbandwidth 40
 filter ppp0 udp_class 0 0 0 0 17
class cbq en0 mcast_class def_class pbandwidth 10
 filter ppp0 mcast_class 224.0.0.0 netmask 0xf0000000 0 0 0 17
# http ftp
class cbq ppp0 http_class tcp_class borrow pbandwidth  10
 filter ppp0 http_class 0 0 0 80 6
class cbq en0 ftp_class tcp_class borrow pbandwidth  10
 filter ppp0 ftp_class 0 0 0 20 6
 filter ppp0 ftp_class 0 20 0 0 6
#hotline
class cbq ppp0 hotline_class def_class borrow pbandwith 50 default
 filter ppp0 hotline_class 0 5500 0 0 6

here is my altq options include 

"arch/i386/conf/MIN"

# a pseudo device needed for ALTQ
pseudo-device altq   # altq pseudo-device

# ALTQ options
options  ALTQ  #alternate queueing
options  ALTQ_CBQ #class based queueing
options  ALTQ_RED

here is my kernel config file

# $NetBSD: GENERIC,v 1.354.2.19 2002/01/24 22:37:37 he Exp $
# GENERIC -- everything that's currently supported
include "arch/i386/conf/std.i386"
#ident   "GENERIC-$Revision: 1.354.2.19 $"
maxusers 10
# CPU support.  At least one is REQUIRED.
options  I686_CPU
# CPU-related options.
options  MATH_EMULATE
options  VM86
options  DUMMY_NOPS
# Standard system options
options  INSECURE
options  RTC_OFFSET=60
options  NTP
options  KTRACE
options  LKM
# File systems
file-system  FFS
file-system  MFS
file-system  FDESC
file-system  KERNFS
file-system  NULLFS
file-system  UMAPFS
# File system options
options  QUOTA
options  SOFTDEP
# Networking options
options  INET  
options  PPP_BSDCOMP
options  PPP_DEFLATE
options  PPP_FILTER
options  PFIL_HOOKS
options  IPFILTER_LOG
options         IPFILTER_DEFAULT_BLOCK
# wscons options
options  WSEMUL_VT100
options  WS_KERNEL_FG=WSCOL_BLUE
options  WS_KERNEL_BG=WSCOL_BLACK
options  WSDISPLAY_COMPAT_SYSCONS
options  WSDISPLAY_DEFAULTSCREENS=6
options  PCDISPLAY_SOFTCURSOR
# Kernel root file system and dump configuration.
config  netbsd root on ? type ?
# Device configuration
mainbus0 at root
# PCI bus support
pci* at mainbus? bus ?
pci* at pchb? bus ?
pci* at ppb? bus ?
# PCI bridges
pchb* at pci? dev ? function ?
pcib* at pci? dev ? function ?
ppb* at pci? dev ? function ?
# XXX 'puc'
puc* at pci? dev ? function ?
# ISA bus support
isa* at pcib?
# Coprocessor Support
npx0 at isa? port 0xf0 irq 13
# Console Devices
# ISA console
options  FRENCH_KBD
# wscons
pckbc0  at isa?
pckbd*  at pckbc?
vga*  at pci? dev ? function ?
wsdisplay* at vga? console ?
wskbd*   at pckbd? console ?
# IDE and related devices
pciide* at pci? dev ? function ? flags 0x0000
wd* at pciide? channel ? drive ? flags 0x0000
atapibus* at pciide? channel ?
# ISA floppy
fdc0 at isa? port 0x3f0 irq 6 drq 2
fd* at fdc? drive ?
# Network Interfaces
ex* at pci? dev ? function ?
exphy* at mii? phy ?
# Pull in optional local configuration
include "arch/i386/conf/GENERIC.local"
# Pseudo-Devices
# disk/mass storage pseudo-devices
pseudo-device md  1
pseudo-device vnd  4
# network pseudo-devices
pseudo-device bpfilter 8
pseudo-device ipfilter
pseudo-device loop
pseudo-device ppp
pseudo-device tun  2
pseudo-device gre  2
pseudo-device ipip  2
pseudo-device gif  4
pseudo-device vlan
# miscellaneous pseudo-devices
pseudo-device pty  64
pseudo-device tb  1
# rnd works; RND_COM does not on port i386 yet.
pseudo-device rnd
# mouse & keyboard multiplexor pseudo-devices
pseudo-device wsmux  2
I'm also preparing a web page to config a netbsd box as a firewall with ipf , and wish to provide help about altq (the hardest stuff for me), hope you like the idea, anyway i'll tell you before publishing
 

jm

=^)