Re: [L2tpd-devel] using l2tpd with portslave
Status: Inactive
Brought to you by:
dami0nd
|
From: <je...@au...> - 2002-01-18 06:29:52
|
On Fri, Jan 11, 2002 at 11:14:26AM -0500, Jeff Mcadams wrote:
> >Now I just have to get portslave working and see how well I can get
> >this working with with RequestDSL. It would be a good idea to ensure
> >that portslave and l2tpd work together and I'm sure it can't be too
> >difficult. I'll probably write a howto when I've finished.
>
> I am rather completely unfamiliar with portslave, so I don't know that I
> can be much help in this part...but certainly let us know your success
> and keep involved.
I now have l2tpd working with portslave. Basically you have to load the
libspr.so plugin that comes with portslave and set the following
environment variables which I set from the script that I started l2tpd
with:
export PORTSLAVELOGNAME=l2tpd
export PORTSLAVE_SESSION=$RANDOM$RANDOM
export PORTSLAVE_START_TIME=`date +%s`
Then you have to configure /etc/portslave/pslave.conf with all the usual
options including to specify all the pseudo terminals. One thing I'm
not sure is how a pseudo terminal is allocated as /dev/ptyp0 in pty.c
but according to pppd/portslave it's /dev/ttyp0, any ideas?
> Again, I'm totally unfamiliar with portslave, so that doesn't mean much
> to me....I will agree that our conf file sucks swamp water through
> straws though. I've been pondering other possible formats, haven't
> really had any bright ideas though.
Well to set all ppp options in portslave it has:
all.autoppp proxyarp %d asyncmap 0 %i: \
noipx noccp login auth require-pap refuse-chap \
mtu %t mru %t \
ms-dns 192.168.1.1 ms-dns 192.168.1.2 \
plugin /usr/lib/libpsr.so
(which starts pppd in the same way as above when portslave is answering
calls on a serial port).
> >- Perhaps when l2tp is completely kernel space it would an idea to only
> > have to configure portslave in userspace and adopt portslave to answer
> > r l2tp calls. Although I'm sure some people won't want to use RADIUS
> > authentication and/or accounting.
>
> *shrug* Sounds cool...what little meaning that carried without knowing
> how portslave works. :)
Well the binary just listens on a serial port and the plugin does most
of the work if autoppp is used. If the system login method is used then
a bit more has to be done by the portslave binary.
--
Jeremy Lunn
Melbourne, Australia
http://www.jabber.org/ - the next generation of Instant Messaging.
|