Date: Thu, 16 Sep 2004 03:47:40 -0000 From: Brandon Weisz <brandon@mail.avioc.org> To: pf4freebsd@freelists.org Subject: [pf4freebsd] Re: Bridging? Message-ID: <1062074062.31217.14.camel@quark.avioc.org> In-Reply-To: <025801c36cfa$3e756290$01000001@max900> References: <200308262103.12394.alan@precisionautobody.com> <200308262247.46254.alan@precisionautobody.com> <01a901c36cee$09bd6810$01000001@max900> <200308271625.05235.alan@precisionautobody.com> <025801c36cfa$3e756290$01000001@max900>
next in thread | previous in thread | raw e-mail | index | archive | help
Max, I tested your patch with basically the same setup as Alan. I'm using the pf port, not sure if I should be testing with 1.62. The quick and dirty is I didn't see any of the debug messages from bridge.c.diff in the dmesg. The results(?) along with my setup are attached. labrat# uname -a FreeBSD labrat.internal.avioc.org 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #1: Sun Aug 31 22:14:14 CDT 2003 root@labrat.internal.avioc.org:/usr/obj/usr/src/sys/CORE-L i386 labrat# sysctl -a | grep bridge net.link.ether.bridge_cfg: xl0,xl1 net.link.ether.bridge: 1 net.link.ether.bridge_ipfw: 0 net.link.ether.bridge_ipf: 1 net.link.ether.bridge_ipfw_drop: 0 net.link.ether.bridge_ipfw_collisions: 0 labrat# cat /usr/local/etc/pf.conf set loginterface xl0 #pass in all #pass out all block log Regards, Brandon On Wed, 2003-08-27 at 19:20, Max Laier wrote: > DAMN IT ... what is this ... your mailserver won't let me send plain-text > *.diff and tells me to "zip" and doesn't accept zip either ... > > find the patch at: http://pf4freebsd.love2party.net/bridge.c.diff > > > > > OK - send away. Anything I can do to help. I have tons of time and > > really > > > need to get this working ASAP. > > > > First off, if that's true you better go install OpenBSD or learn what ipfw > > can do for you. I don't think that we will have it working too soon. If > you > > are still interested in testing: > > > > The attchment is a really noisy patch against sys/net/bridge.c > > Apply it, rebuild your kernel and generate traffic without pf module > loaded. > > $dmesg -a >file.pfoff > > load pf and enable it and generate some traffic > > $dmesg -a >file.pfon > > unload pf and generate some traffic > > $dmesg -a >file.pfoffagain > > and send my the output files. > > > > That's all for the start. > > > > Regards, > > Max > > > > -- Attached file included as plaintext by Ecartis -- -- File: dmesg.pfoff Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-RELEASE-p2 #1: Sun Aug 31 22:14:14 CDT 2003 root@labrat.internal.avioc.org:/usr/obj/usr/src/sys/CORE-L Preloaded elf kernel "/boot/kernel/kernel" at 0xc06df000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06df1f4. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 451024650 Hz CPU: AMD-K6(tm) 3D processor (451.02-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow!> real memory = 402587648 (383 MB) avail memory = 383578112 (365 MB) K6-family MTRR support enabled (2 registers) npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <UNICOR AWRDACPI> on motherboard pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00fdf00 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_tz0: <thermal zone> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0x4d6,0x40b,0x480-0x48f,0x5000-0x501f,0x4000-0x403f,0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <Ali M1541 host to AGP bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe9006000-0xe900607f irq 5 at device 9.0 on pci0 xl0: Ethernet address: 00:50:da:c6:d6:f7 miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0xd400-0xd47f mem 0xe9005000-0xe900507f irq 10 at device 10.0 on pci0 xl1: Ethernet address: 00:50:04:d2:26:a1 miibus1: <MII bus> on xl1 bmtphy0: <3c905B 10/100 internal PHY> on miibus1 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: <Promise PDC20268 UDMA100 controller> port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xe9000000-0xe9003fff irq 11 at device 11.0 on pci0 ata2: at 0xd800 on atapci0 ata3: at 0xe000 on atapci0 atapci1: <AcerLabs Aladdin UDMA33 controller> port 0xec00-0xec0f at device 15.0 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: <Option ROMs> at iomem 0xcd000-0xcf7ff,0xcc000-0xcc7ff,0xc0000-0xcafff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec BRIDGE 020214 loaded ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging disabled acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% ad4: 39266MB <IC35L040AVER07-0> [79780/16/63] at ata2-master UDMA100 acd0: CDROM <LTN483L> at ata0-master PIO4 Mounting root from ufs:/dev/ad4s1a -- Attached file included as plaintext by Ecartis -- -- File: dmesg.pfoff2 Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-RELEASE-p2 #1: Sun Aug 31 22:14:14 CDT 2003 root@labrat.internal.avioc.org:/usr/obj/usr/src/sys/CORE-L Preloaded elf kernel "/boot/kernel/kernel" at 0xc06df000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06df1f4. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 451024650 Hz CPU: AMD-K6(tm) 3D processor (451.02-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow!> real memory = 402587648 (383 MB) avail memory = 383578112 (365 MB) K6-family MTRR support enabled (2 registers) npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <UNICOR AWRDACPI> on motherboard pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00fdf00 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_tz0: <thermal zone> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0x4d6,0x40b,0x480-0x48f,0x5000-0x501f,0x4000-0x403f,0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <Ali M1541 host to AGP bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe9006000-0xe900607f irq 5 at device 9.0 on pci0 xl0: Ethernet address: 00:50:da:c6:d6:f7 miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0xd400-0xd47f mem 0xe9005000-0xe900507f irq 10 at device 10.0 on pci0 xl1: Ethernet address: 00:50:04:d2:26:a1 miibus1: <MII bus> on xl1 bmtphy0: <3c905B 10/100 internal PHY> on miibus1 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: <Promise PDC20268 UDMA100 controller> port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xe9000000-0xe9003fff irq 11 at device 11.0 on pci0 ata2: at 0xd800 on atapci0 ata3: at 0xe000 on atapci0 atapci1: <AcerLabs Aladdin UDMA33 controller> port 0xec00-0xec0f at device 15.0 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: <Option ROMs> at iomem 0xcd000-0xcf7ff,0xcc000-0xcc7ff,0xc0000-0xcafff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec BRIDGE 020214 loaded ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging disabled acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% ad4: 39266MB <IC35L040AVER07-0> [79780/16/63] at ata2-master UDMA100 acd0: CDROM <LTN483L> at ata0-master PIO4 Mounting root from ufs:/dev/ad4s1a in6_ifattach: pflog0 is not multicast capable, IPv6 not enabled in6_ifattach: pfsync0 is not multicast capable, IPv6 not enabled pflog0: promiscuous mode enabled pflog0: promiscuous mode disabled -- Attached file included as plaintext by Ecartis -- -- File: dmesg.pfon Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-RELEASE-p2 #1: Sun Aug 31 22:14:14 CDT 2003 root@labrat.internal.avioc.org:/usr/obj/usr/src/sys/CORE-L Preloaded elf kernel "/boot/kernel/kernel" at 0xc06df000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06df1f4. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 451024650 Hz CPU: AMD-K6(tm) 3D processor (451.02-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow!> real memory = 402587648 (383 MB) avail memory = 383578112 (365 MB) K6-family MTRR support enabled (2 registers) npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <UNICOR AWRDACPI> on motherboard pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00fdf00 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_tz0: <thermal zone> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0x4d6,0x40b,0x480-0x48f,0x5000-0x501f,0x4000-0x403f,0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <Ali M1541 host to AGP bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe9006000-0xe900607f irq 5 at device 9.0 on pci0 xl0: Ethernet address: 00:50:da:c6:d6:f7 miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0xd400-0xd47f mem 0xe9005000-0xe900507f irq 10 at device 10.0 on pci0 xl1: Ethernet address: 00:50:04:d2:26:a1 miibus1: <MII bus> on xl1 bmtphy0: <3c905B 10/100 internal PHY> on miibus1 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: <Promise PDC20268 UDMA100 controller> port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xe9000000-0xe9003fff irq 11 at device 11.0 on pci0 ata2: at 0xd800 on atapci0 ata3: at 0xe000 on atapci0 atapci1: <AcerLabs Aladdin UDMA33 controller> port 0xec00-0xec0f at device 15.0 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: <Option ROMs> at iomem 0xcd000-0xcf7ff,0xcc000-0xcc7ff,0xc0000-0xcafff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec BRIDGE 020214 loaded ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging disabled acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% ad4: 39266MB <IC35L040AVER07-0> [79780/16/63] at ata2-master UDMA100 acd0: CDROM <LTN483L> at ata0-master PIO4 Mounting root from ufs:/dev/ad4s1a in6_ifattach: pflog0 is not multicast capable, IPv6 not enabled in6_ifattach: pfsync0 is not multicast capable, IPv6 not enabled pflog0: promiscuous mode enabled
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1062074062.31217.14.camel>