From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 04:55:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DAC416A4CE for ; Tue, 15 Feb 2005 04:55:52 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EEFA43D53 for ; Tue, 15 Feb 2005 04:55:52 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so1950603wri for ; Mon, 14 Feb 2005 20:55:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=dxXQpCb/ZQw8BvDG0TED+LCBPJN6HX2U7iMIWJ+h9MQNVVIToijW9QrcMTCohZJNDPQmHo2GV2MSc5IyeOuYfOQMxy2RVXRK0lp9hmLF8lTnPDcJVNydomwCk2U+3DIeMkqJ+z2qA2qCzj3rJ+yDSJ0r23W+DqbLmHbk9gh5KdQ= Received: by 10.54.39.67 with SMTP id m67mr41115wrm; Mon, 14 Feb 2005 20:55:51 -0800 (PST) Received: by 10.54.42.28 with HTTP; Mon, 14 Feb 2005 20:55:51 -0800 (PST) Message-ID: <810a540e05021420555412f1b0@mail.gmail.com> Date: Mon, 14 Feb 2005 21:55:51 -0700 From: Pat Maddox To: freebsd-questions@freebsd.org In-Reply-To: <64a8ad9805021420444eb3ccd2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <810a540e050214203221952797@mail.gmail.com> <64a8ad9805021420444eb3ccd2@mail.gmail.com> Subject: Re: Configuring PF X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pat Maddox List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 04:55:52 -0000 Is there any place I can find a good default ruleset for a server, and just change what ports I want open? Also, I've noticed that some rulesets will have different flags and keep state on for certain TCP ports, but not others. For example, at https://www.section6.net/help/pf.php I found: #WebServer, HTTPS, 8000 pass in on $extif proto tcp from any to any port 80 flags S/SA pass in on $extif proto tcp from any to any port $tcp_services flags S/SA synproxy state tcp_services is {22, 443} I don't understand why they use synproxy state for 22 and 443, but not 80 On Mon, 14 Feb 2005 23:44:32 -0500, chip wrote: > > quickly see what's up. When PF is disabled, I can nmap it in about 9 > > seconds. When I turn it on, it takes over 3 minutes to do. These > > machines are on the same network, so the connection is obviously fast. > > I believe this is becuase nmap is having to wait on the connections to > time out. If you tell PF to 'reject' instead of 'drop' it may go a > bit faster. > > -- > Just my $.02, your mileage may vary, batteries not included, etc.... >