From owner-freebsd-stable@FreeBSD.ORG Wed Nov 10 14:05:03 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 572FF16A4CE for ; Wed, 10 Nov 2004 14:05:03 +0000 (GMT) Received: from dart.sr.se (dart.SR.SE [134.25.0.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B123543D46 for ; Wed, 10 Nov 2004 14:05:02 +0000 (GMT) (envelope-from flygt@sr.se) Received: from honken.sr.se (honken.sr.se [134.25.128.27]) by dart.sr.se (8.12.9p2/8.12.8) with ESMTP id iAAE51TM038325 for ; Wed, 10 Nov 2004 15:05:01 +0100 (CET) (envelope-from flygt@sr.se) Received: from oldie.sr.se (oldie [134.25.200.100]) by honken.sr.se (8.12.8p2/8.12.8) with ESMTP id iAAE51O1027139 for ; Wed, 10 Nov 2004 15:05:01 +0100 (CET) (envelope-from flygt@sr.se) Received: from oldie.sr.se (localhost [127.0.0.1]) by oldie.sr.se (8.13.1/8.12.11) with ESMTP id iAAE4uFo023410 for ; Wed, 10 Nov 2004 15:04:56 +0100 (CET) (envelope-from flygt@sr.se) Received: (from gunnar@localhost) by oldie.sr.se (8.13.1/8.13.1/Submit) id iAAE4uxV023409 for freebsd-stable@freebsd.org; Wed, 10 Nov 2004 15:04:56 +0100 (CET) (envelope-from gunnar) Date: Wed, 10 Nov 2004 15:04:56 +0100 From: Gunnar Flygt To: FreeBSD Stable Message-ID: <20041110140456.GA23273@sr.se> Mail-Followup-To: Gunnar Flygt , FreeBSD Stable References: <20041110134853.GB87953@sr.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041110134853.GB87953@sr.se> User-Agent: Mutt/1.4.2.1i Subject: Re: 5.3-RELEASE kde 3.3 and pf X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gunnar Flygt List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 14:05:03 -0000 I reply to my own question. Since I found out it was pf causing this I started to use tcpdump on pflog0 and found that traffic from 127.0.0.1 to 127.0.0.1 was blocked. So I added as in the examples for ipf : # allow localhost pass in quick on lo0 pass out quick on lo0 after the antispoof rule in pf.conf, and now KDE is loading quick as without pf. Is this something that should perhaps be in the example file for pf? Or are there any security reasons for not having it? On Wed, Nov 10, 2004 at 02:48:54PM +0100, Gunnar Flygt wrote: > I've had problems with DKE 3.3 since I upgraded to 5.3-RELEASE. > I compared the same machine (Dell Latitude D600) with a different HD > where Gentoo Linux (Sorry for that:) resides. Om the Gentto box KDE 3.3 > starts promply from kdm, no extra delays, but with FreeBSD 5.3 it takes > about 2 minutes to get a running KDE environment. > > Got the "briliant" idea to stop pf before starting kdm AND alas KDE > starts as fast as on the Gentoo system. (Actually it is even faster than > login on the gentoo system:) > > Here is my /etc/pf.conf: > > # $FreeBSD: src/etc/pf.conf,v 1.1.2.1 2004/09/17 18:27:14 mlaier Exp $ > # $OpenBSD: pf.conf,v 1.21 2003/09/02 20:38:44 david Exp $ > # > # See pf.conf(5) and /usr/share/examples/pf for syntax and examples. > # Required order: options, normalization, queueing, translation, filtering. > # Macros and tables may be defined and used anywhere. > # Note that translation rules are first match while filter rules are last match. > > # Macros: define common values, so they can be referenced and changed easily. > ext_if="bge0" # replace with actual external interface name i.e., dc0 > > # Normalization: reassemble fragments and resolve or reduce traffic ambiguities. > scrub in all > > # block all incoming packets but allow ssh, pass all outgoing tcp and udp > # connections and keep state, logging blocked packets. > block in log all > antispoof for { lo, $ext_if } > pass in on $ext_if proto tcp from any to $ext_if port 22 keep state > pass out on $ext_if proto { tcp, udp } all keep state > pass out quick proto icmp from any to any keep state > pass in quick proto icmp from any to any > > # drop without log > block in proto { tcp, udp } from any to any port 134 >< 140 > block in proto tcp from any to any port = 515 > block in from any to 255.255.255.255 > # my local network Class B > block in from any to yyy.xx.255.255 > block in from any to 224.0.0.0/4 > > What is it that makes KDE so slow when using pf with these simple rules. > Have I missed something? > > -- > Gunnar Flygt > SR Datadrift > Sveriges Radio > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Gunnar Flygt SR Datadrift Sveriges Radio