Page 1 of 2

Quota rule and IP range

Posted: Tue May 01, 2012 4:13 pm
by Jane
Hi!

We can't figure out how to set an IP range to our quota rule, all our attemps results to an "invalid address" error notification.

What we are trying to achieve is to set a quota rule to limit all our devices except our main computer (192.168.10.2).

At the moment we are manually adding every IP to the rule, which is working fine, but we would feel better if we could set directly an IP range from 192.168.10.3 to 192.168.10.255.

How could we achieve that?

Thanks!

Jane

(We are using Gargoyle 1.5.4 on a Netgear 3700v2)

Re: Quota rule and IP range

Posted: Tue May 01, 2012 6:59 pm
by pbix
IP ranges change be specfied as an IP range (ie. IP1-IP2) and in CIDR notation on the Quota page. This is even noted on the page.

Are you sure you are talking about quotas?

Re: Quota rule and IP range

Posted: Tue May 01, 2012 11:26 pm
by Jane
Hi pbix,

Here is the quota feature i was referring to:

Image

As you can see, there is no information about how to formulate the IP range, so thank you for the clue about the CIDR notation.

And here is how i'm covering the 192.168.10.3 to 192.168.10.255 IP range:
  • 192.168.10.3
  • 192.168.10.4/30
  • 192.168.10.8/29
  • 192.168.10.16/28
  • 192.168.10.32/27
  • 192.168.10.64/26
  • 192.168.10.128/25
So far it seems to work pretty well, cheers!

Jane

Re: Quota rule and IP range

Posted: Wed May 02, 2012 6:57 am
by pbix
You could also use one line
"192.168.10.3-192.168.10.255"
to cover the same range.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 8:57 am
by Jane
Ok i removed all our quotas rules and gave a try to "192.168.10.3-192.168.10.255", here is the error i get:
"192.168.10.3-192.168.10.255" is not a valid IP or IP range
Could not add quota.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 1:53 pm
by pbix
That's strange because I tested this on my router and got no such error.

When exactly do you get the error? is it when you press the "Add" button or the "Save" button.

I am using v1.5.4 as well.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 2:22 pm
by Jane
I got this error by pressing "Add New Quota", if i press "Add" i get the "Invalid Address" error.

I played a bit with the input, here is what i found:

192.168.10.3-192.168.10.255
192.168.10.255
=> The input text changes to red color, it can't be added (invalid address).

192.168.10.3-192.168.10.254
192.168.10.3-192.168.10.[Anything < 255]
192.168.10.[Anything < 255]
192.168.10.128/25 (which covers 192.168.10.128-192.168.10.255)
=> The input text stays in black color, the IP range can be added.


Our DHCP range is set by default to (for 192.168.10):
- Start: 100
- End: 250

I tried to push the End to 255, but it doesn't change anything to the quotas rules, still the same errors.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 2:59 pm
by mix
So you apparently don't have any clue what a broadcast address is your saying? You can't filter out 192.168.10.255 if your lan subnet is 255.255.255.0. 192.168.10.254 is the last assignable ip address.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 3:10 pm
by pbix
Well to be fair it escaped my observation as well but it is true that 192.168.10.254 is the last assignable address so the page is correct that your address range is invalid.

Anyway I guess we both learned/relearned something.

Re: Quota rule and IP range

Posted: Wed May 02, 2012 3:21 pm
by Jane
Indeed i didn't know about that subtlety :(
So 192.168.10.254 it is, thanks for the help.

Jane