This section describes how to access OBS using a VPN or Direct Connect connection.
For details about how to create a VPN connection, see Creating a VPN in the Virtual Private Network User Guide.
For details about how to enable Direct Connect, see Getting Started in the Direct Connect User Guide.
Configure an OBS route from the on-premises data center to the VPN or Direct Connect gateway.
The CIDR block of the VPC endpoint for accessing OBS is a public CIDR block. To access OBS over a VPN or Direct Connect connection, ensure that traffic from your on-premises data center to OBS is directed to the VPN gateway or Direct Connect gateway.
Configure a permanent route at your on-premises data center and specify the Direct Connect or VPN gateway as the next hop for accessing OBS. The following is the example command for configuring such a route:
route -p add Public IP address xxx.xxx.xxx.xxx