Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jul 2002 18:04:36 -0700
From:      "Joel M. Baldwin" <qumqats@outel.org>
To:        freebsd-current@FreeBSD.ORG
Subject:   natd core dumping with bus error
Message-ID:  <237537741.1025633076@[192.168.1.20]>

next in thread | raw e-mail | index | archive | help


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




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