Date: Sun, 10 Aug 1997 23:16:38 +0200 (CEST) From: Joachim Jaeckel <Joachim.Jaeckel@d.kamp.net> To: Aaron Jones <amjones@clarksdale.com> Cc: freebsd-questions@FreeBSD.ORG Subject: RE: PPP Message-ID: <XFMail.970810234947.Joachim.Jaeckel@d.kamp.net> In-Reply-To: <1340907296-1265102@mail.clarksdale.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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<yo ur isp's telephone-number> TIMEOUT 40 CONNECT \r\n TIMEOUT 10 gin:-BREAK-gin: <y our isp's login-user-id> word: <your isp's login-password> 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 <your isp's domain-name> nameserver 123.123.123.12 <your isp's nameserver address> nameserver 456.456.456.45 <your isp's nameserver address ...> 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 <Here you have to wait nearly 20-30 seconds ... > sendmail -q /usr/local/bin/fetchmail -v -m "/usr/sbin/sendmail <you user-name on your pc>" \ -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 <process-number>" # you could also use an awk-script, but I'm not familiar with awk at the # moment. :-) <Here you have to wait 5 seconds ...> 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 <Joachim.Jaeckel@d.kamp.net> Date: 10-Aug-97 Time: 23:16:38 This message was sent by XFMail ----------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970810234947.Joachim.Jaeckel>