*BSD News Article 59530


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!news.msfc.nasa.gov!elroy.jpl.nasa.gov!swrinde!howland.reston.ans.net!ix.netcom.com!netcom.com!kientzle
From: kientzle@netcom.com
Subject: Re: User ppp dialing needlessly
Message-ID: <kientzleDL3E1F.FBI@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <4cse48$c2i@cyber1.servtech.com>
Date: Fri, 12 Jan 1996 23:46:27 GMT
Lines: 50
Sender: kientzle@netcom3.netcom.com

I had a similar problem which is (mostly) fixed.  Here's how you
find out:

a) Recompile a kernel with the bpf (Berkeley Packet Filter) enabled.
b) Reboot, run `tcpdump'
   Tcpdump will watch the tun0 device and tell you every packet that
   goes over the PPP link.  From that, you can try to puzzle out
   what programs are generating the packets and why.

Here are the two culprits I've found:

a) routed.  In /etc/sysconfig, change the routedflags line to:
     routedflags="-q"
   The default is `-s', which causes routed to broadcast routing
   information every 30 seconds.  (This kept my link up pretty
   constantly until I disabled it.)
b) sendmail.  I haven't completely tracked this down, but the
   likely-looking culprits are the sendmail_flags in /etc/sysconfig
   (I removed the -q30m option), and the line "OI" in /etc/sendmail.cf.
   (I commented out this line.)

   Even with these changes, my system still brings up the link
   everytime sendmail runs (for example, with `mailq').  Per tcpdump,
   it's some sort of DNS activity from sendmail, but I'm not enough of
   a network (or sendmail) expert to be able to say more than that.
   Maybe someone here can suggest something?

                                - Tim Kientzle

In article <4cse48$c2i@cyber1.servtech.com>,
rudynel millian <rmillian@cyber1.servtech.com> wrote:
>	I am a new FreeBSD user (a couple of months now), and I am using
>version 2.05. I followed the instructions in the handbook to setup my
>user ppp to dial my ISP. I put "ppp -auto CyberLink" in my rc.local file
>which is supposed to connect to my ISP on demand, according to the handbook
>and the man page. But user ppp dials in shortly after booting up, and
>remains connected until my ISP kicks me off (no activity for 20 minutes),
>at which point user ppp immediatly calls back. Is this the way it is supposed
>to work?
>	I want user ppp to call my ISP only when there is a packet going out,
>not when the system boots up. I also want user ppp to timeout and disconnect 
>if there is no activity for a given number of minutes.
>	Could it be that my system is really trying to send some packets out?
>Like sendmail checking the queue? If so, how do I check who is attempting to
>send packets?
>
>
>rmillian