From owner-freebsd-questions Mon Jun 26 8: 6:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 8312237BACA for ; Mon, 26 Jun 2000 08:06:12 -0700 (PDT) (envelope-from gjohnson@nola.srrc.usda.gov) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id KAA19978; Mon, 26 Jun 2000 10:05:57 -0500 (CDT) (envelope-from glenn) From: Glenn Johnson Date: Mon, 26 Jun 2000 10:05:57 -0500 To: marcd@internode.on.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Slight OT samba problem Message-ID: <20000626100557.B19714@node1.cluster.srrc.usda.gov> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from marcd@internode.on.net on Mon, Jun 26, 2000 at 08:50:45PM +0930 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 26, 2000 at 08:50:45PM +0930, marcd@internode.on.net wrote: > Hi > > I know it's something that might be better on a Samba list but I have > a little problem with Samba on a FreeBSD 4.0. > > The system is running Samba 2.0.7 and also acting as and internet > gateway using demand ppp. > > For some reason the system keeps dialing up a net connecition when > it's not supposed. I believe the problem is with nmb. You need to use filters in your ppp configuration file. See /usr/share/examples/ppp/ppp.conf.sample and man ppp(8). Specifically you want to have: set filter alive 0 deny udp src eq 137 set filter alive 1 deny udp src eq 138 set filter alive 2 deny udp src eq 139 set filter alive 3 deny udp dst eq 137 set filter alive 4 deny udp dst eq 138 set filter alive 5 deny udp dst eq 139 set filter alive 6 permit 0/0 0/0 set filter dial 0 deny udp src eq 137 set filter dial 1 deny udp src eq 138 set filter dial 2 deny udp src eq 139 set filter dial 3 deny udp dst eq 137 set filter dial 4 deny udp dst eq 138 set filter dial 5 deny udp dst eq 139 set filter dial 6 permit 0 0 You may want to add others but these are the ones that affect samba. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message