--------------------------------------------------------------------------- Generic PPP setup in Linux Author : Terry 'Mongoose' Hendrix II Email : stu7440@westga.edu Version: 2.3 Date : 1999.05.31 Thanks : MindSpring http://www.mindspring.com --------------------------------------------------------------------------- Most Linux distributions have PPP support built into kernel or as a module. If you don't have PPP support in your distrobution you need to recompile your kernel and add support for PPP. I don't know of any modern distrobution that doesn't at time of this writing. Some of this info was taken right off Mindspring's web site. If you're looking for an ISP, Mindspring is pretty good. I think they use Linux and FreeBSD at some POPs. Please email me if you see errors, have comments, or want to send me your old hardware. ;) --------------------------------------------------------------------------- NOTES: '' - When you see a 'command' you don't type the quotes (*) - Hints (!) - Warnings (/) - URL for more information 1. Get the following info from your ISP: Information description | If you use Mindspring --------------------------------------|-------------------------------- (a) Primary DNS server IP address. | 207.69.188.185 (b) Secondary DNS server IP address. | 207.69.188.186 (c) Domain. | mindspring.com (d) Password verification protocol. | PAP (e) Your user DNS, if any. | USERID.users.mindspring.com (*) Where USERID is your Mindspring logon username. (!) If you don't have a PAP for 1d, then skip down to 11. (!) If you have redhat read my redhat_ppp.txt. (!) Read my modem.txt and setup your modem first. 2. First to do this you must be root to setup PPP. (a) Execute the 'su' command. (b) Enter in your root password. 3. Now you're ready to edit the configuration files to setup PPP. (a) Select the text editor you'll use to edit files. (*) Common editors: emacs, gnotepad, jed, pico, vi, and xedit. (*) Pick an editor you're comfortable with and that you understand. (b) To open files it's common to use the command then the file name. (*) Example: 'emacs /etc/hosts' OR 'vi /etc/hosts' (c) For help with your editor try 'man NAME_OF_EDITOR' (*) Example: 'man emacs' 4. Now let's start editing. Open /etc/hosts in your editor. (a) Modify it to have the following line: 0.0.0.0 MY_USER_DNS MY_USER_DNS (b) Fill in your information. (i) Replace MY_USER_DNS with 1e. (c) Save and close this file. 5. Open /etc/hosts.conf in your editor. (a) Modify as follows: order hosts, bind multi on (b) Save and close file. 6. Open /etc/resolv.conf in your editor. (a) Modify as follows: search DOMAIN nameserver PRIMARY_DNS nameserver SECONDARY_DNS (b) Fill in your information. (i) Replace PRIMARY_DNS with information from 1a. (ii) Replace SECONDARY_DNS with information from 1b. (iii) Replace DOMAIN with information from 1c. (c) Save and close file. 7. Open /etc/hosts.deny in your editor. (a) Modify as follows: ALL: ALL (b) Save and close file. 8. Open /etc/hosts.allow in your editor. (a) Modify as follows: ALL: 127.0.0.1 (b) Save and close file. 9. Open /etc/ppp/options in your editor. (a) Modify as follows: defaultroute /dev/modem DTE_SPEED netmask 255.255.255.0 mtu 1500 connect "/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' ' ' ATS11=40 OK ATDTPHONE_NUMBER ogin USERID word PASSWORD" (b) Setup the file. (i) Change USERID to your login username. (ii) Change PASSWORD to your password. (iii) Change PHONE_NUMBER to the dail up number. (*) Don't use dashes or spaces in the phone number. (iv) Change DTE_SPEED to the recommended speed. DTE | Modem ========|========== 19200 | 14.4 57600 | 28.8, 33.6 115200 | 56 (v) (c) Save and close file. 10. Make some pon/poff scripts. (a) Execute these commands: (i) echo "/usr/sbin/pppd" > /root/pon (ii) echo "killall pppd" > /root/poff (iii) chmod 700 /root/pon (iv) chmod 700 /root/poff (b) Now you can test. (i) Execute '~/pon' as root to connect. (ii) Execute '~/poff' as root to disconnect. 11. If you have problems. (a) Execute 'cat /var/log/messages' and read the errors. (b) Read the PPP HOWTO if you have errors. (c) Read the PPP HOWTO if your ISP doesn't have PAP. (/) PPP HOWTO - http://www.interweft.com.au/other/ppp-howto/ppp-howto.html