Docs
On this page
task2 min readApplication: IP Range Restriction

Restrict access by IP address

Allow only your office or VPN networks to reach the instance by installing IP Range Restriction and adding allow and deny rules.

Restrict access by IP address when users must reach Servicely only from known networks, such as an office or a VPN. This task is for administrators.

Before you begin

  • You need administrator.
  • Know the address you are connecting from now, and the CIDR ranges of every network you want to allow.
  • Make the change outside business hours. A wrong rule can lock users out, including you.

Steps

  1. Go to Application → Application → Applications, open IP Range Restriction (ip_range_restriction) and select Install Application.

    The IP Range Restriction application record, with the Install Application button at the bottom of the form.
  2. Go to Administration → Permissions & Security → System IP filter restrictions.

    System IP filter restrictions in the Permissions & Security menu section.
  3. Select New and create an Allow rule for the network you are connecting from. Turn on Active and save.

  4. Create an Allow rule for each other network you want to allow.

  5. To block every other address, create a Deny rule whose Address CIDR covers all addresses, such as 0.0.0.0/0. Give it a higher Order than every Allow rule.

    A Deny rule with an order of 200, above Allow rules that use lower orders.
  6. From a network you did not allow, open the instance and confirm you see the error page.

    The error page a user sees when their address is denied.
Field Required What to enter
Access type Yes Allow or Deny.
Address CIDR Yes The address or range, for example 10.12.14.0/24.
Order Yes The rule’s position. Lower orders are checked first.
Active No Only active rules are checked.
Description Yes What the network is, for example “Office network”.

Result

Servicely checks each request against the active rules in ascending order. The first rule whose range contains the address decides: allow or deny. If no rule matches, the request is allowed, so without a Deny rule nothing is blocked. Rules match only addresses of their own family: an IPv4 rule never matches an IPv6 address. Add an IPv6 Deny rule as well if users can reach the instance over IPv6. Requests from the server itself are always allowed.

Last updated 18 October 2026commit c05803eee2ceChris Jones
Back to top