From owner-freebsd-questions Thu Oct 29 16:53:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA24743 for freebsd-questions-outgoing; Thu, 29 Oct 1998 16:53:42 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from filer2.isc.rit.edu (filer2.isc.rit.edu [129.21.3.107]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA24734 for ; Thu, 29 Oct 1998 16:53:37 -0800 (PST) (envelope-from aaron@csh.rit.edu) Received: from thud.homenet by osfmail.isc.rit.edu (PMDF V5.1-10 #27553) with ESMTP id <0F1M00A0T7TO4C@osfmail.isc.rit.edu> for questions@freebsd.org; Thu, 29 Oct 1998 19:53:50 -0500 (EST) Received: (from aaron@localhost) by thud.homenet (8.8.7/8.8.7) id TAA01478; Thu, 29 Oct 1998 19:52:58 -0500 (EST envelope-from aaron) Content-return: allowed Date: Thu, 29 Oct 1998 19:52:57 -0500 From: Aaron Jeremias Luz Subject: Re: User PPP and Packetfiltering In-reply-to: <01be01c2$0d9c8fc0$9649a3c3@jonas>; from Jonas Ericson on Tue, Oct 27, 1998 at 04:54:17PM +0100 To: Jonas Ericson Cc: questions@FreeBSD.ORG Reply-to: aaron@csh.rit.edu Message-id: <19981029195257.61712@homenet> MIME-version: 1.0 X-Mailer: Mutt 0.84e Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT References: <01be01c2$0d9c8fc0$9649a3c3@jonas> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Oct 27, 1998 at 04:54:17PM +0100, Jonas Ericson wrote: > Hi! > I have a question about packet filtering! > I use the 2.2.7 realese. I use my box as a Samba server aswell as a Gateway > for my win95 > machines (with user ppp ). Now for the question: When i want to access the > Samba server from > a win95 machine the -auto switch trigger the modem to dial and itīs nothing > strange about that! > but i donīt want it to be triggered when i want to connect to a Sambashare, > only when i want to > access the internet via http(80). I have tried to understand the syntax from > the man ppp but have > not succeded. > Many Thanks! > > > J.B.Ericson > dow486o@tninet.se I think you'll find that DNS lookups are being made on the SMB name of your Win95 machine, so a simple filtering approach won't work. Try defining REDUCE_ROOT_DNS_LOOKUPS when you build Samba. That did the trick for me when I was installing Samba on a 2.2.5R machine which also ran "ppp -auto -alias" for a number of Windows 95 machines. Here's the patch I used for the port of Samba 1.9.17p2 on FreeBSD 2.2.5R. *** Makefile.orig Thu Jul 2 13:32:24 1998 --- Makefile Thu Jul 2 13:32:38 1998 *************** *** 385,391 **** # This is for FreeBSD # contributed by kuku@acds.physik.rwth-aachen.de ! FLAGSM = -DFreeBSD -DFAST_SHARE_MODES LIBSM = -lcrypt --- 385,391 ---- # This is for FreeBSD # contributed by kuku@acds.physik.rwth-aachen.de ! FLAGSM = -DFreeBSD -DFAST_SHARE_MODES -DREDUCE_ROOT_DNS_LOOKUPS LIBSM = -lcrypt Good luck, Aaron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message