There are many approaches to this. Here is a short description of the way
I've done it.
On the answering end, you don't "run" pppd as such -- you set up agetty (or
equivalent) to watch the port and run pppd in response to a login attempt.
Simplifying our setup a bit to remove complexity you don't require, what is
needed is:
1. in /etc/inittab, use a line like this to accept incoming calls on the port:
s0:45:respawn:/sbin/agetty -ht60 38400 ttyS0 -l /etc/ppp/ppplogin
This calls the script ppplogin instead of the normal login program. (Modify
device identifier and serial-line speed as appropriate to your setup.) The
important feature of agetty that is relevant here is that it will let you
specify a program other than /bin/login to run. Any *getty* program that has
this ability should substitute nicely for agetty.
2. Assuming you need to work with only one fixed pair of IP addresses, you
would use a ppplogin script like:
!/bin/sh
exec /usr/lib/ppp/pppd passive modem proxyarp auth login +pap \
192.168.86.23:192.168.86.42
where the first number is the server's IP address and the second the IP
address you want to assign to the client. If you had many users, each with a
static IP address, you'd need to modify the script to get the appropriate IP
address, something that I think the pap option can provide (though I don't
recall how).
3. The modem, of course, needs to be set up to auto answer, and to revert to
auto answer after hangup.
At 05:12 AM 4/17/99 +0530, [EMAIL PROTECTED] wrote:
>I would highly appreciate if somebody could tell me the steps for
>configuring PPP in the LINUX server so that users can dial in.
------------------------------------"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]