Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2002 18:43:18 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: mpd and bringing up routes at connect time
Message-ID:  <200207210143.g6L1hIF74872@arch20m.dellroad.org>
In-Reply-To: <5.1.0.14.0.20020716111422.07bc1498@marble.sentex.ca> "from Mike Tancsa at Jul 16, 2002 11:21:21 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207210143.g6L1hIF74872>