From owner-freebsd-questions Sat Mar 9 13:41:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f273.law7.hotmail.com [216.33.236.151]) by hub.freebsd.org (Postfix) with ESMTP id CE41137B400 for ; Sat, 9 Mar 2002 13:41:19 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 9 Mar 2002 13:41:19 -0800 Received: from 68.15.85.231 by lw7fd.law7.hotmail.msn.com with HTTP; Sat, 09 Mar 2002 21:41:19 GMT X-Originating-IP: [68.15.85.231] From: "Arthur Drake" To: tdv94ped@cs.umu.se Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trouble connecting to a natd machine from within the network Date: Sat, 09 Mar 2002 21:41:19 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Mar 2002 21:41:19.0790 (UTC) FILETIME=[264034E0:01C1C7B3] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks a lot, adding the address of the internal machine to /etc/resolv.conf fixed it... but unfortunately it doesn't scale too well. Almost all of the machines on the internal network use dhcp to get an ip address, so I guess I have to either add 250 or so entries to the /etc/hosts file, or change the behavior of FBSD. I guess it doesn't like ip addresses that don't reverse dns properly? Hmmm... Anyway, thanks a lot for the help. Now that I have a workable solution and a starting point, I can try to find a better solution to the problem. Thanks, Art > > Hello! I have a FreeBSD 4.3-STABLE machine running natd for the rest of >the > > network. It runs the command "natd -f /etc/natd.conf -i vx0" on >startup. > > /etc/natd.conf has only one commented out line, so it essentially has > > nothing in it. Natd translates from the vx0 public interface to the vx1 > > private interface on 192.168.0.1. Both interfaces use a 3Com 595 card. > > > > Machines outside the network have no trouble connecting to the FBSD box, >but > > from within the network on all ports the connection takes a very long >time > > to start, and many programs (ftp clients, mail clients, etc.) time out > > waiting to connect. It takes several minutes to start an ssh or ftp > > session. Once I get connected it runs just fine, but it takes forever >to > > connect. This happens regardless of whether I connect to the private >side > > (192.168.0.1) or the public side (68.x.x.x) from within the network. > > > > Anybody have any ideas? I'd greatly appreciate any help. > >Got help with a similar problem this day, so maybe I can help you out. > >First of all, look that /etc/host.conf have the following order: >hosts # Ask the file /etc/hosts first >bind # If not found in /etc/hosts, ask your name server > >Put all your computers on your internal network in /etc/hosts. For ex- >ample: >127.0.0.1 localhost.your-domain.com localhost >192.168.0.5 name1.your-domain.com name1 >192.168.0.6 name2.your-domain.com name2 > >Check that /etc/resolv.conf has the following info: >domain your-domain.com # Your computers domain >nameserver dns1.com # The first name server >nameserver dns2.com # The second name server > >Hopefully you find something useful in this info and get your FreeBSD >working as good as it can be. :-) > >Best regards, >Paul _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message