Date: Thu, 29 Oct 1998 19:52:57 -0500 From: Aaron Jeremias Luz <aaron@csh.rit.edu> To: Jonas Ericson <dow489o@tninet.se> Cc: questions@FreeBSD.ORG Subject: Re: User PPP and Packetfiltering Message-ID: <19981029195257.61712@homenet> In-Reply-To: <01be01c2$0d9c8fc0$9649a3c3@jonas>; from Jonas Ericson on Tue, Oct 27, 1998 at 04:54:17PM %2B0100 References: <01be01c2$0d9c8fc0$9649a3c3@jonas>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981029195257.61712>