From owner-freebsd-net Sat Jul 20 19: 0: 0 2002 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 ED58937B400 for ; Sat, 20 Jul 2002 18:59:55 -0700 (PDT) Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1602043E42 for ; Sat, 20 Jul 2002 18:59:55 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house.sentex.net (fcage [192.168.0.2]) by cage.simianscience.com (8.12.5/8.12.3) with ESMTP id g6L1xnrw039065; Sat, 20 Jul 2002 21:59:50 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020720215920.07694b88@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 20 Jul 2002 22:00:06 -0400 To: Archie Cobbs From: Mike Tancsa Subject: Re: mpd and bringing up routes at connect time Cc: freebsd-net@FreeBSD.ORG In-Reply-To: <200207210143.g6L1hIF74872@arch20m.dellroad.org> References: <5.1.0.14.0.20020716111422.07bc1498@marble.sentex.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavis-20020220 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks for the clarification. I think I will try and take your suggestion and see about adding a route at connect time via the secrets file. ---Mike At 06:43 PM 7/20/2002 -0700, Archie Cobbs wrote: >Mike Tancsa writes: > > Is there any way with mpd to automatically bring up a route when a > customer > > connects using pptp where multiple users are connecting ? The problem I > > am running into is that user X will PPTP into the server. As they will > come > > in on different netgraph interfaces, the route needs to be pointed to a > > different netgraph interface each time. > >If each user always connects from the same, distinct IP address then >the answer is yes - just allocate a separate bundle for each user. > >Otherwise, mpd doesn't support doing that. It wouldn't be too difficult >of a hack though, to add a route to the mpd.secrets file in the same way >that you can add an IP address. > > > Specifically, how do I add n routes to user X's connection on demand. Is > > it possible with mpd ? > >If you know the bundle that will be chosen ahead of time (same thing >as knowing the client's IP address ahead of time, as mentioned above) >then just use the 'set iface route ...' command. Otherwise, you can't >currently do it. > >-Archie > >__________________________________________________________________________ >Archie Cobbs * Packet Design * http://www.packetdesign.com -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message