Toronto Free-Net
  Front  •  Account  •  TFNews  •  Help  •  Contact  
Mandriva & RedHat Linux dialup PPP instructions
[image: Linux Tux logo]

Introduction

There are two methods for setting up a PPP dialup connection, depending on your flavour of Linux. Most newer distributions of Linux have "linuxconf" or similar visual and graphical configuration systems which reduce the effort of setting up a dialup PPP connection.

Distributions of Linux which lack these applications must be manually configured. For more help with such systems, see the links to modem setup and other information.

Toronto Free-net dialup settings

See settings at-a-glance.

PPP dialup with newer Mandriva and RedHat Linux distributions

Each distribution has its own method of setting up a PPP connection. It is important to check the documentation included with your operating system, in order to determine the proper method for your software.

If you cannot determine which PPP configuration software is included with your system, open up a shell, and type "linuxconf" (you may have to be the root user to configure the system properly). If all else fails, use the manual PPP configuration method below.

Manual configuration of PPP

The information contained here assumes a general familiarity with the basics of your operating system. For more detailed explanations, please see links to modem setup and other information.

The first task in setting up PPP is to ensure that all required software is installed and configured. Almost all distributions ship with pppd, the Linux implementation of PPP, properly configured. If you are unsure or need to reinstall the PPP system, please refer to the Linux PPP HOWTO.

Almost all Unix-like systems put the configuration files for PPP in the /etc/ppp directory. If there are no configuration files there, read your manual or use the "locate" command to find them.

To setup the Domain Name Server configuration, open the file /etc/resolv.conf in your favorite editor, and insert the following lines (put the # symbol in front of any lines already present in the file to comment them out):

search torfree.net
nameserver 199.71.188.8
nameserver 204.225.122.150

Next, edit the /etc/ppp/options file. Here, we assume that /dev/ttyS1 is the modem location (COM2 in DOS terms) -- adjust as required. Insert the following lines, and disable any lines not shown here by putting the # symbol in front of them (replacing yourlogin with your own Toronto Free-Net Username):

0.0.0.0:
/dev/ttyS1
lock
crtscts
defaultroute
asyncmap 0
mtu 576
mru 576
name yourlogin

Then edit the /etc/ppp/chap-secrets and the /etc/ppp/pap-secrets, by entering the following information into each (they should be identical), where yourlogin is your Username and yourpass is your Toronto Free-Net password:

# Secrets for authentication using PAP (or CHAP)
# client server secret IP addresses
yourlogin * yourpass

Next, create a Toronto Free-Net chat script to automate the dialing process. With your favorite editor, still as root, create a file called tfn.chat in the /etc/ppp directory, and put the following lines in your new file.

The "*70," before the TFN phone number disables Call Waiting for the duration of your dial-up session. Don't include this if you don't have Call Waiting.

""AT&D2
OK ATDT#*70,6474771477#
57600 \n
ogin: yourlogin
word: yourpass

Finally, create a shell script to activate the PPP connection. Still as root, move to the /usr/sbin directory and create a file called tfnppp containing the following lines (replace /dev/ttyS1 with your actual modem port; the text that begins with "exec" is very long but you must put it all in one line of the file):

#!/bin/sh
exec pppd connect 'chat -f /etc/ppp/tfn.chat' /dev/ttyS1 57600 0.0.0.0: asyncmap 0 crtscts defaultroute

Make the file executable, by typing this command at the shell prompt:
chmod 755 /usr/sbin/tfnppp

Now, to connect to Toronto Free-Net, just run your new tfnppp command.

This is a very basic procedure which should allow you to connect with Linux, using PPP. It ignores any security features which should be incorporated on multi-user systems. It is only one of many ways in which PPP can be configured and implemented. Please refer to the Linux PPP HOWTO and to the other resources for more information.


Back Front Contact

Copyright © 2010 Toronto Free-Net Inc.