All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] [tcng] ip-range
@ 2003-03-14 21:40 raptor
  2003-03-16 21:40 ` Jacob Teplitsky
  0 siblings, 1 reply; 2+ messages in thread
From: raptor @ 2003-03-14 21:40 UTC (permalink / raw)
  To: lartc

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);

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [LARTC] [tcng] ip-range
  2003-03-14 21:40 [LARTC] [tcng] ip-range raptor
@ 2003-03-16 21:40 ` Jacob Teplitsky
  0 siblings, 0 replies; 2+ messages in thread
From: Jacob Teplitsky @ 2003-03-16 21:40 UTC (permalink / raw)
  To: lartc

> Message: 10
> Date: Sat, 15 Mar 2003 01:28:01 +0200
> From: raptor <raptor@tvskat.net>
> 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-16 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-14 21:40 [LARTC] [tcng] ip-range raptor
2003-03-16 21:40 ` Jacob Teplitsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.