Hi, I've got OpenBSD 4.0 (release) on a laptop setup up as a router between 2 subnets, and providing internet access through a 3rd nic to a DSL modem. The problem is the bandwidth between the two subnets. I'm only getting a maximum of about 500 KB/s between two 100mbit cards. Top shows ~70% interrupt (~29% idle) while these transfers are going on. I don't know what the bottleneck is in the system. Are the Linksys PCMCIA nics crappy? Did I screw something else up?
As a test I turned off pf and did ftp transfers from the OpenBSD machine to/from each subnet, and the bandwidth was still limited to ~500 KB/s, so I don't think it's anything in my pf setup. Thanks # dmesg OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) III Mobile CPU 1000MHz ("GenuineIntel" 686-class) 1 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 536350720 (523780K) avail mem = 481308672 (470028K) using 4256 buffers containing 26918912 bytes (26288K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 12/21/01, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 0xf6f20 (60 entries) bios0: Dell Computer Corporation Inspiron 8100 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbc20/192 (10 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371 ISA and IDE" rev 0x00) pcibios0: PCI bus #4 is the last bus bios0: ROM list: 0xc0000/0xe000 0xce000/0x800! 0xce800/0x800! 0xcf000/0x800! 0xcf800/0x800! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82815 Hub" rev 0x04 ppb0 at pci0 dev 1 function 0 "Intel 82815 AGP" rev 0x04 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "NVIDIA GeForce2 Go" rev 0xb2 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x03 pci2 at ppb1 bus 2 esa0 at pci2 dev 3 function 0 "ESS Maestro 3" rev 0x10: irq 5 ac97: codec id 0x83847609 (SigmaTel STAC9721/23) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at esa0 xl0 at pci2 dev 6 function 0 "3Com 3c556 100Base-TX" rev 0x10: irq 10, address 00:04:76:4f:21:30 tqphy0 at xl0 phy 0: 78Q2120 10/100 PHY, rev. 11 "3Com V.90 Modem" rev 0x10 at pci2 dev 6 function 1 not configured cbb0 at pci2 dev 15 function 0 "TI PCI4451 CardBus" rev 0x00: irq 10 cbb1 at pci2 dev 15 function 1 "TI PCI4451 CardBus" rev 0x00: irq 10 "TI PCI4451 FireWire" rev 0x00 at pci2 dev 15 function 2 not configured cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 4 device 0 cacheline 0x8, lattimer 0x20 pcmcia1 at cardslot1 ichpcib0 at pci0 dev 31 function 0 "Intel 82801BAM LPC" rev 0x03 pciide0 at pci0 dev 31 function 1 "Intel 82801BAM IDE" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <HITACHI_DK23DA-30> wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors atapiscsi0 at pciide0 channel 0 drive 1 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <TEAC, CD-W216E, L.0Q> SCSI0 5/cdrom removable wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x03: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec fd1 at fdc0 drive 1: density unknown biomask efdd netmask efdd ttymask ffdf pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support ne3 at pcmcia0 function 0 "Linksys, EtherFast 10/100 PC Card (PCMPC100 V2), V2.0" port 0xa000/32, address 00:e0:98:85:dd:57 nsphyter0 at ne3 phy 4: DP83815 10/100 PHY, rev. 0 ne4 at pcmcia1 function 0 "Linksys, EtherFast 10/100 PC Card (PCMPC100 V2), V2.0" port 0xa040/32, address 00:e0:98:88:5f:c6 nsphyter1 at ne4 phy 4: DP83815 10/100 PHY, rev. 0 uaudio0 at uhub0 port 2 configuration 1 interface 1: Logitech QuickCam Pro 3000, rev 1.10/0.02, addr 2 uaudio0: audio rev 1.00, 2 mixer controls audio1 at uaudio0 dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 # ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:76:4f:21:30 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::204:76ff:fe4f:2130%xl0 prefixlen 64 scopeid 0x1 pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224 pfsync0: flags=0<> mtu 1460 groups: carp enc0: flags=0<> mtu 1536 ne3: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:e0:98:85:dd:57 media: Ethernet autoselect (100baseTX full-duplex) status: active inet 192.168.2.100 netmask 0xffffff00 broadcast 192.168.2.255 inet6 fe80::2e0:98ff:fe85:dd57%ne3 prefixlen 64 scopeid 0x6 ne4: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:e0:98:88:5f:c6 media: Ethernet autoselect (100baseTX full-duplex) status: active inet 172.16.3.1 netmask 0xffffff00 broadcast 172.16.3.255 inet6 fe80::2e0:98ff:fe88:5fc6%ne4 prefixlen 64 scopeid 0x7 tun0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1454 groups: tun egress inet 67.38.253.242 --> 67.38.255.254 netmask 0xffffffff # OpenBSD 4.0 - pf.conf ext_if = "tun0" int_if = "ne3" in2_if = "ne4" MePRIV1 = "192.168.2.100/32" PRIV1 = "192.168.2.1/24" MePRIV2 = "172.16.3.1/32" PRIV2 = "172.16.3.1/24" WEBPROTO = "{ tcp, udp, icmp, IGMP, AH, ESP, GRE }" PRIVNETS = "{ 172.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 }" GGG = "{ 172.16.3.33/32 }" HHH = "{ 192.168.2.69/32 }" scrub in all nat on tun0 proto $WEBPROTO from $PRIV1 to any -> tun0 nat on tun0 proto $WEBPROTO from $PRIV2 to any -> tun0 block in on $ext_if from any to any block in quick on $ext_if from $PRIVNETS to any block out quick on $ext_if from any to $PRIVNETS pass in on $int_if inet proto tcp from any to any keep state pass in on $int_if inet proto tcp from $HHH to any keep state pass in on $in2_if inet proto tcp from $GGG to any keep state pass in quick on $in2_if inet proto $WEBPROTO from $GGG to any keep state pass in quick on $int_if inet proto $WEBPROTO from $HHH to any keep state --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos.