Could anyone, please, tell me what's wrong with this:
|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
|
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
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