bad syntax in ipfw casues kernel panic.

Devon H. O'Dell dodell at sitetronics.com
Sun Mar 7 02:34:59 PST 2004


Ender wrote:

> try these rules
>
> ipfw pipe 1 config bw 800Kbyte/s queue 1024Kbytes ;
> ipfw queue 1 config pipe 1 weight 100 queue 1024Kbytes ;
> ipfw queue 2 config pipe 1 weight 90 queue 1024Kbytes ;
> ipfw queue 3 config pipe 1 weight 2 queue 1024Kbytes ;
> ipfw queue 4 config pipe 1 weight 1 queue 1024Kbytes ;
> ipfw add 1 queue 1 udp from 216.89.228.18 27015 to any out ;
> ipfw add 2 queue 2 tcp from 216.89.228.18 6112 to 216.89.228.60 out ;
> ipfw add 3 queue 3 ip from 216.89.228.18 6112 to any out ;
> ipfw add 4 queue 4 ip from 216.89.228.18 to any out ;
>
> then remove : ipfw del 1
> then remove ipfw queue del 1
> then add ipfw queue 1 config pipe 1 weight 140 queue 1024Kbytes

When I add these rules, and hit the final one, I receive:
root at freebsd0 :~# ipfw queue 1 config pipe 1 weight 140 queue 1024Kbytes
ipfw: weight must be <= 100

Before you question my system:
FreeBSD freebsd0.sitetronics.com 5.2.1-RELEASE-p1 FreeBSD 
5.2.1-RELEASE-p1 #2: Wed Mar  3 09:25:48 PST 2004     
root at freebsd0.sitetronics.com:/usr/obj/usr/src/sys/SITETRONICS  i386

>
> i also have ALOT of traffic when i do this, i repeated it. If there is 
> any other configs i have that could be relevent let me know.

What's ``A LOT'' of traffic? The system I'm on is pushing approximately 
10Mbit at this time.

> kern.ipc.somaxconn=16384
> kern.ipc.nmbclusters=131072
> net.inet.tcp.tcbhashsize=4096
>
>
> #firewall
> options         HZ=1000
> options         IPFIREWALL
> options         IPFIREWALL_DEFAULT_TO_ACCEPT
> options         DUMMYNET

These all look decent to me.

--Devon


More information about the freebsd-bugs mailing list