Access the external server

Prev Next

Available in Classic

Internal servers with private IP addresses on the NAVER Cloud Platform can access external servers through a NAT Gateway using a representative public IP address. This guide explains how to log in to a customer’s Linux server on the NAVER Cloud Platform using the PuTTY application and then connect to an external server. Proceed through the following steps in order:

1. Connect to the instance server
2. Check the peer-bound private IP address
3. Access the external server

1. Connect to the instance server

Run PuTTY, enter the target server’s IP address and port number, and log in.

2. Check the peer-bound private IP address

From the Peer Host menu of the NAT Gateway, check the peer-bound private IP address corresponding to the public IP of the target server. To check:

  1. In the Classic environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Networking > NAT Gateway.
  2. Click Peer Host.
  3. From the Peer Host list, check the peer-bound private IP address corresponding to the public IP of the target server.

3. Access the external server

From the logged-in server, access the external server using the peer-bound private IP address. The connection is established to the actual peer IP address through the NAT Gateway.

$ ssh user ID@Peer-bound private IP
Note

You can configure the /etc/hosts file to access the peer IP address using the Peer Host name. To configure:

  1. Add a line to the /etc/hosts file by entering the peer-bound private IP address and the Peer Host name, and then save the file.
    Example: 10.10.10.10 my-external-server Enter
  2. Afterward, access the peer IP address using the Peer Host name.
    Example: Connect by entering http://my-external-server instead of http://10.10.10.10.