From owner-freebsd-isdn Tue Jan 11 16:47:20 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from awfulhak.org (dynamic-82.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.210]) by hub.freebsd.org (Postfix) with ESMTP id E058A15030 for ; Tue, 11 Jan 2000 16:47:09 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA32847; Wed, 12 Jan 2000 00:38:38 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA01200; Wed, 12 Jan 2000 00:42:46 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200001120042.AAA01200@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Marc van Kempen Cc: Brian Somers , Martin Welk , Christoph Kukulies , freebsd-isdn@FreeBSD.ORG, brian@hak.lan.Awfulhak.org, brian@hak.lan.Awfulhak.org Subject: Re: one slight glitch in i4bispp In-Reply-To: Message from Marc van Kempen of "Tue, 11 Jan 2000 12:25:46 +0100." <200001111125.MAA16896@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 12 Jan 2000 00:42:46 +0000 From: Brian Somers Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > ppp(8) :-) > > > > If you enable -nat and -auto, ppp will keep the interface addresses > > previously assigned and NAT them for you. This means that the > > ``first connection'' will end up being NAT'd from the start (it's > > bound to the old address but the peer has only ever seen the new > > address). > > > > I'm a bit puzzled as to how this would work, what you say is this: > > You telnet from your machine to telnet.domain.com: > > telnet.domain.com <----> [dynamic ip] -- PPP,NAT -- [first ipnr] <---> telnet > > So the tcp packet going from my machine to telnet.domain.com has as it's > source address the dynamic IP address, as NAT'ed by PPP, the first ipnr > is only seen on my machine. > > But when the connection times out and I get another dynamic IP nr, how > is my tcp connection going to survive, isn't the socket on telnet.domain.com > bound to my old (dynamic) ip nr? No, well not if the initial telnet packet caused the ``ppp -nat'' process to dial. Because it decides based on the unNATd packet, it brings the link up and then (after IPCP has agreed another IP number) sends the packet through the NAT engine. telnet.domain.com only ever sees packets from the new IP number whereas the telnet process is bound to the old IP number. > Regards, > Marc. > > > -- > ---------------------------------------------------- > Marc van Kempen BowTie Technology > Email: marc@bowtie.nl WWW & Databases > tel. +31 40 2 43 20 65 > fax. +31 40 2 44 21 86 http://www.bowtie.nl > ---------------------------------------------------- -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message