Zum Inhalt springen

Restrict inbound traffic by IP range

Zuletzt aktualisiert am

A public application accepts requests from any IP address until you restrict it. Add the IP ranges that may reach it, and SCA rejects requests from all other addresses.

  • You have an application with public access. See Deploy your first application.
  • You have the sca.admin or sca.editor role in the project.
  • You know the IPv4 ranges of your clients, in CIDR notation.
  1. Open the application, click Edit application, and go to Network.

  2. Click on Add IP range

    Screenshot name application input field

  3. Under Access control list, click Add IP range and enter each range that may reach the application, in CIDR notation, for example 192.168.0.0/16.

    Screenshot name application input field

  4. Save.

From an address inside an allowed range, request the application URL:

Terminal window
curl -I https://<application-id>.sca.eu01.onstackit.cloud

A 200 OK response means the request was allowed. The same request from an address outside the allowed ranges is rejected.