You don't set up a chat script. What you do (in general terms) is:

1. Set your modem to auto-answer. Exactly how to do this varies by modem,
mainly in how you get the modem to store a revised configuration, so consult
your modem docs for this part.

2. In /etc/inittab, add a line that has whatever getty app you use (mgetty,
agetty, getty_ps, etc.) watch the modem line for a call. Then reinitialize
init so the process starts.

3. Have the incoming call run pppd . There are two basic ways to do this:

        a. the getty process can run something other than login, 
                specifically a script that starts pppd . You'd then
                have pppd authenticate using pap or chap.

        b. the getty process can start a normal login. In this case, 
                the accounts that run ppp connections would have the
                shell entry (/bin/bash, usually) replaced with an 
                entry that runs a script to start pppd . This method
                relies on ordinary userid/password authrntication.

This is only a sketch of the process. The PPP HowTo has more sketchy
information on it, possibly enough that with this helpm you can work out the
details for yourself. If you like, I can provide a complete setup using
agetty .... but only old-time, hardcore Slackers seem to use agetty these
days, and the setups for, for example, mgetty that I've seen are quite
different in detail.

Oh, one qualification ... technically, ppp is a peer-to-peer connection, not
a client-server process. But in practice, everyone uses the terms client and
server the way you do -- the ppp client makes the phone call and the ppp
server answers the phone (analogous to "terminal server" for a host that
acceptd dialin for shell connections).

At 11:01 AM 5/6/99 -0700, James Yu wrote:
>Do you know how to set up the chat script to make my Linux box become
>an PPP dialup server ? Any pointer will help. Thanks.

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------


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

Reply via email to