From owner-freebsd-net Wed Mar 24 2: 7:15 1999 Delivered-To: freebsd-net@freebsd.org Received: from ns1.tu-graz.ac.at (ns1.tu-graz.ac.at [129.27.2.3]) by hub.freebsd.org (Postfix) with ESMTP id 0FA2F14BE9 for ; Wed, 24 Mar 1999 02:07:07 -0800 (PST) (envelope-from mbretter@sbox.tu-graz.ac.at) Received: from babsi.tu-graz.ac.at (teleweb-17.vc-graz.ac.at [193.171.247.17]) by ns1.tu-graz.ac.at (8.8.6/8.8.6) with SMTP id LAA05682 for ; Wed, 24 Mar 1999 11:06:47 +0100 (MET) From: Michael Bretterklieber To: freebsd-net@freebsd.org Subject: Bridge and dummynet Date: Wed, 24 Mar 1999 10:52:10 +0100 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <99032411090200.05750@babsi.tu-graz.ac.at> Content-Transfer-Encoding: 8bit X-KMail-Mark: Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have the following scenario: PC1:192.168.0.238 PC2:192.168.0.96 |---------| Bridge, FBSD3.1 |---------| | | |-------------------| | | | xl0|------|ed1 ed0|-------| | | | |-------------------| | | |---------| |---------| The bridge works with the patch /sys/i386/isa/if_ed.c Version 1.150. Now I'd like to limit the transferrate down to 64KBit/s between PC1 and PC2. Here are my rules: 00020 0 0 pipe 20 ip from 192.168.0.238 to any out xmit ed0 00021 8 712 pipe 21 ip from 192.168.0.238 to any out xmit ed1 00022 0 0 pipe 22 ip from any to 192.168.0.238 out xmit ed1 00023 11 600 pipe 23 ip from any to 192.168.0.238 out xmit ed0 00150 0 0 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 405 23772 allow ip from any to any out xmit ed0 00400 56 6149 allow ip from any to any in recv ed0 00500 262 42583 allow ip from any to any out xmit ed1 00600 73 5263 allow ip from any to any in recv ed1 65535 31 0 allow ip from any to any I configuered the pipes with: ipfw pipe 20 config bw 64KBits/s ipfw pipe 21 config bw 64KBits/s ipfw pipe 22 config bw 64KBits/s ipfw pipe 23 config bw 64KBits/s Result: The connect between PC1 and PC2 broke up, on the bridge I got the kernel message: "dummynet: bad switch 3!" I deleted the pipes and everything was ok. I was wondering why no packets passed rule 20 and 22. The firewall-verbose-logformat changed between 3.0 and 3.1, no ports are displayed, only source and destination-ip are printed out?! Thanx, -- \|/ @ @ +---------------------------oOO-(_)-OOo---------------------------+ Michael Bretterklieber Office: Michael.Bretterklieber@gamed.com Privat: mbretter@sbox.tu-graz.ac.at URL: http://www.sbox.tu-graz.ac.at/home/m/mbretter/ +-----------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message