Well Nick got me going.. I now have a pppd and cham connection .. for some
reason the default IP Route is not replaced at the end but I do connect and
authenticate.. I will go on with other suggestions that I received from
others among you..
Thanks, I feel new hope!
Gary B
-----Original Message-----
From: Nick Birkett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 29, 1999 4:59 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: diald
On Tue, 29 Jun 1999, you wrote:
> Nope, I was using MS Proxy as a dial on demand router.. I have had
Well you first need to be able to access your ISP with a dialup script.
Most of them these days do PAP (i.e like windows default).
Here is what you need to do PAP :
All these as root user:
if you have a file /etc/ppp/options then make a backup of it and empty it:
e.g
cp /etc/ppp/options /etc/ppp/options.BAK
touch /etc/ppp/options
Ok. edit the file /etc/ppp/pap-secrets
In here you will need to put your dialup username and password in the form
username * password
i.e with a * in between.
The pap-secrets file should only be readable by root (for security)
chmod 600 /etc/ppp/pap-secrets
Next make sure the pppd daemon is suid :
chmod u+s /usr/sbin/pppd
Finally you will need to edit a file .ppprc in root's home directory
and put in a line of the form :
user username
where username is your dialup user name.
O.k this is all the root stuff done.
Make a file in your home directory called .dialin (or whatever you want)
It looks like this :
"" ATZ OK ATDT1234567890 CONNECT \c
This resets the modem and dials your ISP.
This assumes you have a standard Hayes compat modem (most are) and you need
to edit the telephone number of your ISP 1234567890 - put the correct one
in.
Finally you need to make another script called ppp-on which uses the
.dialin file and looks like this
#!/bin/sh
PORT="cua1"
SPEED="115200"
LOGIN="/home/nrcb/.dialin
pppopt="asyncmap 0 debug crtscts modem defaultroute noipdefault"
runppp="$PPPDIR/pppd connect '/usr/sbin/chat -v -f $LOGIN' \
/dev/$PORT $SPEED $pppopt" \
eval $runppp
Make this executable :
chmod a+x ppp-on
You will need to edit your modem port (cua1 = COM2, cua0 = COM1 etc)., your
.dialin location (LOGIN= ....)
This is a very crude script which doesn't take into account the phone line
being
disconnected, the ISP number being engaged etc.
O.k executing ppp-on as root should connect you.
If you make a .ppprc file in your normal home directory then you should be
able
to connect as an ordinary user as well.
Next email.
Nick
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]