From owner-freebsd-net Sat Jul 20 18:45: 5 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 DA18137B400 for ; Sat, 20 Jul 2002 18:45:03 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2CD43E58 for ; Sat, 20 Jul 2002 18:45:03 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id SAA49149; Sat, 20 Jul 2002 18:44:10 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g6L1hIF74872; Sat, 20 Jul 2002 18:43:18 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200207210143.g6L1hIF74872@arch20m.dellroad.org> Subject: Re: mpd and bringing up routes at connect time In-Reply-To: <5.1.0.14.0.20020716111422.07bc1498@marble.sentex.ca> "from Mike Tancsa at Jul 16, 2002 11:21:21 am" To: Mike Tancsa Date: Sat, 20 Jul 2002 18:43:18 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message