Skip to contentSkip to conversation

Problem with iprange

DISCUSSION [email protected] 1 participant 1 message Sep 13, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

i've got problem to use iprange with iptables...

iptables -V : iptables v1.3.1

When i try :

iptables -I INPUT -p tcp -m iprange --src-range 192.168.1.1-192.168.1.5 -j DROP

I've got this error:

iptables: No chain/target/match by that name

but when it try :

iptables -I INPUT -p tcp -s 192.168.1.1

it works perfectly...

I've seen on the web that the iprange is built-in iptables... Moreover, when i try :

iptables -I INPUT -p tcp -m iprange -s 192.168.1.1-192.168.1.10 -j DROP

i've got this error message:

iptables v1.3.1: iprange match: You must specify '--src-range' or '--dst-range' Try 'iptables -h' or 'iptables --help' for more information

but when i try iptables -h, there is no information about iprange...

Do you have any idea?? Is there a patch to apply in order to use iprange? Module to be load?

Thanks a lot for your help!

lm.