N.B. These notes have been written following experience under RedHat linux 5, but should be pretty close for most 'reasonably up to date' distributions. 1.Note that the majority of this is covered in the PPP-HOWTO. 2.Ensure that pppd and chat are loaded on your system. Check the directory /usr/sbin for these files. 3.Ensure that your kernel has ppp support compiled in, test this by checking the boot time messages (use the dmesg command if you need to) for a message like 'PPP line discipline registered'. 4.Create a directory in /etc/ppp called 'scripts' 5.Open the file /etc/ppp/options and ensure that it reads as follows: ------------------------------------------------------------------------------ #This should be sol and then your username (eg. solzz99) name sol lock #prevent forking modem #use hardware flow control crtscts defaultroute #IP address will be given to us... noipdefault asyncmap 0 mtu 552 mru 552 ----------------------------------------------------------------------------- 6.Edit the file /etc/ppp/chap-secrets so that it reads as follows replacing zz99 with your User ID and replacing password with your PIPEX Dial password: ----------------------------------------------------------------------------- # Secrets for authentication using CHAP # client server secret IP addresses UK/solzz99 * password * UK/solzz99 password ------------------------------------------------------------------------------- 7.Change the permissons on this file to 600 by using the chmod command 8.Create a file called /etc/ppp/scripts/ppp-on then enter the following: ------------------------------------------------------------------------------- #!/bin/sh # #Connection script for PIPEX Dial TELEPHONE=08450885336 #These will be given to us... LOCAL_IP=0.0.0.0 REMOTE_IP=0.0.0.0 NETMASK=255.255.255.0 #export so avail to dialer... export TELEPHONE # run dialer script... DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer #use with 28.8/36.6/56k modems (see man setserial) #NB this means this script must be executed as root (or SUID root) #Be careful about access permissions if you set it SUID root. #init serial port set too vhi speed (115200) /bin/setserial /dev/modem spd_vhi #init PPPD exec /usr/sbin/pppd -d /dev/modem 38400 \ $LOCAL_IP:$REMOTE_IP \ connect $DIALER_SCRIPT ------------------------------------------------------------------------------- 9.Create another file called /etc/ppp/scripts/ppp-on-dialler and enter: ------------------------------------------------------------------------------- #!/bin/sh # # PPP dialer script.. /usr/sbin/chat -v \ TIMEOUT 10 \ ABORT '\nBUSY\r' \ ABORT '\nNO ANSWER\r' \ '' \rATZL1 \ 'OK-+++\c-OK' ATH0 \ TIMEOUT 40 \ OK ATDT$TELEPHONE \ CONNECT ------------------------------------------------------------------------------- 10.Create the last file called /etc/ppp/scripts/ppp-off and enter: ------------------------------------------------------------------------------- #!/bin/sh kill `cat /var/run/ppp0.pid` ------------------------------------------------------------------------------- 11.Now chmod the 3 scripts to have permissons of 750, by typing chmod 750 /etc/ppp/script/* 12.Edit your /etc/resolv.conf file. It should look like the following: ------------------------------------------------------------------------------- search dial.pipex.com nameserver 158.43.240.4 nameserver 158.43.240.3 ------------------------------------------------------------------------------- You now have the relevant scripts to connect and disconnect and the relevant DNS settings to resolve domain names on the Internet. To connect ensure you are logged in as root and type: /etc/ppp/scripts/ppp-on This will start pppd, you can check this by typing 'ps a' and see if the process is running. To disconnect simply type: /etc/ppp/scripts/ppp-off