Restrict inbound traffic by IP range
Last updated on
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.
Before you begin
Section titled “Before you begin”- You have an application with public access. See Deploy your first application.
- You have the
sca.adminorsca.editorrole in the project. - You know the IPv4 ranges of your clients, in CIDR notation.
Add allowed IP ranges
Section titled “Add allowed IP ranges”-
Open the application, click Edit application, and go to Network.
-
Click on Add IP range

-
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.
-
Save.
Verify the restriction
Section titled “Verify the restriction”From an address inside an allowed range, request the application URL:
curl -I https://<application-id>.sca.eu01.onstackit.cloudA 200 OK response means the request was allowed. The same request from an address outside the allowed ranges is rejected.