Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 1997 21:10:02 -0700 (MST)
From:      Doug Russell <drussell@auth.internode.net>
To:        freebsd-questions@freebsd.org
Subject:   PPPd server, with statix AND dynamic IP users...
Message-ID:  <Pine.LNX.3.95.970306210129.21006A-100000@auth.internode.net>

next in thread | raw e-mail | index | archive | help

Please send a cc: of responses to me... drussell@internode.net, as I'm
only subscribed to things like -current and -hackers.  :)

I am trying to figure out a way to have PPPd act as a "server" side of a
connection, forcing users to use a certain IP address, varying by ttydX
line they are connected to.  The exception is the few priviledged users
who have static IPs.  This is driving me nuts.  I don't see anything in
the list archives, either.

If I use the options.ttydX files, it is read after the command line,
options file, etc, and so forces the user to use that address (regardless
of what addresses are specified for that user in pap-secrets when using
PAP, incidentally).  If I use no "default" IP number in options or
options.ttydX, and have the static IP users listed in pap-secrets, with a
generic line for other users, it works, but the user has to specify the IP
address from their end.  If they don't specify an address, PPPd doesn't
volunteer one, essentally.

Has anyone ever done something like this?  I can't specify a single
address in options and override with ~/.ppprc, either, because then it
doesn't change by tty, and ~/.ppprc is read before options.ttydX....  Hmm

Ian and I are going to have to hack the ppp source somehow to get this to
work if there isn't already a way to do it.  If it isn't already there, we
will make it clean and provide a diff, because this is something that
really should be possible without a lot of fuss.

Later......						<Doug>






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.970306210129.21006A-100000>