From owner-freebsd-stable@FreeBSD.ORG Wed Oct 27 19:55:02 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFFA216A4CF for ; Wed, 27 Oct 2004 19:55:02 +0000 (GMT) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA7B943D39 for ; Wed, 27 Oct 2004 19:55:01 +0000 (GMT) (envelope-from cpghost@cordula.ws) Received: from bsdbox.farid-hajji.net (bsdbox [192.168.254.3]) by fw.farid-hajji.net (Postfix) with ESMTP id 8F0C84B17E; Wed, 27 Oct 2004 21:54:17 +0200 (CEST) Date: Wed, 27 Oct 2004 21:56:32 +0200 From: cpghost@cordula.ws To: Samuel Trommel Message-ID: <20041027195632.GA1888@bsdbox.farid-hajji.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: Peter Ulrich Kruppa cc: freebsd-stable@freebsd.org Subject: Re: ppp -nat broken??? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 19:55:02 -0000 On Wed, Oct 27, 2004 at 05:11:54PM +0200, Samuel Trommel wrote: > > > Primary nameserver 195.62.99.42 > > > Secundary nameserver 195.62.97.177 > > Yes, that works, thank you so far, but ... > > I never had to do this before this way. I always simply set my > > gateway as name-server and I wonder what has changed the last > > week or so. > > Just imagine, I had to upgrade our school's gateway/proxy (which > > And that is where dhcpd comes in to play:D > > Just setup a DHCP-server and you are done.. Well, sorry to chime in here, but you're just suggesting a work around, not a real solution (which is to be running a caching named on the gateway machine). Uli, could you check if your named works as expected? The following applies to 5.x, adjust as necessary for 4.x: 1. does named indeed run on the gateway? gw# ps ax | grep named 277 ?? Ss 8:29.33 /usr/sbin/named -u bind -t /var/named 18582 ?? Ss 1:54.00 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/r 81756 p1 S+ 0:00.02 grep named 2. does named listen on all relevant interfaces (sockstat -46)? You should get something like this: gw# sockstat -46 | grep bind bind named 277 20 udp4 192.168.254.1:53 *:* bind named 277 21 tcp4 192.168.254.1:53 *:* bind named 277 22 udp4 127.0.0.1:53 *:* bind named 277 23 tcp4 127.0.0.1:53 *:* bind named 277 24 udp4 *:59582 *:* bind named 277 25 tcp4 127.0.0.1:953 *:* (one random port must be open to the outside world, so named can get replies (?), other ports must be open to the inside net(s)) 3. using dig from the gateway, querying the local named, whan happens? 4. using dig from a host != gateway (on your local net), what happens? 5. Can you ping outside NUMERICAL IP address from your local net? % ping 66.94.229.254 (www.altavista.com) Regards, cpghost. -- Cordula's Web. http://www.cordula.ws/