Date: Sat, 23 Jan 2016 10:29:27 +0400 From: Shahin Hasanov <shahinhasanov@hotmail.com> To: JosC <bsduser@cloudzeeland.nl>, FREEBSD_QUESTION <freebsd-questions@freebsd.org> Subject: RE: IPFW deny ip range Message-ID: <DUB127-W443AD004EA4D9E20AA97F4B6C50@phx.gbl> In-Reply-To: <56A2A4F5.3030907@cloudzeeland.nl> References: <56A2A4F5.3030907@cloudzeeland.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi=2C you have two options: 1) Use table:=20 ipfw table 1 add 123.xx.xx.xx ipfw table 1 add 123.1.xx.xx ipfw table 1 add 123.1.1.xx if you want to block in ipfw <number of rule> add deny ip from table\(1\) to any in via bce= 0 for example: ipfw 00050 add deny ip from table\(1\) to any in via bce0 or out ipfw <number of rule> add deny ip from table\(1\) to = any out via bce0 2) listed ip in rule ipfw <number of rule> add deny ip from 123.xx.xx.xx=2C123.1.xx.xx=2Cip= fw table 1 add 123.1.1.xx to any in via bce0 =20 > To: freebsd-questions@FreeBSD.org > From: bsduser@cloudzeeland.nl > Subject: IPFW deny ip range > Date: Fri=2C 22 Jan 2016 22:53:57 +0100 >=20 > I have this ip range that I would like to block (example ip): >=20 > 123.xx.xx.xx > 123.1.xx.xx > 123.1.1.xx >=20 > Can someone tell me how I can define best in ipfw.rules? >=20 > Thanks=2C > Jos Chrispijn > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe=2C send any mail to "freebsd-questions-unsubscribe@freebsd= .org" =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB127-W443AD004EA4D9E20AA97F4B6C50>