Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2004 09:33:05 +1100
From:      Simon Coggins <simon@uow.edu.au>
To:        current@freebsd.org
Subject:   Kernel panic when setting up queues via IPFW
Message-ID:  <20040302223305.GA12935@uow.edu.au>

next in thread | raw e-mail | index | archive | help
Hi,

I've just started playing with queues and pipes and I created the
config attached. The problem is when ever I reconfigure queue 6 (I was
doing my numbering wrong to start with hence i found it) the kernel
panics. I can reproduce it everytime on my machine.

The machine is:
FreeBSD router 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Tue Mar  2 04:31:42 EST 2004     root@chaotic.chaos.oz.org:/usr/world/obj/usr/world/src/sys/Router  i386

When the 2nd "queue 6 config pipe 1 ...." command
is issued (the last line), a kernel panic occurs.

I don't have the debugger currently compiled into the kernel so I
couldn't get usful info. Hopefully someone else can reproduce this.

The config is:
------8<------8<-------8<------
# Default Traffic
add queue 1 ip from any to any in recv tun10
queue 1 config pipe 1 weight 30 queue 15kb
pipe 1 config bw 512kb/s queue 25kb

add queue 2 ip from any to any out xmit tun10
queue 2 config pipe 2 weight 30 queue 15kb
pipe 2 config bw 128kb/s queue 25kb

# DNS/ntp etc
add queue 3 udp from any to any src-port 53 in recv tun10
add queue 3 tcp from any to any src-port 54 in recv tun10
add queue 3 udp from any to any src-port 123 in recv tun10
queue 3 config pipe 1 weight 100 queue 15kb

add queue 4 udp from any to any dst-port 53 out xmit tun10
add queue 4 tcp from any to any dst-port 53 out xmit tun10
add queue 4 udp from any to any dst-port 123 out xmit tun10
queue 4 config pipe 2 weight 100 queue 15kb

# SSH / IRC traffic
add queue 5 tcp from any to any dst-port 22,6667,6666 in recv tun10
add queue 5 tcp from any to any src-port 22,6667,6666 in recv tun10
add queue 5 tcp from 130.130.69.5 to any src-port 1 in recv tun10
queue 5 config pipe 1 weight 90 queue 15kb

add queue 6 tcp from any to any dst-port 22,6667,6666 out xmit tun10
add queue 6 tcp from any to any src-port 22,6667,6666 out xmit tun10
add queue 6 tcp from any to 130.130.69.5 dst-port 1 out xmit tun10
queue 6 config pipe 2 weight 90 queue 10kb

# Web Traffic
add queue 5 tcp from any to any src-port 80 in recv tun10
add queue 5 tcp from any to any dst-port 80 in recv tun10
queue 5 config pipe 1 weight 40 queue 10kb

add queue 6 tcp from any to any dst-port 80 out xmit tun10
add queue 6 tcp from any to any src-port 80 out xmit tun10
queue 6 config pipe 1 weight 40 queue 10kb
------8<------8<------8<-------


-- 
Simon Coggins (SAGE-AU Member)                Email: simon@uow.edu.au
Network and System Management Officer         Phone: +61-2-4221-3775
Information Technology Systems (ITS)          Mobile: 0408 115861
University of Wollongong, 2522, Australia     Fax:   +61-2-4229-1985



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302223305.GA12935>