Jump to content
Vodia PBX forum
Musarano

Add a Whitelist manual IP range

Recommended Posts

Hi !

Is it anyway i can possible add this other than the dropdown selection options:?

166.128.0.0/9  (block)

Currently, V PBX is marking it as NaN or not allowed it.

Any change to add like a 255.128..... etc or somehow add this way of it?

 

Thank You

Share this post


Link to post
Share on other sites

In short, you're referring to Subnet of "/9" option, but unfortunately we don't have that. 

But you can go ahead and add all the IP addresses in it to be blocked.

Share this post


Link to post
Share on other sites

Ok I will try that then.

I really need to allow or whitelist the whole ATT customer dinamic block ..

But I understand .

Thank you much.

Share this post


Link to post
Share on other sites

/9 is unfortunate - we have only /8 and /16 which would mean that you would have to add 128 /16 blocks. Alternatively you could white list the /8 block, which would white list more addresses that you would actually need. 

If you want to do this in JavaScript, here is the code:

for (var i = 128; i < 256; i++) fetch("/rest/system/access", {"body":"{\"ip\":\"166." + i + ".0.0\",\"netmask\":\"16\",\"type\":\"true\",\"comment\":\"Whatever\"}","method":"POST"});

 

Share this post


Link to post
Share on other sites

Ok, i understand... Hopefully this can be added as a feature request then :)  It would be nice to allow or block blocks belonging to an ISP

I have set the /8 as you also suggested too.

 

Thank You Very much for your help !

-M

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...