Pick a Free OS

User login

Navigation

Setting up PPP and KPPPD

for editing the login script. Here we enter values that will be sent to pppd

as command line arguments, and in the case of multiple-value arguments, we need

to enter each value as a separate entry in the listbox, in the correct order.



We can put any other arguments in here we want first. Usually you would want

to hand kppp the default options '-detach' and 'defaultroute'. Now we need to

add arguments that pppd needs to handle PAP authentication. In this example

we are going to add 'user', 'booger', 'remotename', 'glob', in that order. The

user argument tells pppd what user name to look for in pap-secrets, and send

to the server. The remotename is only used by pppd to match the entry in the

pap-secrets file, and is not sent to the server, so once again, it can be anything

we want as long as it is consistent with the entry in the pap-secrets file.


That's all there is to it. You should now be able to set up your own connection

to a server with PAP authentication. CHAP should not be much different. See

the Linux Network Administrators' Guide for chap-secrets file format and pppd

arguments used. The rest should be gravy, but...your mileage, ah you know the

rest.

If you are using VSNL dialup (not ISDN) then you also have to define the login

script-click on the tab "Login Script", and enter the script as:

Expect username:

ID

Expect password:

Password

Pause 1

Send ppp

Expect ~

Click on "Device" and set it up for your modem. The defaults should

be good enough. (Remember that ttyS0 is COM1, and ttyS1 is COM2)

Modem Device: /dev/ttyS0

Flow Control: CRTSCTS

Line Termination: CR/LF

Connection Speed : 115200

Enable Lockfile and set the modem timeout to 30 or 60 seconds (30 is usually

enough for tone dialing exchanges).

Click on "Modem".

Make sure that "Modem asserts CD line" is not enabled.

Set "Busy Wait" to the number of seconds you want to wait between

attempts (probably 0)

One reason you might want to send the modem commands directly is if you have

a set of modem configurations you want to keep, and not have to specify for

every connection. A good way to do that is via modem profiles. Modems can have

several stored profiles numbered 0,1,... AT&V can be used to view them all.