From owner-freebsd-current Tue Jul 2 18: 7: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 918BE37B401 for ; Tue, 2 Jul 2002 18:06:54 -0700 (PDT) Received: from outel.org (dcn177-152.dcn.davis.ca.us [168.150.177.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7C9443E42 for ; Tue, 2 Jul 2002 18:06:51 -0700 (PDT) (envelope-from qumqats@outel.org) Received: from localhost (winxp [192.168.1.20]) by outel.org (8.12.5/8.12.5) with ESMTP id g6316e2q029548 for ; Tue, 2 Jul 2002 18:06:42 -0700 (PDT) (envelope-from qumqats@outel.org) Date: Tue, 02 Jul 2002 18:04:36 -0700 From: "Joel M. Baldwin" To: freebsd-current@FreeBSD.ORG Subject: natd core dumping with bus error Message-ID: <237537741.1025633076@[192.168.1.20]> X-Mailer: Mulberry/3.0.0a3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Something has messed up natd. If I don't have the punch_fw option in the /etc/natd.conf file it eventuially core dumps with a bus error. I think this started JUST BEFORE the KSE commit. /etc/natd.conf: ( note that this works. comment out the punch_fw option and it core dumps ) use_sockets yes same_ports yes unregistered_only yes interface rl0 punch_fw 5000:50 natd stuff in /etc/rc.conf: natd_enable="YES" natd_flags="-f /etc/natd.conf" natd_interface="rl0" # rl0-external ifc : fxp0-internal ifc ipfw list: ( this is the SIMPLE firewall type rules with the addition of rules 400 and 500 ) 00100 allow ip from any to any via lo0 00200 deny ip from any to 127.0.0.0/8 00300 deny ip from 127.0.0.0/8 to any 00400 allow tcp from any to any via fxp0 00500 allow udp from any to any via fxp0 00600 deny ip from 192.168.1.0/24 to any in via rl0 00700 deny ip from 168.150.177.152 to any in via fxp0 00800 deny ip from any to 10.0.0.0/8 via rl0 00900 deny ip from any to 172.16.0.0/12 via rl0 01000 deny ip from any to 192.168.0.0/16 via rl0 01100 deny ip from any to 0.0.0.0/8 via rl0 01200 deny ip from any to 169.254.0.0/16 via rl0 01300 deny ip from any to 192.0.2.0/24 via rl0 01400 deny ip from any to 224.0.0.0/4 via rl0 01500 deny ip from any to 240.0.0.0/4 via rl0 01600 divert 8668 ip from any to any via rl0 01700 deny ip from 10.0.0.0/8 to any via rl0 01800 deny ip from 172.16.0.0/12 to any via rl0 01900 deny ip from 192.168.0.0/16 to any via rl0 02000 deny ip from 0.0.0.0/8 to any via rl0 02100 deny ip from 169.254.0.0/16 to any via rl0 02200 deny ip from 192.0.2.0/24 to any via rl0 02300 deny ip from 224.0.0.0/4 to any via rl0 02400 deny ip from 240.0.0.0/4 to any via rl0 02500 allow tcp from any to any established 02600 allow ip from any to any frag 02700 allow tcp from any to 168.150.177.152 25 setup 02800 allow tcp from any to 168.150.177.152 53 setup 02900 allow udp from any to 168.150.177.152 53 03000 allow udp from 168.150.177.152 53 to any 03100 allow tcp from any to 168.150.177.152 80 setup 03200 deny log tcp from any to any in via rl0 setup 03300 allow tcp from any to any setup 03400 allow udp from 168.150.177.152 to any 53 keep-state 65535 deny ip from any to any gdb traceback: su-2.05# gdb -c natd.core /sbin/natd GNU gdb 5.2.0 (FreeBSD) 20020627 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"...(no debugging symbols found)... Core was generated by `natd'. Program terminated with signal 10, Bus error. #0 0x08050c27 in ?? () (gdb) bt #0 0x08050c27 in ?? () #1 0x0804f0f0 in ?? () #2 0x0804f0a6 in ?? () #3 0x080503b5 in ?? () #4 0x0804b489 in ?? () #5 0x08048b38 in ?? () #6 0x080487ee in ?? () #7 0x08048131 in ?? () (gdb) If you need something else to diagnose this let me know and I'll do whatever I can to help. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message