From owner-freebsd-net@FreeBSD.ORG Fri Aug 25 16:16:37 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B21116A4DF for ; Fri, 25 Aug 2006 16:16:37 +0000 (UTC) (envelope-from archie@dellroad.org) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADC1743D69 for ; Fri, 25 Aug 2006 16:16:36 +0000 (GMT) (envelope-from archie@dellroad.org) Received: from postoffice.omnis.com (mail-hub-2.int.omnis.com [10.0.0.37]) by smtp.omnis.com (Postfix) with ESMTP id C905D1B302; Fri, 25 Aug 2006 09:16:35 -0700 (PDT) Received: from [10.3.2.11] (fw.awarix.com [70.43.89.155]) by smtp-relay.omnis.com (Postfix) with ESMTP id 403191880C3E; Fri, 25 Aug 2006 09:16:35 -0700 (PDT) Message-ID: <44EF2262.7020009@dellroad.org> Date: Fri, 25 Aug 2006 11:16:34 -0500 From: Archie Cobbs User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brett Glass References: <7.0.1.0.2.20060810201735.067258b0@lariat.net> <44DBF2BB.5080202@micom.mng.net> <7.0.1.0.2.20060810212047.073f0078@lariat.net> <44DBFC05.6080804@elischer.org> <7.0.1.0.2.20060810220804.08de8568@lariat.net> <44DCB4D8.4020901@elischer.org> <44DF51C1.8000306@dellroad.org> <7.0.1.0.2.20060813182130.06f54060@lariat.net> <7.0.1.0.2.20060825091302.074f8008@lariat.net> In-Reply-To: <7.0.1.0.2.20060825091302.074f8008@lariat.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Julian Elischer , net@freebsd.org Subject: Re: Big PPTP server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 16:16:37 -0000 Brett Glass wrote: > Just wanted to ask about the feasibility of the following idea. Would it > be possible to use the Netgraph PPTP node, in combination with Brian > Somers' userland PPP implementation, to make a PPTP server? It would > work similarly to FreeBSD's "pppoed", which uses the Netgraph PPPoE > node. This would provide the full feature set of the userland PPP > (including dynamic creation of Netgraph nodes, the ability to call out > to shell scripts, etc.) together with your PPTP implementation. How hard > would it be to cobble this together, starting with the code for pppoed? Sure it's feasible.. it's just a SMOP :-) (small matter of programming). The ng_pptpgre node handles the "data packet" level of PPTP, but most of the complexity in PPTP is in the higher level protocol for setup and teardown. You'd have to get that in there somehow. Two (different) examples of such code are in (1) mpd and (2) libpdel. The latter is newer and cleaner but might be harder to merge. -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com