From owner-freebsd-security@FreeBSD.ORG Tue Jan 18 20:22:40 2005 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 894AE16A4CE for ; Tue, 18 Jan 2005 20:22:40 +0000 (GMT) Received: from ext-nj2gw-8.online-age.net (ext-nj2gw-8.online-age.net [64.14.56.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id E38A943D45 for ; Tue, 18 Jan 2005 20:22:39 +0000 (GMT) (envelope-from michael.sherman@og.ge.com) Received: from int-nj2gw-2.online-age.net (int-nj2gw-2 [3.159.236.66]) id j0IKb8hJ026867 for ; Tue, 18 Jan 2005 15:37:08 -0500 Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) id j0IKMbhp019036 for ; Tue, 18 Jan 2005 15:22:38 -0500 (EST) Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2657.72) id ; Tue, 18 Jan 2005 15:22:38 -0500 Message-ID: <6BBE5C5603D0D611A06F0002A5D6556405FAA185@nyschx22psge.sch.ge.com> From: "Sherman, Michael (GE Energy)" To: FreeBSD-security@FreeBSD.org Date: Tue, 18 Jan 2005 15:22:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="ISO-8859-1" X-Mailman-Approved-At: Wed, 19 Jan 2005 15:46:14 +0000 Subject: ipf question X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 20:22:40 -0000 Hello. I am a relatively new FreeBSD user. I have samba, ssh and vnc server running on it. I am also trying to set up the IPFILTER on it. I used the handbook to familiarize myself with the software and the sample script provided in the chapter discussing ipf, I decided to use as a starting point. After reading the ipf chapter I assumed that if "block in log first quick on xl0 all" is used, everything which is not opened by default will be blocked. Now I opened only samba and ssh ports: pass in quick on xl0 proto tcp/udp from any to any port 137 <> 139 keep state pass in quick on xl0 proto tcp/udp from any to any port = 445 keep state pass in quick on xl0 proto tcp from any to any port = 22 flags S keep state However I am able to connect to the vncserver, without actually opening it in the script. I guess my assumption was wrong, please let me know if I missed on something. Michael