PPP dial-in server

Some quick notes on installing a PPP dial-in server on a RH7.3 box. This is based on the older instructions found in an old Linux Gazette article:

Make sure the following RPMs are installed:

  • mgetty
  • ppp
  • Modify /etc/mgetty+sendfax files:

  • login.config: uncomment the AutoPPP line. The third argument should be “-” if you want the username recorded in wtmp.
  • mgetty.config: make sure the speed parameter makes sense
  • mgetty.config: put the entry for the modem in there
  • # For US Robotics Courier 56K with speaker off
    port ttyS0
    init-chat “” ATZ OK AT&F1M0E1Q0S0=0 OK
    answer-chat “” ATA CONNECT \c \r

    Modify /etc/inittab:
    7:2345:respawn:/sbin/mgetty -x 3 ttyS0

    Run “init q” after the modem is connected and powered (to avoid error messages).

    Put the following in /etc/ppp/options:

    -detach
    crtscts
    netmask 255.255.255.0
    asyncmap 0
    modem
    proxyarp

    Create a /etc/ppp/ppplogin file:

    #!/bin/sh
    mesg n
    stty -echo
    /usr/sbin/pppd silent auth -chap +pap login

    The “+pap login” makes CHAP use /etc/passwd. Make the file executeable.

    Make a file /etc/ppp/options.ttyS0 and put “myhost:ppp0” in it. myhost is the name of the dial-in server. ppp0 is the name of the process.

    In /etc/ppp/pap-secrets, put in:

    * * “” 10.0.0.4

    This is the assigned IP of the dial-in client.

    Setuid root on /usr/sbin/pppd.

    In /etc/hosts, put the 10.0.0.4 entry in there.

    Edit the firewall to allow 10.0.0.4 to get to the net.

    That should be it. Well, of course, one needs a working modem at this point. Which I don’t have, because the old USR Courier I bought off of EBay came some cheap generic power adapter. I took a look at the adapter for the Courier at work, and it’s 20V, 750mA. The cheap adapter doesn’t do that. Nor do the ones at Radio Shack. I did find a source or two for these adapters, though, so I’ll probably order one shortly. In the meantime, I’ll see if I can take home the one at work, since, well, it’s my modem, which I brought to work a while ago to deal with a dial-out issue.

    I should be able to give this a whirl over the weekend.

    Comments are closed.