From owner-freebsd-questions Thu May 9 14:17:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id A75B637B405 for ; Thu, 9 May 2002 14:17:13 -0700 (PDT) Received: from barbish ([63.70.155.69]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Thu, 9 May 2002 17:17:12 -0400 From: "Joe & Fhe Barbish" To: "Naughty Taz" Cc: "FBSDQ" Subject: RE: IPFW and IP/mask mathematics Date: Thu, 9 May 2002 17:17:10 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <001e01c1f79e$78612390$626a003e@homepc> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Read http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO and http://www.freebsd-howto.com/HOWTO/Ipfw-Advanced-Supplement-HOWTO -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Naughty Taz Sent: Thursday, May 09, 2002 5:14 PM To: freebsd-questions@freebsd.org Cc: freebsd-security@freebsd.org Subject: IPFW and IP/mask mathematics Hi all, I've been trying to get a ruleset for IPFW but was unable to figure out how to do it :( I'd appreciate it if someone can reply with the right ruleset for the following: 1) allow traffic from 0.0.0.0 - XXX.128.0.0 2) block traffic from XXX.128.0.0 - XXX.146.159.255 3) allow traffic from XXX.146.160.0 - 255.255.255.255 Thanks in advance. /Taz P.S.: IP's are imaginary of course. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message