This section describes how to access OBS using a VPN connection or a direct 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.
The methods of configuring DNS forwarding rules vary depending on operating systems. For details, see the DNS software operation documents.
This step uses the common DNS software Bind as an example to configure forwarding rules in the UNIX operating system as follows:
In file /etc/named.conf, add the DNS forwarder configuration and set forwarders to the private IP address of the VPC endpoint for accessing DNS.
options {
forward only;
forwarders{ xx.xx.xx.xx;};
};
xx.xx.xx.xx indicates the private IP address of the VPC endpoint. To access DNS using a VPN connection or a direct connection, you need to ensure that traffic from your local data center to DNS is directed to the VPN gateway or Direct Connect gateway.
Configure a permanent route at your local data center and specify the IP address of the Direct Connect or VPN gateway as the next hop for accessing DNS.
route -p add xx.xx.xx.xx mask 255.255.255.255 xxx.xxx.xxx.xxx
The CIDR block of the VPC endpoint for accessing OBS is 100.125.0.0/16. To access OBS using a VPN connection or direct connection, you need to ensure that traffic from your local data center to OBS is directed to the VPN gateway or Direct Connect gateway.
Configure a permanent route at your local data center and specify the Direct Connect or VPN gateway as the next hop for accessing OBS.
route -p add 100.125.0.0 mask 255.255.0.0 xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx indicates the IP address of the Direct Connect or VPN gateway created at your local data center.
In the command:
Example: telnet bucket.obs.eu-de.otc.t-systems.com