From owner-freebsd-net Wed Apr 12 5: 3:30 2000 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 49EB237B7BB; Wed, 12 Apr 2000 05:03:26 -0700 (PDT) (envelope-from julian@elischer.org) Received: from popserver-02.iinet.net.au (popserver-02.iinet.net.au [203.59.24.148]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id UAA26887; Wed, 12 Apr 2000 20:02:59 +0800 Received: from jules.elischer.org (reggae-11-113.nv.iinet.net.au [203.59.69.113]) by popserver-02.iinet.net.au (8.9.3/8.9.3) with SMTP id UAA30847; Wed, 12 Apr 2000 20:02:36 +0800 Message-ID: <38F465BE.ABD322C@elischer.org> Date: Wed, 12 Apr 2000 05:02:06 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Ruslan Ermilov Cc: net@FreeBSD.ORG, archie@wistle.com, brian@FreeBSD.ORG, Dru Nelson Subject: Re: pptp over NAT? Impossible? References: <38F43C84.3F54BC7E@elischer.org> <20000412125131.A8975@relay.ucb.crimea.ua> <20000412132221.A14970@relay.ucb.crimea.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ruslan Ermilov wrote: > > On Wed, Apr 12, 2000 at 12:51:31PM +0300, Ruslan Ermilov wrote: > > On Wed, Apr 12, 2000 at 02:06:12AM -0700, Julian Elischer wrote: > > > I've been beeting my head against a problem that I think > > > I suddenly understand.. > > > I've been trying to run a pptp session out from an address translated > > > network (i.e. ppp -nat). It gets so far tand then stops. > > > It has suddenly (after a day wasted) occured to me that > > > maybe the ppp negotiation is being carried by GRE and that > > > I'm guessing that GRE is not translatable.. (At least by > > > ppp -nat). (what's happenning is that the ppp negotiating packets are > > > getting lost in transit.) > > > > > GRE is supported in different way, see `nat pptp [addr]' in ppp(8), > > and PacketAliasPptp() in libalias(3). > > > By the way, I see no reason why PPTP support is limited to only > one local IP address. It *is* possible to improve PPTP support > by introducing the following interface: > > int PacketAliasPptp( > struct in_addr local_addr, > struct in_addr remote_addr, > struct in_addr alias_addr > ); > > where `local_addr', `alias_addr' and `remote_addr' are of the same > semantics as in PacketAliasRedirectPort() (see libalias(3) manpage). > > If Brian does not mind, I will implement this, then patch natd(8), > wait until Brian prepares patches for ppp(8), commit the change to > libalias(3), bump library's major number, and commit the rest to > natd(8) and ppp(8). > > Comments? Makes sence to me as it is quite possible that GRE/PPTP could be coming from several different internal machines. BTW shouldn't this be called PacketAliasGRE instead? > > -- > Ruslan Ermilov Sysadmin and DBA of the > ru@ucb.crimea.ua United Commercial Bank, > ru@FreeBSD.org FreeBSD committer, > +380.652.247.647 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message