=ppp-setup v1.3= 6/3/97====================================================== These files are to get Linux PPP running on a manual basis. Make sure you have the following FIRST: - PPPD v2.2.0f or better - chat v1.8 or better - Linux kernel with PPP support compiled in - A serial port with a 16550A or better UART ============================================================================ *Please Note:* I will place any in-line comments in {} brackets! Delete ALL lines in each section that start with these brackets or thins won't work. Every section is started by the file name that should be created with the section's contents. You will also see a command (chmod) that is used to change the Read/Write/Execute permissions for this file. Once you have create the file, save the changes, execute this given command for EACH section. In each section, make sure to replace both the /dev/ttyS1 with the with your modem's COMM port. If you aren't sure which port it is, from a command line, run the following (for Slackware users): "/etc/rc.d/rc.serial". This should give you an idea of what COMM ports are on your machine. Also, in each section, make sure to verify and/or replace the various file PATHS for the programs with the correct ones. If your not sure where say "pppd" is, at a Unix prompt, type "whereis pppd" and it should tell you. -- -- /etc/ppp/chat.isp [chmod 400 chat.isp] ABORT BUSY ABORT 'NO CARRIER' "" ATZ OK ATM0S11=40 OK ATDT5551212 CONNECT "" -- -- /etc/ppp/pap-secrets [chmod 400 pap-secrets] First-line-is-your-ISP-login-name-so-replace-ALL-of-this-just-with-it Second-line-is-your-ISP-login-password-so-replace-ALL-of-this-just-with-it -- -- /etc/ppp/options [chmod 400 options] +ua /etc/ppp/pap-secrets { MTU settings will greatly effect your performance, please read up } { on calculating MTU settings from my PPP web page. } { } { This setup is optimized for file transfers and NOT for interactive} { traffic like telnet, talk, etc } { 14.k: 296 28.8/33.6k: 470 IP Masq users: 1500 } # Masq users: If you get a lot of "MASQ: failed TCP/UDP checksum for # xxx.xxx.xxx.xxx" errors, turn off VJ header compression # by do the the following: # # -vj # Masq users: If, for some reason, some WWW pages and FTP sites come # up but others don't, you may have a MTU problem. Try # changing your MTU/MRU settings and see if that helps # by doing the following" # # mtu 150 # mru 1500 mtu 470 mru 470 asyncmap 0 lcp-restart 1 ipcp-restart 1 -- -- /etc/rc.d/rc.serial { Put this as the LAST line in the file for a modem on COM2 } /bin/setserial /dev/cua1 spd_vhi -- -- /etc/resolv.conf domain replace-this-with-your-ISP's-domain-name-(example: ecst.csuchico.edu) nameserver replace-this-with-one-of-your-ISP's-dns-servers {example: 132.241.66.6} nameserver replace-this-with-another-one-of-your-ISP's-dns-servers nameserver replace-this-with-another-one-of-your-ISP's-dns-servers -- -- /usr/lib/ppp/startppp [chmod 500 startppp] #!/bin/sh -v echo Killing any stray PPPD processes kill -9 `ps -aux | grep pppd | grep -v -e grep -e mail -e deliver | awk '{ print $2'}` kill -9 `ps -aux | grep chat | grep -v -e grep -e mail -e deliver | awk '{ print $2'}` echo Begining PPP negotiation.. {Replace /dev/ttyS1 with your modem's COMM port.. remember, always start } {counting with "0". Also.. make SURE that the paths for pppd/chat are } {in /usr/sbin. If not, change this command line to use the correct path } /usr/sbin/pppd /dev/ttyS1 38400 crtscts -d lock defaultroute connect '/usr/sbin/chat -v -t 45 -f /etc/ppp/chat.isp' & -- -- /usr/lib/ppp/stopppp [chmod 500 stopppp] #!/bin/sh echo Shutting down PPP {Replace /dev/ttyS1 with your modem's COMM port.. remember, always start } {counting with "0". Also.. make SURE that the paths for pppd/chat are } {in /usr/sbin. If not, change this command line to use the correct path } /usr/lib/ppp/pppd /dev/ttyS1 disconnect echo Killing any stray PPPD processes kill -9 `ps -aux | grep pppd | grep -v -e grep -e mail -e deliver | awk '{ print $2'}` kill -9 `ps -aux | grep chat | grep -v -e grep -e mail -e deliver | awk '{ print $2'}` -- --< end. >--