From dedwards@technologist.com Wed Apr 1 05:23:34 1998 From: dedwards@technologist.com To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] chat file to connect with ATT Worldnet? Date: Wed, 01 Apr 1998 00:23:34 -0500 Message-ID: <199804010523.AAA03484@workshop.forje.org> In-Reply-To: <[S.u.S.E. Linux] chat file to connect with ATT Worldnet?> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5746400491180144888==" --===============5746400491180144888== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On 31 Mar, William G. Madsen wrote:
> On Tue, 31 Mar 98 06:37:00 +0000, you wrote:
>=20
>>
>>I am using worldnet.  When I joined, there was an entry on the wurd
>>site (don't remember the link right now) that provided a perl script
>>written by an ATT employee.
 --------
>>
> Yes, I would appreciate it  very much if you would Email the perl
> script to me.  I think it is exactly what I need.  Thanks.
>=20
> billmadsen(a)worldnet.att.net
Bill, etal
Here is a copy of my ppp script (/usr/sbin/ppp-on - it has also been
called ppp-worldnet!!). I have also attached the html page that all of
this came from - courtesy of ATT. - some good notes.
Special thanks to Stephen A. Wood - I tried to contact him at ATT a
while ago, but no such luck!! As far as I'm concerned, he deserves a
big thank you.

#!/usr/bin/perl
#
# Script to establish connection from a Linux system to worldnet via PPP.
#
# Look at WORLDNET\PROGRAM\REG.INI(WORLDNET\DIALER\REG.INI and ATT.SR
# under Worldnet version 1) to get the following settings
#
$DOMAIN=3D"worldnet.att.net";
$SEARCH=3D$DOMAIN;
$NAMESERVER1=3D"204.127.129.1";
$NAMESERVER2=3D"204.127.160.1";
$NAMESERVER3=3D"204.127.129.2";
$NAME=3D"\@worldnet.att.net";
$PHONE=3D"1,3025711000"; # Philadelphia, PA
$MODEM=3D"/dev/modem";

$resolv =3D '>/etc/resolv.conf';

open(CONF,$resolv)|| die "Cannot open file: $resolv.\n $! \n";

print CONF "\#resolv.conf - created automatically by ".$ARGV[0]."\n";
print CONF "domain ".$DOMAIN."\n";
print CONF "search ".$SEARCH."\n";
print CONF "nameserver ".$NAMESERVER1."\n";
print CONF "nameserver ".$NAMESERVER2."\n";
print CONF "nameserver ".$NAMESERVER3."\n";

$command=3D"/usr/sbin/pppd name \"".$NAME."\"".
    " -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
    $PHONE." CONNECT \"\"\' ".$MODEM.
    " 57600 noipdefault modem defaultroute crtscts";
$ENV{'PATH'} =3D ''; # Make $ENV{'PATH'} untainted
system($command);

The lines 8-12, and 17-26 are  commented out on my SuSE machine and the
necesary data put in resolv.conf permanently - documentation recommended
against frequent updates because of the way SuSE sets things up.

If its not clear what I've done here, email me and I'll try to explain.
 The html doc has a good explanation though.
 Have a good day, everyone.

--=20
Dave E.
-Linux 2.0.30 -SuSE 5.0-- Linux - the choice of a GNU Generation---
No more Blue screen of Death - and no regrets  - Goodbye Microsoft!
----------------------Cyrix 586/100-32meg-2g-----------------------
SHAMELESS Plug:--  dedwards(a)technologist.com
    23yr of MF exp. avail. for home-based outsourcing contracts.
-------------------------------------------------------------------
Title: Linux Configuration
 
3D"Magazines"
3D"News
 
3D"Mail
3D"News
3D"Web
3D"Chat
3D"Online
3D"Connectivity"
3D"Telnet
3D"FTP
 
3D"Site
3D"WURD
3D"FAQ"
 

This web site
designed by a
member of the

WorldNet User's Reference Desk

Connecting Linux and AT&T Worldnet Services

AT&T's Worldnet Service uses standard PPP (Point-to-Point Protocol) with CHAP (Challange Handshake Authentication Protocol). While Windows 3.1x or Windows 95 is required to register a new account, other operating systems that support PPP with CHAP can be used once an account is registered.

Unless you have already configured your Linux system to use PPP to another Internet Service Provider, connecting to Worldnet from Linux will take a little bit of work (recompilling the Linux kernel). Here are a few here a few reasons why one might want to do this bit of work.

If you have used PPP to connect to other ISP's from Linux, and pretty much know what you are doing try reading the Expert Notes below.

The Instructions

  1. If you have not already done so, activate your Worldnet account using the installation disks.

  2. If you have already succesfully installed and used PPP with other ISP's, skip to step 5.

  3. Get a copy of ppp-2.1.2d.tar if your kernel is version 1.2.x, or ppp-2.2.0f.tar for kernels >=3D 1.3.x.

  4. Follow the directions contained within the ppp package for rebuilding your kernel with PPP support and for installing pppd and chat.

  5. Get a copy of the file WORLDNET\PROGRAM\REG.INI (WORLDNET\DIALER\REG.INI for Worldnet version 1) and use the settings in the scripts below.

  6. Add the following line to the file /etc/ppp/chap-secrets=

    999999999(a)worl= dnet.att.net * "password" *

    where 9999999999= has been replace by number on the "Name" line of REG.INI and password is replaced the value on the "Password" line. The quotation marks around the password are important to protect any special characters that might appear in the password.

  7. Create, the following script, substituting the proper values for $NAME and $PHONE. I have given my script the name /usr/sbin/ppp-on.

    #!/usr/bin/perl
    #
    # Script to establish connection from a Linux system to worldnet via PPP.
    #
    # Look at WORLDNET\PROGRAM\REG.INI(WORLDNET\DIALER\REG.INI and ATT.SR=20
    # under Worldnet version 1)to get the following settings
    #
    $DOMAIN=3D"worldnet.att.net";	    =20
    $SEARCH=3D$DOMAIN;
    $NAMESERVER1=3D"204.127.160.1";	   =20
    $NAMESERVER2=3D"204.127.129.1";	   =20
    $NAMESERVER3=3D"204.127.129.2";	   =20
    $NAME=3D"999999999\@worldnet.att.net";
    $PHONE=3D"6213400"; # Cambridge, MA  =20
    $MODEM=3D"/dev/modem";
    
    $resolv =3D '>/etc/resolv.conf';
    
    open(CONF,$resolv)|| die "Cannot open file: $resolv.\n  $! \n";
    
    print CONF "\#resolv.conf - created automatically by ".$ARGV[0]."\n";
    print CONF "domain ".$DOMAIN."\n";
    print CONF "search ".$SEARCH."\n";
    print CONF "nameserver ".$NAMESERVER1."\n";
    print CONF "nameserver ".$NAMESERVER2."\n";
    print CONF "nameserver ".$NAMESERVER3."\n";
    
    $command=3D"/usr/sbin/pppd name \"".$NAME."\"".
        " -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
        $PHONE." CONNECT \"\"\' ".$MODEM.
        " 57600 noipdefault modem defaultroute crtscts";
    $ENV{'PATH'} =3D ''; # Make $ENV{'PATH'} untainted
    system($command); 

    Executing this script should then startup up a connection to worldnet. Give the script a permission of 4755 (chmod 4755 /usr/sbin/ppp-on) if you want to be able to startup the internet connection from accounts other than root.

    This script is a bit fancy in that it writes to the file /etc/reso= lv.conf the domain name and the nameserver numbers. This can be handy if you have several similar scripts for different ISP's, each of which has its own domain name and nameservers. If perl is not available, or you want a simpler script, edit /etc/resolv.conf to contain

    domain worldnet.att.net
    nameserver 204.127.160.1
    nameserver 204.127.129.1
    nameserver 204.127.129.2 

    and use the following the following script startup PPP (replacing the login name and phone number with appropriate values.)

    /usr/sbin/pppd name "99999999=
    9(a)worldnet.att.net" -d connect \
    	'/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDT1111111 CONNECT ""' \
    	/dev/modem 57600 noipdefault modem defaultroute crtscts=20
    
  8. Optionally, one may optionally add a script to disconect ppp. The following is an example of /usr/sbin/ppp-off=

    #!/bin/sh
    # ppp-down - simply kills the ppp-daemon
    kill `ps -a | grep pppd | grep -v grep | cut -b 1-6`=20
    

Mail and News

The values of NNTP_HOST, SMTP_HOST, POP_SERVER, POP_PASSWORD, and EMAIL_ADDR can be extracted from WORLDNET\PROGRAM\REG.INI and used in whatever pop-mail and news software you choose. The Linux version Netscape 2.0 or Netscape 3.0 handle both mail and news fine.

Ed Kelley's A Visual Guide to configuring Netscape 3.0 under Windows 95 may provide some guidance towards setting up Netscape 3.0 under Linux.

PPP utilities and References

A number of PPP utilities are available to enhance the use of PPP on Linux. For example, I use tkppp to give a convenient GUI to start and stop my Worldnet connection as well as to keep track of hours of usage.

Additional information on networking and PPP under Linux can be found in The Linux Network Administrators' Guide and the Linux PPP HOWTO.

The newsgroups linux.dev.ppp= and comp.os.l= inux.networking can also be useful.

Expert notes

If you are already using PPP to other ISP's there are essentially just two possibly new things that need to be done. First, since Worldnet uses CHAP, you must put your username and password (as found in REG.INI) into the file /etc/ppp/cha= p-secrets like so: 999999999(a)worldnet.att.net * "password" *

Secondly, the chat script should only go as far as getting the phone dialed in. CHAP will take care of passing username and password. For example:

usr/sbin/pppd name "999999999(a)world=
net.att.net" -d connect=20
'/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDTthephonenumber CONNECT ""' \
/dev/modem 57600 noipdefault debug modem defaultroute crtscts=20

Additional Notes

Some people connecting to Worldnet with Linux report that it is necessary to add the flag +chap to the pppd command line. However, in most cases, things will not work at all if this flag is used

Last Update 22 September 1996 =20

If you try these instructions, successfully or unsuccessfully, please send me a note at saw(a)worldnet.att.net.
© 1996, Stephen A. Wood

 

Questions or comments regarding this web site should be directed to the WURD Master. Please do not write to us asking for technical support. If you need technical assistance and are a WorldNet member, post a message in our newsgroup. If you have anything you would like to submit to the WURD for publication, please use the same email address.

This website is provided by AT&T WorldNet Service as a User's Solutions Website. AT&T does not approve, support, warrant, guarantee or otherwise endorse any information contained in this website nor any of the information linked to from this site. This website is maintained by the user's of AT&T WorldNet Service. Use at your own risk.

© Copyright 1996. AT&T Corp. All rights reserved. AT&T, AT&T and Globe Design, and AT&T WorldNet are service marks of AT&T. The other marks which appear on this Web Site may be marks of third parties that are not affiliated with AT&T. AT&T and its affiliates do not control or endorse the content of third party Web Sites.

--===============5746400491180144888==-- From billmadsen@worldnet.att.net Wed Apr 1 17:08:46 1998 From: billmadsen@worldnet.att.net To: users@lists.opensuse.org Subject: Re: [S.u.S.E. Linux] chat file to connect with ATT Worldnet? Date: Wed, 01 Apr 1998 17:08:46 +0000 Message-ID: <35237342.211399@mailhost.worldnet.att.net> In-Reply-To: <199804010523.AAA03484@workshop.forje.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1233818258327634936==" --===============1233818258327634936== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, 1 Apr 1998 00:23:34 -0500 (EST), you wrote: >Bill, etal >Here is a copy of my ppp script (/usr/sbin/ppp-on - it has also been >called ppp-worldnet!!). I have also attached the html page that all of >this came from - courtesy of ATT. - some good notes. >Special thanks to Stephen A. Wood - I tried to contact him at ATT a >while ago, but no such luck!! As far as I'm concerned, he deserves a >big thank you. > A big thank you to dedwards also. Worked like a charm. Bill Madsen in St. Louis -- To get out of this list, please send email to majordomo(a)suse.com with this text in its body: unsubscribe suse-linux-e --===============1233818258327634936==--