At 10:16 AM 12/11/1998 +0200, wapr wrote:

>it possible realy to make Linux PPP DialUp server? (It is possible to make NT
>DialUp Server and a will to make Linux as server.)

Hi, I have posted this doc a couple of times before and people seem to have
found it usefull. It is notes of how I et up MY dial in server, its not a
general thing, translate things to suit your system, particulary IP NUMBERS !

RH5.0 may be getting a little out of date, I have used 5.2 elsewhere, seems
no different in the relevent parts.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
Setting up the PPP dial in services on RH 5.0 linux
-----------------------------------------------------
Doc : modems.txt

get source for ppp-2.3.4 and mgetty, copy to /usr/local/src
Tell pppd to put its binaries in /usr/local/sbin but must
let it keep it's config files in /etc/ppp (hard wired).

Need to edit ppp Makefile to send files to /usr/local/~
        BINDIR /usr/local/sbin
        MANDIR /usr/local/man
        ETCDIR /etc/ppp

cd /usr/local/src/ppp-2.3.4
        ./config
        make kernel
        (now go and rebuild kernel :
                cd /usr/src/linux
                make dep
                make clean
                make boot       (may need to edit out bad define)
                copy new kernel to /boot (backup old first)
        return to /usr/local/src/ppp-2.3.4
        make
        make install

++++++++ Make sure you don't use my ip numbers 
++++++++ or all hell will break loose ! 
[root@biotest ]# cd /etc/ppp
        make options files that look like these :
                [root@bctest ppp]# cat options.ttyS0
                131.172.140.47:131.172.140.210
                [root@bctest ppp]# cat options.ttyS4
                131.172.140.47:131.172.140.214
                [root@bctest ppp]# cat options.ttyS5
                131.172.140.47:131.172.140.215
                [root@bctest ppp]# cat options.ttyS6
                131.172.140.47:131.172.140.216
                [root@bctest ppp]# cat options.ttyS7
                131.172.140.47:131.172.140.217
                [root@bctest ppp]# cat options
                asyncmap 0
                netmask 255.255.254.0
                proxyarp
                lock
                crtscts
                modem
                ms-dns 131.172.2.2
                ms-wins 131.172.140.1
        
        to help with logging :
        [root@bctest ppp]# cat ip-down.local 
                #!/bin/bash

                base=`basename $2`

                echo -n $3 >> /var/log/pppd.$base
                echo -n '  ' >> /var/log/pppd.$base
                date +%H:%M >> /var/log/pppd.$base

        Make it executable - chmod u+x ip-down.local
        (make sure the other scripts are executable too)



Compile mgetty
cd /usr/local/src/mgetty-1.1.14
        cp policy.h.dist policy.h
        
        edit Makefile, ~ line 110, add -DAUTO_PPP
                CFLAGS=-O2 -Wall -pipe -DAUTO_PPP  

        make
        make install

cd /usr/local/etc/mgetty+sendfax
        vi login.config and set the following :
        /AutoPPP/ -     -       /usr/sbin/pppd auth -chap +pap 
                        [Line Continued] login proxyarp kdebug 0   


        Add a group called modem
                ie groupadd -g 800 modem



cd /etc 



Add this to /etc/inittab, uncomment where req

# ------------------------------------------------------
# Modem lines 4-7 on multiport card, internal on Com2, S1.

# s0:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS0
s1:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS1
s4:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS4
s5:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS5
s6:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS6
s7:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS7

vi /etc/sysconfig/network
  set the following line :
        FORWARD_IPV4=true


Add to /etc/rc.d/rc.serial
        ${SETSERIAL} -v  /dev/ttyS4 irq 5 autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS5 irq 5 autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS6 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS7 ${AUTO_IRQ} autoconfig ${STD_FLAGS}

Note that the first two lines manually specify the IRQ and the second
pair allow autoconfig. Both methods should work with the AST Fourport
board.

---------------
Create devices for the FourPort card to talk through if not already
there.

        [root@bctest /dev]# cd /dev
        [root@bctest /dev]# ./MAKEDEV ttyS4
        [root@bctest /dev]# ./MAKEDEV ttyS5
        [root@bctest /dev]# ./MAKEDEV ttyS6
        [root@bctest /dev]# ./MAKEDEV ttyS7
And set their owners :
        [root@bctest /dev]# chown uucp ttyS*
        [root@bctest /dev]# chgrp modem ttyS*
        [root@bctest /dev]#
------------------------------------------------------------------------
A D D I N G   U S E R S
-----------------------

   As set up above, anyone with a valid users name / passwd can log on
   and use the system. They do not need a valid shell. They do not need 
   to be a member of modemuser, that is just a convience.

        Add a group called modemuser
                ie groupadd -g 801 modemuser

        Add each user with a false shell, a member of modemuser
                /usr/sbin/addusr -s /bin/false -g modemuser -n <usr_name>

        Each user will have a blank passwd, get them to type in a passwd using the
passwd program while you, as root are logged in (if that suits ...)
------------------------------------------------------------
David Bannon                      [EMAIL PROTECTED]
School of Biochemistry            Phone 61 03 9479 2197
La Trobe University, Plenty Rd,   Fax   61 03 9479 2467
Bundoora, Vic, Australia, 3083    http://bioserve.latrobe.edu.au
------------------------------------------------------------
..... Humpty Dumpty was pushed !

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to