From owner-freebsd-questions Sun Aug 10 14:56:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA17765 for questions-outgoing; Sun, 10 Aug 1997 14:56:30 -0700 (PDT) Received: from dreamland.d.kamp.net (Port-55-dus.kamp.de [195.4.52.119]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA17757 for ; Sun, 10 Aug 1997 14:56:24 -0700 (PDT) Received: (from joe@localhost) by dreamland.d.kamp.net (8.8.5/8.8.5) id XAA00384; Sun, 10 Aug 1997 23:49:48 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <1340907296-1265102@mail.clarksdale.com> Date: Sun, 10 Aug 1997 23:16:38 +0200 (CEST) From: Joachim Jaeckel To: Aaron Jones Subject: RE: PPP Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 ----------------------------------