[Prev][Next][Index][Thread]
No Subject
On Sat, 6 Jul 1996, Falk Fish wrote:
> Hi I'm using Linux 1.2.13 if I'm not mistaken and I'd like to connect it
> to the Internet Gold internet provider by PPP. If anyone here is a
> member of Internet Gold, or any other service provider, and had already
> written a connection script, please send it to me. So far, I failed to
> do so.
hi There,
I enclode my ppp-on scrip wich will enable you to connect to internet provider.
You should edit it a little, and do manuel login in order to know what is
the connection protocol with the ISP.
Afetr you know that you can edit the "chat" section: It compose with
<message> <reply> pairs.
The connection protocol with my ISP is:
ips: BLA BLA BLA >
client (sachbak): login
isp: Username:
client: rivael
isp: Password:
client: #######
isp: promot>
client: ppp /compressed
isp: IP address or hostname:
client default.
You can view the connection sequence of the script in the log files.
Once you have a working script you can remove the -v(erbose) from the chat.
baware from the hackers:-) (I caught one playin deck card "klafim" on my
mechine.)
Bye,
Michael
----------------------------------------------------------------------------
----------
#!/bin/sh
#
# ppp-on
#
# Set up a PPP link
#
LOCKDIR=/var/spool/uucp
DEVICE=modem
PHONE=<your service provider's modem site>
USER=<your user name>
PASSWORD=<your password>
OUR_IP_ADDR=0.0.0.0
if [ -f $LOCKDIR/LCK..$DEVICE ]
then
echo "PPP device is locked"
exit 1
fi
fix-cua $DEVICE
(
stty 19200 -tostop
if chat -v -l LCK..$DEVICE ABORT "NO CARRIER" ABORT BUSY "" ATZ OK
ATl3DT$PHONE CONNECT "" \> "login" Username: $USER ssword: \\q$PASSWORD \>
"ppp /compressed" hostname "default"
then
pppd -detach mru 1500 $OUR_IP_ADDR: /dev/$DEVICE defaultroute
sleep 10
exit 0
else
echo "PPP call failed" 1>&2
exit 1
fi
) < /dev/$DEVICE > /dev/$DEVICE