Probably the easiest to configure for. You will need to create three files
in the /etc/ppp
directory.
The first of these is ppp.conf
. It should look similar to the
example below. Note that lines that end in a ``:'' start in column 1, all
other lines should be indented as shown.
/etc/ppp/ppp.conf
1 default:
2 set device /dev/cuaa0
3 set speed 9600
4 disable lqr
5 deny lqr
6 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
\\dATDT\\T TIMEOUT 40 CONNECT"
7 provider:
8 set phone 01234567890
9 set login "TIMEOUT 10 gin:-BREAK-gin: foo word: bar col: ppp"
10 set timeout 120
11 set ifaddr x.x.x.x y.y.y.y
Don't include the line numbers, they're just for this discussion.
Identifies the default entry. Commands in this entry are executed automatically when ppp is run.
Identifies the device that has the modem hanging from it.
COM1: is /dev/cuaa0
and COM2: is /dev/cuaa1
.
Sets the speed you want to connect at.
Don't know exactly what effect these lines have
Dial string commands. user ppp uses the chat(8)
language. Check the manual page for information on the features
of this language.
Identifies an entry for a provider called ``provider''.
Sets the phone number for this provider. Don't include any spaces in the phone number.
Set's the login string sequence. In this example, the string is for a service who's login session looks like
J. Random Provider
login: foo
password: bar
protocol: ppp
You will need to alter this script to suit your own needs. It is
written in the chat(8)
language.
Sets the default timeout (in seconds) for the connection. So the connectioned will be closed automatically after 120 seconds of inactivity.
Sets the interface addresses. The string x.x.x.x should be replaced by the IP address that your provider allocates you. The string y.y.y.y should be replaced by the IP address that your ISP indicated for their gateway.
Now you have to edit the file /etc/ppp/ppp.linkup
:
x.x.x.x:
add 0 0 HISADDR
Replace x.x.x.x with your IP address as before. This file is used to
automatically add a default route from your ISP (who's address is
automatically inserted with the HISADDR macro) to you.
Finally, you can create the file /etc/ppp/ppp.secret
, which sets
some passwords to prevent people messing around with ppp on your system.
You may or may not want to do this, depending on how many people have
access to your ppp system.