How I did it. was Re: Thank you all.

"Raoul Mackle" (raoul.m@nexusnet.co.nz)
Wed, 12 May 1999 11:24:02 +1200


Hi,

What would you like to know, this is how I got it going under Red Hat Linux
5.1

I have the following software and hardware

pppd 2.3.3-4 Source
mgetty 1.1.14-2

Cyclades Ye 16 Multiport Device
16 Dynalink Modems

You must set up the correct tty's using something like mknod or something
but just read the readme file that came with you hardware first.  Mine look
something like ttyC0 through to ttyC15.


1. I am not using shadow passwords, but If you are build the pppd source
with

    make HAS_SHADOW=1

2. If you have defined a group called modem you can skip this

    groupadd -g xxx modem

xxx is whatever gid came after all my other groups but before any user gids.

3. I defined the correct behaviour in mgetty's policy.h file by checking for
and if needing to adding in their appropriate places;

    #define DEVICE_GROUP    "modem"
    #define DEFAULT_PORTSPEED     9600     {I could have made this bigger
but for some reason it wouldnt work and my sceen just kept filling with
error messages, you could try the limit 115200}
    #define MODEM_INIT_STRING     "ATE1V1Q0&D2&C1S0=0"

4. Changed the line in the mgetty Makefile which read

    CFLAGS=-02 -Wall -pipe

    to look like

    CFLAGS=-02 -Wall -pipe -DAUTO_PPP

5. Built it

    make
    make install

6. Go to the /etc/mgetty+sendfax directory and edit login.config, hash out
FIDO and uncomment and change the line with /AutoPPP/ to look like

    /AutoPPP/    -    -    /sbin/pppd auth login +pap -chap modem crtscts

7. Edit /etc/inittab and added

    s0:23:respawn:/sbin/mgetty -D -x2 /dev/ttyC0

and so on until all tty ports were done, then did an init q to initialise
modems.

8. Edit /etc/ppp/options to read

    lock
    proxyarp
    defaultroute
    ms-dns aaa.bbb.ccc.ddd        {first dns server ip address}
    ms-dns aaa.bbb.ccc.ddd        {second dns server ip address}

9. Make some files in the /etc/ppp directory called options.ttyC0
respectively with

    local_ip_address:remote_ip_address    {this is where I can dynamically
assign ip numbers to dial-up clients}

10. Add this to pap-secrets file so that it will authenticate using only
passwd file.

    *    *    ""    *

11. Add users as normal, and you should be able to dial in using their user
id and password (I use adduser). Done and finished.

Try it and see what happens.

Now I did not come up with all of this, all this information can be fathomed
from many sources, mainly this mailing list, thank you to those that
contributed to this document ;)

Cheers


Raoul Mackle
Nexus Networks Ltd.
raoul.m@nexusnet.co.nz


----- Original Message -----
From: <warmongr@my-dejanews.com>
To: <mgetty@muc.de>
Sent: Tuesday, 11 May 1999 14:49
Subject: Re: Thank you all.


> In article <004701be97a5$f8dec6a0$087237d2@nexusnet.co.nz>,
>   "Raoul Mackle" <raoul.m@nexusnet.co.nz> wrote:
> > Hi,
> >
> > I have just installed my first small-time ISP from scratch with an old
> 486
> > and 2 Pentiums running RH Linux.  The 486 is running mgetty with
> AutoPPP and
> > now works perfectly as a dial-up server using a Cyclades multiport and
> 16
> > Dynalink modems.
> >
> > >From learning Linux from scratch at the beggining of this year to
> > implementing it in my ISP, I have found this mail list to be one of
> the most
> > helpfull and mgetty to be probably one of the most powerful tools an
> ISP can
> > have.
> >
> > I would just like to say thank you to all for your information (and
> after
> > much chagrin with pppd) I hope that many more people benefit from this
> > excellent mail list.
> >
> > Yours,
> >
> > Raoul Mackle
> > Nexus Networks Ltd.
> > raoul.m@nexusnet.co.nz
> >
> > You offer a ray of hope.  I am in the same shoes as you were when you
> started.  Can you help me on setting up a dial-up server for 8 external
> courier v.everything modems?
>
>
> --== Sent via Deja.com http://www.deja.com/ ==--
> ---Share what you know. Learn what you don't.---