Date: Thu, 9 May 2002 15:57:13 -0600 From: "Dalin S. Owen" <dowen@pstis.com> To: "Naughty Taz" <naughty_taz@hotmail.com> Cc: security@freebsd.org Subject: Re: IPFW and IP/mask mathematics Message-ID: <200205091557.13783.dowen@pstis.com> In-Reply-To: <001e01c1f79e$78612390$626a003e@homepc> References: <001e01c1f79e$78612390$626a003e@homepc>
next in thread | previous in thread | raw e-mail | index | archive | help
What kind of "traffic", I wil assume you want to block "all"=20 (tcp/udp/icmp/esp/ah/look in /etc/protocols for a list).... /sbin/ipfw add allow all from 0.0.0.0 to XXX.128.0.0 /sbin/ipfw add deny all from XXX.128.0.0 to XXX.146.159.255 /sbin/ipfw add allow all from XXX.146.160.0 to 255.255.255.255 There ya go.. :) On May 9, 2002 03:14 pm, Naughty Taz wrote: > 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-security" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205091557.13783.dowen>