From owner-freebsd-questions Sat Mar 9 13:21: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (sheridan.tninet.se [195.100.94.102]) by hub.freebsd.org (Postfix) with ESMTP id 7C1F237B416 for ; Sat, 9 Mar 2002 13:20:58 -0800 (PST) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 985161.708853.1015.0s4198643sheridan ; Sat, 09 Mar 2002 22:20:53 +0100 Message-ID: <3C8A7CB6.5018F7F5@cs.umu.se> Date: Sat, 09 Mar 2002 22:20:54 +0100 From: Paul Everlund X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: Arthur Drake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trouble connecting to a natd machine from within the network References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message