1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
|
<!doctype linuxdoc system>
<article>
<title>PPxP Quick Start Guide
<author>Takashi Manabe,<tt/manabe@amitaj.or.jp/ <newline>
Akira YOSHIYAMA,<tt/yosshy@lyra.vega.or.jp/
<abstract>
This is a document for trying making PPP connection with PPxP via
telephone lines (modems or terminal adapter) quickly. So see another
document for install, command meaning, and more configuration. This
describes an example with PAP/CHAP authentication.
</abstract>
<sect>Confirm User and Group
<p>
PPxP has uid of root, but usually works with uid of its user. So the
PPxP users need uid or gid that can access to special file of modem
device or its lock directory.
<descrip>
<tag>Red Hat Linux</tag>
Gid of /dev/ttyS* is root, so a user can't write these. And one with
gid of uucp can create a file in /var/lock directory. First, add PPxP
users to uucp group, and command below as root:
<tscreen>
<verb>
# chmod /dev/ttyS* 660
# chgrp uucp /dev/ttyS*
</verb>
</tscreen>
<tag>Debian GNU/Linux</tag>
Members of dialout group can read and write /dev/ttyS*, and any user
can create a file in /var/lock directory. So add PPxP users to dialout
group.
<tag>Slackware</tag>
Members of tty group can read and write /dev/ttyS*, and any user can
create a file in /var/lock directory. So add PPxP users to tty group.
<tag>FreeBSD</tag>
Account uucp and members of dialer group can read and write
/dev/cuaa*. So add PPxP users to dialer group.
</descrip>
<sect>Quick Dialup
<p>
The standard user interface of PPxP is ppxp. First, run ppxp and the
prompt <tt>ppxp></tt> comes. Next, command 'qdial'.
<tscreen>
<verb>
% ppxp
PPxP version ...
interface: ul0
ppxp> qdial
</verb>
</tscreen>
You will make PPP connection with some configuration like a telephone
number of ISP in quick dialup. Strings fenced with '[]' in
query message is the default value that will be used with no input.
Push CTRL+d and you will exit this mode.
<descrip>
<tag>Device Name[/dev/modem]</tag>
Enter the device name of a serial port connected to a
modem. /dev/ttyS0 means COM1 in DOS, /dev/ttyS2 as COM2.
<tag>Modem Type[generic]</tag>
Specify a modem configuration file. Hit Enter key if you use a generic
Heis AT compatible modem.
<tag>Authentication Protocol[PAP CHAP]</tag>
Specify authentication protocol. If you know that whether PAP or CHAP
is your ISP's authentication protocol, specify it. Otherwise hit Enter
key.
<tag>Dial Type[Tone]</tag>
If your telephone has push button and dials with tones, Specify
Tone. Otherwise specify Pulse.
<tag>Phone Number</tag>
Specify your ISP's phone number. For example, you can also enter
123456 as 12-3456.
<tag>Login Name</tag>
Enter your account name for PPP connection to your ISP. If you have
two username for one account, specify one not for mail server.
<tag>Login Password</tag>
Enter a password for PPP connection. No display entering. If you've
mistaken, Push CTRL+u and enter the password from beginning again.
<tag>Login Password(again)</tag>
Re-enter your password. This confirms that your password isn't
mis-entered.
</descrip>
Finary, messages for confirming will be displayed. Hit Enter key and
PPxP will begin dialing. If you enter any strings except 'yes', PPxP
will exit this mode.
<tscreen>
<verb>
Dial now[yes]?
ppxp>
...
PPXP> quit
%
</verb>
</tscreen>
If all prompt characters change to large 'PPXP', the PPP connection is
established. enter 'quit' command and ppxp will be exit.
<sect>User/Password Registration
<p>
The quick dial up is one of functions in ppxp command. It's
troublesome to enter your password each time, so ppxp is usually used
with a database file containing your account and password. To register
your password is done with ppxp command.
<tscreen>
<verb>
% ppxp
PPxP version ...
interface: ul0
ppxp>
</verb>
</tscreen>
For registration, you need your account name and password on your ISP,
and also need its entry name for password management in PPxP. A entry
name is allowed anything if it's not doubled. Specify a entry name for
a argument of passwd command in ppxp, and ppxp register or changes its
entry. For example, an account 'XYZ01234' and its password 'Test' for 'quick'
entry is registered. Note that entering password isn't be
displayed. If you finish registering, enter passwd command in ppxp and
confirm the registration. Note that the password entry is encoded, so
it's different from your entering. If you command passwd in ppxp and
no entry is displayed, exit and rerun ppxp, and command 'passwd'
again.
<tscreen>
<verb>
ppxp> passwd quick
Name:XYZ01234
Password:
ppxp> passwd
NAME PASSWORD GROUP SCRIPT
quick XYZ01234 fCQ0UlE/clRl
</verb>
</tscreen>
<sect>Modem Setting
<p>
To load generic modem settings, run ppxp command with qdial
designation.
<tscreen>
<verb>
% ppxp qdial
PPxP version ...
interface: ul0
ppxp>
</verb>
</tscreen>
And generic configuration iss loaded. Next, you need to set some local
configuration. First, specify auth and passwd to use the entry quick
made above.
<tscreen>
<verb>
ppxp> set auth.passwd quick
</verb>
</tscreen>
Enter 'PAP' in auth.proto if the allowed authentication is PAP, 'CHAP'
for CHAP, either if you don't know that.
<tscreen>
<verb>
ppxp> set auth.proto chap
</verb>
</tscreen>
Set modem deivce to line. '/dev/ttyS0' means COM1 on DOS, '
/dev/ttyS1' as COM2.
<tscreen>
<verb>
ppxp> set line /dev/ttyS1
</verb>
</tscreen>
Set phone numbers of your ISP to dial.list. For example, setting
12-3456 is:
<tscreen>
<verb>
ppxp> set dial.list 123456
</verb>
</tscreen>
Specify 'tone' to dial.type if you use tone dialed telephone line, 'pulse'
if pulse dialed one.
<tscreen>
<verb>
ppxp> set dial.type tone
</verb>
</tscreen>
<sect>Dialing
<p>
Here, it's done. Only to do is dialing. Enter 'connect' and PPP
connection is established if prompt changes to 'PPXP'.
<tscreen>
<verb>
ppxp> connect
PPXP>
</verb>
</tscreen>
To exit, enter disconnect.
<tscreen>
<verb>
PPXP> disconnect
ppxp>
</verb>
</tscreen>
</article>
|