Set IP policies | Network | Northflank Application docs
v1

Network /

Set IP policies

IP policies allow you to either block IP addresses from accessing a port, or to only allow certain IP addresses and exclude all others. You can use this feature to, for example:

  • Block the IP ranges of certain countries to meet legal requirements
  • Block the IP addresses of malicious actors
  • Allow only the IP addresses of your employees or clients to help secure a website or data
  • Allow only the IP address for a required external service

You can set IP policies for a specific port from the security rules section of the ports & DNS page of combined and deployment services.

Configuring IP policies for a port for a deployment service in the Northflank application

You can enter specific IP addresses or use CIDR blocks to allow or deny ranges of IP addresses. For example, 192.168.0.0/24 would apply your policy to IP addresses in the range 192.168.0.0 - 192.168.0.255.

Allowing an IP address, or a range of addresses, will block all other IP addresses.

Denying an IP address will always take precedence over allowing an IP address, so it isn't possible to deny a range of IP addresses and allow specific ones within that range. You can, however, allow a range of IP addresses and deny specific IP addresses within the range.

You can apply rules to one or multiple ports, and apply different policies to different ports on the same service..

© 2024 Northflank Ltd. All rights reserved.