PAP configuration
Hi
im having great trouble trying to connect to the internet and I think my main problem is that I cant follow and setup what is being said in the help file of my isp. Can someone help me follow it in more “newbie” friendly terms, please, im sick of having to reboot into windows to access the net.
Here is the help file from my isp ClearNet
A. PAP configuration
CLEAR Net uses PAP (Password Authentication Protocol) to authenticate a
user trying to login. PAP is one of the protocols in the PPP suite, which is used
during a PPP session. With PAP, PPP first starts an LCP session, then
proceeds to a PAP session.
Which means with the PAP authentication scheme, after your modem has
succeeded the low-layer negotiation, the LCP session starts immediately.
There is no “login:” prompt or plain text used. Thus, a chat script which
works with other providers, will not work.
This is because, while a chat program waits until the network access server
sends your computer the word containing “ogin:”, a PAP configured Network
Access Server never sends that word to you. The chat script you are going to
use needs to look like as follows;
“” ATZ
OK ATDT9123050
CONNECT “”
Note that the authentication triggers (the words “ogin” and “word” ) used by
the Network Access Server has been removed - meaning PAP will take care of
the process.
This script enables the chat program to exit as soon as it gets the
“CONNECT” response from your modem, which is a sign that your modem
had succeeded negotiation with the CLEAR Net server. When the chat script
has finished, the PPP session starts from the LCP phase and then to the PAP
phase.
Now, PAP configuration for pppd. There are two ways to activate PAP in
pppd. One is to use the standard /etc/ppp/pap-secrets file, and the other is to
use a file that you specify. The file can be found at:
/etc/ppp/pap-secrets
The /etc/ppp/pap-secrets file stores your login_id and password in a secure
manner in that the owner of this file is “root” with read/write access only given
to anyone with root access(permission 600 - note that pppd should have setuid
to root). The contents of the file are :- your login_id, machines to be
authenticated, and your password (which is called “secret”) in one line, each
separated by whitespace(s). The hash symbol # is used to mark a line only used
to comment. So, the file looks like :
# This is a sample pap-secret file
# login_id machine secret
ckent * superman
- where ckent is your login id and superman is your password. * is a wildcard
to match any machine. * is used because your machine name is not known to
anybody.
pppd will not automatically initiate PAP even if you placed pap-secrets in the
regular location. You must tell pppd of your intention to use PAP by giving the
“user” option. The “user” option tells pppd to use the name specified by this
option in PAP negotiation. You need to be authenticated as “ckent”, so “user”
should be “ckent”. Then, a command line becomes like this;
pppd user ckent connect 'chat -v -f .chat' /dev/cua1
Naturally, ckent must appear in the first column of the /etc/ppp/pap-secrets
file.
Personal secrets file
The other way is to use any file, such as your personal (not root's)
file, eg ~/secret. This would only be useful for users who do not have root
permission to create a pap-secrets file. The file consists of two lines. First line
stores your login id, and the second stores your password. Thus the file looks
like;
ckent
superman
To activate this feature in pppd, you use the “+ua <filename>” option. With
this the command line looks like :
pppd +ua ~/secret connect 'chat -v -f .chat' /dev/cua1
Note that this feature may be obsolete on your system. Check your pppd man
page.
Now that PAP is configured, you should be able to connect to CLEAR Net.
|