[LARTC] [tcng] ip-range

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Message: 10
> Date: Sat, 15 Mar 2003 01:28:01 +0200
> From: raptor <raptor@xxxxxxxxxx>
> To: lartc@xxxxxxxxxxxxxxx
> 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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux