On 25-Nov-99 Fernandez wrote:
> HI, I'm relatively new to unix, I have RH60 running as a server, and I
> want certain users to be able to dial up to my RH server, and access the
> resources. I was able to dial out(connect to other RH box) but I'm
> struggling to make my server to work as "PPP server". Can anyone direct me
> to easy to follow instructions or doc. that can help me to set it up. I
> had read "robert hart PPP HOWTO" but I found confusing and is relatively
> old doc.(1997). I really need this server to work with dialin
> capabilities.
> Thanks... Mario
I just set one of these up recently.
The BIG question is _will your users be windows users?_
If the answer is yes, then you MUST set up PAP dialin support. if the
answerr is no, then standard dialin with a shell of pppd works fine.
set up /etc/options.ttyS## (where ## is the ttyS device number of the
incoming com port.) and you can use getty/ps_getty, or mgetty
If you need to supply PAP, then teh ballgame is slightly different.
getty/ps_getty does not support PAP dialin, so you MUST use mgetty.
There is a config file supplied w/ mgetty that pretty much walks you
thru the setup. the PAP authentication is not tricky, but IMO it
is not well documented. The format of the file is:
# client server secret IP addresses
login id your-hostname password *
all 4 fields should be there, the last should be "*" in most cases.
The paplogin file will look something like:
#!/bin/sh
# General PAP login script to use with mgetty
# Edit /etc/mgetty+sendfax/login.config and change the /AutoPPP/ line
# line this
# /AutoPPP/ - a_ppp /etc/ppp/paplogin
# Copy this file in /etc/ppp/paplogin and edit the DNSIP definition below
# You must provide the IP of the DNS, not its name
# pppd won't do a lookup all by itself.
DNSIP=your.dns.server.ip
# Check out the quotes on the next two lines.
# They are back quote, not normal quote. Very important!!!
TTY=`tty`
TTY=`basename $TTY`
# Allocate the IP from the tty name, using DNS lookup
# this is the nicest solution. No /etc/ppp/options.tty needed
exec /usr/sbin/pppd -detach auth -chap +pap login \
crtscts modem lock \
idle 600 \
: assigned.ip.addr.here \
ms-dns $DNSIP
The above is for 1 simultaneous ppp user, with an assigned IP address
of assigned.ip.addr.here - This is obviously a special case, and a quick
and dirty. Clearly it is better to have options file for each dialin
line, and then do the IP assignment within that options file.
Note that this file came from a "locate paplogin" and was found at
/usr/lib/linuxconf/lib/paplogin
in a RH 5.2 installation. I believe that this file originated from
the mgetty distribution, so once you have the mgetty kit, you'll have
most of what you need.
If you can ask a more specific question, I can give you pointers to
specific problems/questions/issues.
-Greg
----------------------------------
E-Mail: Gregory Hosler <[EMAIL PROTECTED]>
Date: 25-Nov-99
Time: 14:54:06
Windows 0.3.1 - Windows 0.95 - Windows 0.98
-> so where is the stable version?
----------------------------------
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.