From owner-freebsd-questions Thu Aug 20 17:09:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25048 for freebsd-questions-outgoing; Thu, 20 Aug 1998 17:09:02 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.ptd.net (postoffice.ptd.net [204.186.110.163]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA25018 for ; Thu, 20 Aug 1998 17:08:55 -0700 (PDT) (envelope-from nickf@ptd.net) Received: (qmail 7539 invoked from network); 21 Aug 1998 00:07:45 -0000 Received: from cs7-15.pot.ptd.net (HELO ranger.nick.net) (204.186.34.111) by postoffice.ptd.net with SMTP; 21 Aug 1998 00:07:45 -0000 From: "Nick Folino" To: "Dan Nelson" , "'FreeBSD Questions'" Subject: RE: ppp -auto -alias question Date: Thu, 20 Aug 1998 20:08:05 -0400 Message-ID: <000001bdcc97$c5498660$0245a8c0@ranger.nick.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <19980819201817.A2001@emsphone.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Dan!! Problem finally solved :-) > -----Original Message----- > From: Dan Nelson [mailto:dnelson@emsphone.com] > Sent: Wednesday, August 19, 1998 9:18 PM > To: Nick Folino; 'FreeBSD Questions' > Subject: Re: ppp -auto -alias question > > > In the last episode (Aug 19), Nick Folino said: > > I've been having this problem for over a year now and hopefully > > someone can help. > > > > I run ppp -auto -alias internet from /etc/rc.local. > > It dials out, connects and works fine. The problem is it never > wants to > > hang up! > > Even after it times out, it just redials right away, even if there's > > nothing else turned on on the network. > > The only thing this computer runs all the time is sendmail, > sshd, apache, > > and dhcpd. > > > > Could any of these be causing it to want to be online? I know > > sendmail isn't trying to send anything because another machine is the > > default SMTP server. > > A great way to debug things like this is to run tcpdump on your tunnel > device. > > tcpdump -n -i tun0 > > Wait for the line to drop and come back up. Then take a look at the > timestamps from tcpdump and the ppp logfile to determine which packet > triggered the dialout. Once you find the offender, filter it with a > dial filter. I have my ppp set up this way: > > # Don't reset keep alive timer on ICMP, DNS, NTP, or RC5 packets > set filter alive 0 deny icmp > set filter alive 1 deny udp src eq 53 > set filter alive 2 deny udp dst eq 53 > set filter alive 3 deny udp src eq 123 > set filter alive 4 deny udp dst eq 123 > set filter alive 5 deny tcp dst eq 2064 > set filter alive 6 permit 0/0 0/0 > # Don't let ICMP or NTP packets cause us to dial > set filter dial 0 deny icmp > set filter dial 1 deny udp src eq 123 > set filter dial 2 deny udp dst eq 123 > set filter dial 3 permit 0/0 0/0 > > Sendmail is fond of doing DNS lookups (for MX lookups), so you might > want to add DNS packets to your dial filter. > > -Dan Nelson > dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message