From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Teplitsky Date: Sun, 16 Mar 2003 21:40:09 +0000 Subject: [LARTC] [tcng] ip-range Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Message: 10 > Date: Sat, 15 Mar 2003 01:28:01 +0200 > From: raptor > To: lartc@mailman.ds9a.nl > Subject: [LARTC] [tcng] ip-range > > Is there a way in tcng to specify range instead a list of addresses, what I mean instead : > > drop if (ip_src = 192.168.0.2 || ip_src = 192.168.0.3 || ip_src = 192.168.0.4 || ip_src = 192.168.0.5); > > may be : > > drop if (ip_src = 192.168.0.2 .. 192.168.0.5); > drop if (ip_src = 192.168.0.2 - 192.168.0.5); > > or better : > > drop if (ip_src = 192.168.0.2-5); > > How about: drop if (ip_src >= 192.168.0.2 && ip_src <= 192.168.0.5); - Jacob _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/