Jump to content

Add a Whitelist manual IP range


Musarano
 Share

Recommended Posts

/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"});

 

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
 Share

×
×
  • Create New...