From owner-freebsd-questions Mon Aug 11 19:24:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA17928 for questions-outgoing; Mon, 11 Aug 1997 19:24:13 -0700 (PDT) Received: from max.roskildebc.dk (max.roskildebc.dk [194.182.101.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA17823 for ; Mon, 11 Aug 1997 19:24:00 -0700 (PDT) Received: by max.roskildebc.dk (5.61/9.8) with UUCP id AA06314; Tue, 12 Aug 97 04:23:23 +0200 Received: by swimsuit.roskildebc.dk (0.99.970109) id AA00731; 12 Aug 97 04:17:20 +0100 From: Joachim.Jaeckel@234-49-99.swimsuit.roskildebc.dk (Joachim Jaeckel) Date: 10 Aug 97 23:16:38 +0100 Subject: RE: PPP Message-Id: <74a_9708120417@swimsuit.roskildebc.dk> Organization: Fidonet: Swimsuit Safari <-> Internet Gateway To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk From: Joachim Jaeckel Subject: RE: PPP On 10-Aug-97 Aaron Jones wrote: >is there anyone who could make a ppp script for me so i could dial into my >isp, just tell me where to put the phone number, i have a dynamin ip >address > > If you'd like to use kernel-ppp, here is the configuration of my pppd: (first of all, you have to enable the ppp-option in the kernel!) /etc/ppp/options:------------------------------------------------- /dev/cuaa0 115200 crtscts modem connect "/usr/bin/chat -f /etc/ppp/login.chat.script" noipdefault passive domain d.kamp.net : defaultroute /etc/ppp/login.chat.script:----(this goes into one line)---------- ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' TIMEOUT 5 "" +++ATZ OK ATDT TIMEOUT 40 CONNECT \r\n TIMEOUT 10 gin:-BREAK-gin: word: Additionaly you have to edit the files /etc/host.conf like: hosts bind and /etc/hosts like: 127.0.0.1 localhost.my.isp.com localhost 127.0.0.1 myworld.my.isp.com myworld 127.0.0.1 myworld.my.isp.com. and /etc/resolv.conf like: domain my.isp.com nameserver 123.123.123.12 nameserver 456.456.456.45 If you are also interested in getting the mail per *fetchmail* in a batch (maybe in the night), you could use a script (e.g. to start from *cron*) like the following one: pppd sendmail -q /usr/local/bin/fetchmail -v -m "/usr/sbin/sendmail " \ -f /root/getmail/.fetchmailrc ps ax|grep pppd|grep -v grep|/root/getmail/KillFirstArg # KillFirstArg is a little C-Program which kills the process with the # number given from stdin with the command "kill -TERM " # you could also use an awk-script, but I'm not familiar with awk at the # moment. :-) ifconfig ppp0 down ifconfig ppp0 delete And you could look into the handbook for further details, where these examples are from :-) ---------------------------------- E-Mail: Joachim Jaeckel Date: 10-Aug-97 Time: 23:16:38 This message was sent by XFMail ---------------------------------- -- |Fidonet: Joachim Jaeckel 2:234/49.99 |Internet: Joachim.Jaeckel@234-49-99.swimsuit.roskildebc.dk | Standard disclaimer: The views of this user are strictly his own.