Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 1999 10:52:10 +0100
From:      Michael Bretterklieber <mbretter@sbox.tu-graz.ac.at>
To:        freebsd-net@freebsd.org
Subject:   Bridge and dummynet
Message-ID:  <99032411090200.05750@babsi.tu-graz.ac.at>

next in thread | raw e-mail | index | archive | help
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




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