From owner-freebsd-stable Sun Apr 16 18:27:35 2000 Delivered-To: freebsd-stable@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id B4B0337B8B8 for ; Sun, 16 Apr 2000 18:27:24 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <115208>; Mon, 17 Apr 2000 11:26:16 +1000 Content-return: prohibited From: Peter Jeremy Subject: 3-STABLE hangs To: stable@FreeBSD.ORG Message-Id: <00Apr17.112616est.115208@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii Date: Mon, 17 Apr 2000 11:26:15 +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a Dell OptiPlex GXi (Pentium-133 with 96MB RAM) running 3-STABLE (from last night) which is used to simulate a WAN (using dummynet). Under normal operation, it hangs about every 2 weeks, but I can make it happen in about 15 minutes by loading up the box. When it hangs, it does a good job - no response to the network, keyboard or even NMI. These crashes are becoming quite embarrassing. Does anyone have any suggestions on how to locate and fix the problem? Following are dmesg output, as well as the ipfw and natd files (addresses have been changed). Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.4-STABLE #8: Mon Apr 17 17:31:12 EST 2000 root@:/usr/src/sys/compile/wansim Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (132.95-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x1bf real memory = 100663296 (98304K bytes) avail memory = 94908416 (92684K bytes) Preloaded elf kernel "kernel" at 0xc02b7000. Probing for devices on PCI bus 0: chip0: rev 0x03 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x00 on pci0.7.1 fxp0: rev 0x08 int a irq 11 on pci0.13.0 fxp0: Ethernet address 00:d0:b7:20:c4:9f fxp1: rev 0x08 int a irq 10 on pci0.14.0 fxp1: Ethernet address 00:d0:b7:20:8f:ee fxp2: rev 0x08 int a irq 9 on pci0.15.0 fxp2: Ethernet address 00:d0:b7:20:bd:ab vga0: rev 0x54 int a irq 11 on pci0.16.0 xl0: <3Com 3c905-TX Fast Etherlink XL> rev 0x00 int a irq 11 on pci0.17.0 xl0: Ethernet address: 00:c0:4f:ba:32:2b xl0: autoneg complete, link status good (half-duplex, 100Mbps) Probing for PnP devices: Probing for devices on the ISA bus: sc0 on isa sc0: VGA color <12 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A wdc0 at 0x1f0-0x1f7 irq 14 flags 0xb0ffb0ff on isa wdc0: unit 0 (wd0): , LBA, DMA, 32-bit, multi-block-16 wd0: 2014MB (4124736 sectors), 1023 cyls, 64 heads, 63 S/T, 512 B/S fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in ppc0 at 0x378 irq 7 on isa ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus 0 lpt0: Interrupt-driven port ppi0: on ppbus 0 plip0: on ppbus 0 npx0 on motherboard npx0: INT 16 interface atkbd0 irq 1 on isa psm0 irq 12 on isa psm0: model Generic PS/2 mouse, device ID 0 vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa Intel Pentium detected, installing workaround for F00F bug IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to accept, logging limited to 100 packets/entry by default DUMMYNET initialized (000212) /etc/rc.firewall.local: #!/bin/sh # # dummynet configuration. This file is sourced from rc.network # Single pass thru firewall code /sbin/sysctl -w net.inet.ip.fw.one_pass=1 # Create pipes to simulate WAN /sbin/ipfw pipe 1 config bw 2Mbit/sec delay 7ms queue 256KB /sbin/ipfw pipe 2 config bw 2Mbit/sec delay 7ms queue 256KB # Explicitly allow traffic we've already delayed /sbin/ipfw add 10 allow ip from 10.123.126.144/28 to 192.168.0.0/16 out /sbin/ipfw add 20 allow ip from 10.123.126.160/28 to 192.168.0.0/16 out /sbin/ipfw add 30 allow ip from 192.168.0.0/16 to 10.123.126.144/28 in /sbin/ipfw add 40 allow ip from 192.168.0.0/16 to 10.123.126.160/28 in /sbin/ipfw add 50 allow ip from 192.168.0.0/16 to 192.168.0.0/16 # Bypass pipes for ssh traffic /sbin/ipfw add 80 skipto 3000 tcp from any ssh to any /sbin/ipfw add 81 skipto 3000 tcp from any to any ssh # Use pipe1 for traffic from local to remote /sbin/ipfw add 110 pipe 1 ip from 10.123.126.144/28 to 192.168.0.0/16 in /sbin/ipfw add 120 pipe 1 ip from 10.123.126.160/28 to 192.168.0.0/16 in # Use pipe 2 for packets going out xl0 /sbin/ipfw add 210 pipe 2 ip from 192.168.0.0/16 to 10.123.126.144/28 out /sbin/ipfw add 220 pipe 2 ip from 192.168.0.0/16 to 10.123.126.160/28 out # Grab packets for myself /sbin/ipfw add 1001 allow ip from 10.123.126.146 to any out /sbin/ipfw add 1002 allow ip from 10.123.126.162 to any out /sbin/ipfw add 1003 allow ip from 192.168.126.146 to any out /sbin/ipfw add 1004 allow ip from 192.168.126.162 to any out /sbin/ipfw add 1101 allow ip from any to 10.123.126.146 in /sbin/ipfw add 1102 allow ip from any to 10.123.126.162 in /sbin/ipfw add 1103 allow ip from any to 192.168.126.146 in /sbin/ipfw add 1104 allow ip from any to 192.168.126.162 in # Start NAT for any other traffic /sbin/ipfw add 5000 divert 32000 all from any to any via xl0 /sbin/ipfw add 5100 divert 32000 all from any to any via fxp0 # Create proxy ARP entries for vlan158/174 aliases to the remote hosts echo "Creating proxy arp entries" /usr/sbin/arp -d -a /usr/sbin/arp -s aald04-aal0 $ether_fxp0 pub /usr/sbin/arp -s aald06-aal0 $ether_fxp0 pub /usr/sbin/arp -s aald07-aal0 $ether_fxp0 pub /usr/sbin/arp -s aald09-aal0 $ether_fxp0 pub /usr/sbin/arp -s aald04-aal1 $ether_xl0 pub /usr/sbin/arp -s aald06-aal1 $ether_xl0 pub /usr/sbin/arp -s aald07-aal1 $ether_xl0 pub /usr/sbin/arp -s aald09-aal1 $ether_xl0 pub natd configuration file: log no deny_incoming no use_sockets no same_ports yes verbose no port 32000 interface fxp0 unregistered_only yes redirect_address 192.168.126.163 10.123.126.163 redirect_address 192.168.126.165 10.123.126.165 redirect_address 192.168.126.166 10.123.126.166 redirect_address 192.168.126.168 10.123.126.168 redirect_address 192.168.126.147 10.123.126.147 redirect_address 192.168.126.149 10.123.126.149 redirect_address 192.168.126.150 10.123.126.150 redirect_address 192.168.126.152 10.123.126.152 Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message