Skip to contentSkip to conversation

Could anyone, please, tell me what's wrong with this:

DISCUSSION Anthony Azzopardi 3 participants 3 messages Nov 18, 2005 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

|Hello ppl,

Could anyone, please, tell me what's wrong with this:

iptables -A FORWARD --match iprange --src-range 192.168.123.1 - 192.168.123.99 -j DROP

It's giving me errors.

Thanks,
Anthony
|

#1 lore raw
Quoted 8 lines · Anthony Azzopardi

|Hello ppl,

Could anyone, please, tell me what's wrong with this:

iptables -A FORWARD --match iprange --src-range 192.168.123.1 - 192.168.123.99 -j DROP

It's giving me errors.

And exactly *what* errors would that be ?

I'm guessing you need to delete the space between :
"192.168.123.1 - 192.168.123.99"

So it reads :
"192.168.123.1-192.168.123.99"

Gr,
Rob

#4 lore raw
In reply to a message not in the archive

Anthony Azzopardi napisa³(a):

Quoted 2 lines

It gives >>
No chain/target/match by that name !!!??

Then this is a completely different matter (altrough You _do_ need to delete those two spaces in that rule You posted)

And for this, ((You need to upgrade Your iptables (what iptables do You use??, try 'iptables -V')) or (add the 'iprange' match with some patch-o-matic)) and (enable them in Your kernel config file) and (finally recompile Your kernel).
:)

--
Best wishes
£ukasz Hejnak