Subject: altq on current
To: None <current-users@netbsd.org>
From: R. Huvendiek <netbsd@kaervek.net>
List: current-users
Date: 02/03/2005 22:34:50
Hello,
I've a hard time setting up altqd on my -current router. I have a
assymetric dsl connection and thus I am trying to shape my upload, so my
download will not totally crap out once I upload something.
I have ~190 kbps upload and ~2Mbps download at the moment.
Straight at the moment I activate altq, my test download totally blows,
dropping to ~30KB/s.
I assume it has something to do with the 150K I define in altq.conf.
If I set this value to eg 2M everything goes well. But as I would like
to shape my upload, 2M would be wrong. It does not have the desired effect
anyway, setting the upload to 2M and starting altq is like having no altq
at all.
About the little router: It's a little wrap box (x86 compatible, soekris like). Running 2.99.14.
It has 3 ethernet ports (sip0/1/2). The ADSL modem is connected to sip0, my lan sits on sip1.
It does NAT, defined with the following ipnat.conf.
I have to admin that I am really stuck here, everything that I found on the net looks
like I am doing nothing wrong (eg http://www.freebsdforums.org/forums/showthread.php?postid=71864).
Maybe I misunderstood something really wrong, but I need someone that can point me in the
right direction. Any help is greatly appreciated.
Ralf
altq.conf
>>>>>>>>>>>>>
interface pppoe0 bandwidth 150K cbq
class cbq pppoe0 root NULL pbandwidth 100
class cbq pppoe0 ctrl_class root borrow pbandwidth 10 control
class cbq pppoe0 default_class root borrow pbandwidth 90
class cbq pppoe0 fast_class default_class borrow pbandwidth 65
class cbq pppoe0 rest default_class pbandwidth 25 default
filter pppoe0 fast_class 0 80 0 0 6
filter pppoe0 fast_class 0 0 0 80 6
filter pppoe0 fast_class 0 22 0 0 6
filter pppoe0 fast_class 0 0 0 22 6
filter pppoe0 fast_class 0 25 0 0 6
filter pppoe0 fast_class 0 110 0 0 6
filter pppoe0 fast_class 0 0 0 25 6
filter pppoe0 fast_class 0 3389 0 0 6
filter pppoe0 fast_class 0 0 0 3389 6
filter pppoe0 rest 0 0 0 40000 6
filter pppoe0 rest 0 0 0 40001 6
filter pppoe0 rest 0 0 0 40002 6
filter pppoe0 rest 0 0 0 40003 6
filter pppoe0 rest 0 0 0 40004 6
filter pppoe0 rest 0 0 0 40005 6
filter pppoe0 rest 0 40000 0 0 6
filter pppoe0 rest 0 40001 0 0 6
filter pppoe0 rest 0 40002 0 0 6
filter pppoe0 rest 0 40003 0 0 6
filter pppoe0 rest 0 40004 0 0 6
filter pppoe0 rest 0 40005 0 0 6
<<<<<<<<<<<<<<<
ipnat.conf
>>>>>>>>>>>>>
rdr pppoe0 0/0 port 40000 -> 192.168.1.12 port 40000
rdr pppoe0 0/0 port 40001 -> 192.168.1.12 port 40001
rdr pppoe0 0/0 port 40002 -> 192.168.1.12 port 40002
rdr pppoe0 0/0 port 40003 -> 192.168.1.12 port 40003
rdr pppoe0 0/0 port 40004 -> 192.168.1.12 port 40004
rdr pppoe0 0/0 port 40005 -> 192.168.1.12 port 40005
rdr pppoe0 0/0 port 40006 -> 192.168.1.12 port 40006
rdr pppoe0 0/0 port 40007 -> 192.168.1.12 port 40007
rdr pppoe0 0/0 port 40008 -> 192.168.1.12 port 40008
rdr pppoe0 0/0 port 40009 -> 192.168.1.12 port 40009
rdr pppoe0 0/0 port 40010 -> 192.168.1.12 port 40010
map pppoe0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
map pppoe0 192.168.1.0/24 -> 0/32 portmap tcp/udp 40000:60000 mssclamp 1440
map pppoe0 192.168.1.0/24 -> 0/32 mssclamp 1440
<<<<<<<<<<<<<<
kernel (I hope thats enough)
>>>>>>>>>>>>
options ALTQ # Manipulate network interfaces' output queues
#options ALTQ_BLUE # Stochastic Fair Blue
options ALTQ_CBQ # Class-Based Queueing
#options ALTQ_CDNR # Diffserv Traffic Conditioner
#options ALTQ_FIFOQ # First-In First-Out Queue
#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
#options ALTQ_HFSC # Hierarchical Fair Service Curve
#options ALTQ_LOCALQ # Local queueing discipline
options ALTQ_PRIQ # Priority Queueing
#options ALTQ_RED # Random Early Detection
#options ALTQ_RIO # RED with IN/OUT
#options ALTQ_WFQ # Weighted Fair Queueing
options PPP_BSDCOMP # BSD-Compress compression support for PPP
options PPP_DEFLATE # Deflate compression support for PPP
options PPP_FILTER # Active filter support for PPP (requires bpf)
options PFIL_HOOKS # pfil(9) packet filter hooks
#options IPFILTER_LOG # ipmon(8) log support
#options IPFILTER_DEFAULT_BLOCK # block all packets by default
#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
pseudo-device bpfilter 8 # Berkeley packet filter
pseudo-device ipfilter # IP filter (firewall) and NAT
pseudo-device loop # network loopback
pseudo-device ppp 2 # Point-to-Point Protocol
pseudo-device pppoe # PPP over Ethernet (RFC 2516)
#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
#pseudo-device pf # PF packet filter
#pseudo-device pflog # PF log if
<<<<<<<<<<<<<<<<<