From owner-freebsd-bugs Fri May 4 8:36:42 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 6BD6737B424; Fri, 4 May 2001 08:36:37 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f44Fa4q12865; Fri, 4 May 2001 16:36:04 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f44FasB52048; Fri, 4 May 2001 16:36:54 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105041536.f44FasB52048@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Matthew Emmerton" Cc: brian@FreeBSD.org, freebsd-bugs@FreeBSD.org, brian@Awfulhak.org Subject: Re: bin/27069: ppp links may not be up before natd is started, causing natd to fail In-Reply-To: Message from "Matthew Emmerton" of "Fri, 04 May 2001 09:29:54 EDT." <001401c0d49e$4ea98e30$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 May 2001 16:36:54 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Synopsis: ppp links may not be up before natd is started, causing natd to > fail > > > > State-Changed-From-To: open->closed > > State-Changed-By: brian > > State-Changed-When: Fri May 4 03:02:18 PDT 2001 > > State-Changed-Why: > > I don't believe the suggested fix is appropriate. > > Gee, let's just close the ticket before you give it a chance. > open->feedback would be much more appropriate. This is not a bug. > > I would suggest setting ppp_mode=background in ppp.conf and adding > > a ``set mode auto'' (or whatever) to your ppp config instead. You > > may also need to muck about with ``set redial''. > > In my situation, I'm using a PPPoE link for my LAN, which contains web and > mail servers. I need the link up 24/7, so background and auto are > inappropriate. (Background will try once and either succeed or fail. In > the failure case, that means that I have to restart ppp by hand. Auto will > drop the connection once internal traffic ceases, which will close off > access to my public servers when I'm not using my system - I do get a > considerable amount of web and mail traffic to my sites while I'm sleeping.) > > Hence, I need to use ppp_mode=dedicated (or ddial) in order to keep the link > up 24/7. Ok, I'll try being a bit more specific now that I have more information... I would suggest setting ppp_mode=background in ppp.conf and adding a ``set mode ddial'' to your ppp config instead. > > The thing that concerns me is why you say it's sometimes necessary > > to use natd instead of ppp's -nat switch (or ``nat enable yes''). > > Under what circumstances is this necessary ? > > To do port forwarding, for one. PPP's nat support is "nat enable yes|no", > which may be great for a LAN, but not a gateway machine with servers behind > it that need port redirection. ppp's ``nat port'' command will do port forwarding. Do you realise that ppp and natd use the same libalias(3) to do their nat ? The functionality should be exactly the same. > -- > Matt Emmerton -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message