Updated on 2025-04-30 GMT+08:00

Public Network Access

Scenarios

By default, new repositories cannot be accessed through the Internet. You can configure a whitelist to allow access to a repository through the Internet.

Procedure

  1. Log in to the SWR console. In the upper left corner, switch to your region. In the navigation pane, choose Repositories. Click your repository name.
  2. In the navigation pane, choose Access > Access Control.
  3. Click the Public Access tab and click Enable Public Network Access. Read the message in the dialog box and click OK.

    Figure 1 Enabling public network access

  4. Click Create Public Network Access Rule in the upper right corner. In the displayed dialog box, click . Enter the IP address CIDR block you want to add to the whitelist, as shown in Figure 2. If you need to add multiple CIDR blocks in a batch, click .

    Figure 2 Configuring a whitelist

    To reduce the risk of attacks, you are advised to add IP addresses one by one instead of adding an IP address CIDR block.

  5. Click OK.

    The whitelist cannot be modified. You can only delete it and create a new one.

Follow-up Operations

To access a repository, you also need to create an access credential. For details, see Access Credentials.