12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9Since ppp(8) runs in the background (except in the foreground andinteractive modes), you have no information about what is actuallyhappening, unless you take a look at the ppp log file that is located at /var/log/ppp.log. This is especially useful while troubleshootinglink failures.To run user PPP on system boot-up, in the previous example, you should add thefollowing lines to your /etc/rc.conf file:ppp_enable="YES"ppp_profiles="myisp"ppp_mode="ddial"ppp_nat="YES"Setting up PPP ServerIn this mode, ppp(8) can be used to accept incoming PPP connections on stdinor stdout.There are several steps involved in setting up a PPP dial-in server. These arelisted here:1. Create a ppplogin script.2. Configure the /etc/gettytab file.3. Configure serial device.4. Configure the /etc/ppp/ppp.conf file.5. Add users to the /etc/ppp/ppp.secret file.The first step is to create a typical ppplogin file in the /etc/ppp directory. This fileis a simple shell script file that runs upon receiving an incoming call. The file shouldcontain the following lines:#!/bin/shexec /usr/sbin/ppp -direct incomingThe incoming parameter used here will be configured, later on, in the PPPconfiguration file as a configuration tag.You should also adjust the permissions on this file so that the PPP program hasnecessary access to this file by running the following commands:# chgrp network ppplogin# chmod 0650 ppplogin[ 149 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!