From owner-freebsd-questions Tue Feb 22 1:44: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id 2FA3937B691 for ; Tue, 22 Feb 2000 01:44:03 -0800 (PST) (envelope-from vallo@matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id ECCFA2CE51; Tue, 22 Feb 2000 11:43:58 +0200 (EET) Received: by myhakas.matti.ee (Postfix, from userid 1000) id B6C2B18E; Tue, 22 Feb 2000 11:44:01 +0200 (EET) Date: Tue, 22 Feb 2000 11:44:01 +0200 From: Vallo Kallaste To: Peter J Jones Cc: freebsd-questions@freebsd.org Subject: Re: ppp -auto -nat Message-ID: <20000222114401.A362@myhakas.matti.ee> Reply-To: vallo@matti.ee References: <38B2288A.EB73A046@dancris.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <38B2288A.EB73A046@dancris.com>; from Peter J Jones on Mon, Feb 21, 2000 at 11:11:23PM -0700 Organization: =?iso-8859-1?Q?AS_Matti_B=FCrootehnika?= Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Feb 21, 2000 at 11:11:23PM -0700, Peter J Jones wrote: > I have a server running Samba, Apache and some other services. > I would like to use it as a dial out gateway for the windows > boxes. I have ppp configured and it will connect to the ISP. > I can also run ppp -auto -nat and it will connect when one > of the windows boxes tries to pull down a web page. > > The problem is when I try to login to one of the windows > boxes and it talks to samba to check the password. The FreeBSD > box running ppp would connect to the ISP. I added some dial > filters and that stoped the dial out when trying to login > via samba. But the login still does not work. The windows box > will sit there until a timout. If I kill ppp then the windows > box talks to samba and everything is ok. > > I thought that I needed to set up some in and out filters to > allow all trafic to/from the FreeBSD box to pass but that does > not fix it. > > What do I need to do to allow ppp to run in auto and nat mode, > but still be able to talk to services that are on that host > without ppp doing nat on them? I think the samba does name lookup and connects for this purpose to your ISP nameserver as indicated in your /etc/resolv.conf file. Check if you have such setup. You have two choices, set up internal nameserver or put the internal hosts into /etc/hosts file. Beware, I haven't tried myself so YMMV. -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message