Date: Thu, 20 Aug 1998 20:08:05 -0400 From: "Nick Folino" <nickf@ptd.net> To: "Dan Nelson" <dnelson@emsphone.com>, "'FreeBSD Questions'" <questions@FreeBSD.ORG> Subject: RE: ppp -auto -alias question Message-ID: <000001bdcc97$c5498660$0245a8c0@ranger.nick.net> In-Reply-To: <19980819201817.A2001@emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001bdcc97$c5498660$0245a8c0>