[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PPP-ON script?
- To: klug@xxxxxxxxxxxxxxxx
- Subject: Re: PPP-ON script?
- From: Bruce Smith <bruce@xxxxxxxxxxx>
- Date: Sat, 02 May 1998 17:17:31 EDT
- In-Reply-To: <m0yVew7-000a21C@netmeg.netmeg.org>; from "Sir Hoagy" at May 2, 98 12:14 (noon)
> Yes, by all means - do send your old config files!
>
> I was told last night that Michnet uses PAP authentication.
> I do not know what to put in my pap-secrets file.
>
> But...whatever you have, I will gladly take and
> try to use!
>
> Much thanks!
I'll post them to the entire group, for you & others who've ask for them.
One correction, I used an ISP that used Michnet as their backbone.
I didn't use Michnet directly. I don't know if that makes a difference.
The files are between the dashed lines:
/etc/ppp/options
-------------------------------------------------------------------------
connect /etc/ppp/ppp-connect.ark
/dev/modem
38400
crtscts
modem
lock
asyncmap 0
mtu 552
mru 552
defaultroute
netmask 255.255.255.0
debug
-------------------------------------------------------------------------
/etc/ppp/ppp-connect.ark (change permissions to be executable)
-------------------------------------------------------------------------
#!/bin/sh
# A chat script to login to the XYZ PPP server.
#
/usr/sbin/chat -v -f /etc/ppp/chat-ark
while [ $? -ne 0 ]; do
sleep 3
/usr/sbin/chat -v -f /etc/ppp/chat-ark
done
-------------------------------------------------------------------------
/etc/ppp/chat-ark
-------------------------------------------------------------------------
ABORT 'NO ANSWER'
ABORT BUSY
ABORT 'NO CARRIER'
TIMEOUT 9 "" ATM1L0X3\\V0 OK-AT-OK ATDT3872070
TIMEOUT 30 ost:--ost: ppp
TIMEOUT 10 ogin:--ogin: USERID
TIMEOUT 10 assword: \qPASSWORD
-------------------------------------------------------------------------
Replace USERID and PASSWORD with your real user/password,
and leave the '\q' directly in front of your password.
I don't show my files needing PAP or CHAP authorization for Michnet.
If you do, put the following line in /etc/ppp/pap-secrets
-------------------------------------------------------------------------
USERID * PASSWORD
-------------------------------------------------------------------------
The same goes if you need CHAP authorization.
Same line, filename is /etc/ppp/chap-secrets
To connect just type "pppd" as root (or make it SUID).
to disconnect: kill -INT `cat /var/run/ppp0.pid`
You can make the disconnect an alias or script.
Check the log file: /var/log/messages for debugging
information about your connection. Good Luck!
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------