Chrome Remote Desktop Failed: Configuring WireGuard Tunnel Local Server on Oracle Cloud Instance VPS
Chrome Remote Desktop is a popular tool for remote access to computers. However, sometimes it fails to connect, especially when the local server is behind a CGNAT (Carrier-Grade NAT). In such cases, configuring a WireGuard tunnel local server on an Oracle Cloud Instance VPS can help establish a secure and reliable remote connection.
What is WireGuard?
WireGuard is a modern, secure, and easy-to-use VPN (Virtual Private Network) protocol that utilizes state-of-the-art cryptography. It is designed to provide faster and more reliable connections than traditional VPN protocols like OpenVPN and IPsec.
Why use WireGuard for Remote Access?
WireGuard offers several advantages for remote access:
- Ease of configuration: WireGuard's configuration is simpler and more straightforward than traditional VPN protocols.
- Performance: WireGuard provides faster and more reliable connections than other VPN protocols.
- Security: WireGuard utilizes state-of-the-art cryptography to ensure secure connections.
Configuring WireGuard Tunnel Local Server on Oracle Cloud Instance VPS
To configure a WireGuard tunnel local server on an Oracle Cloud Instance VPS, follow these steps:
- Create an Oracle Cloud Instance VPS with Ubuntu 22.04.
- Install WireGuard on both the local server and the Oracle Cloud Instance VPS.
- Configure WireGuard on the local server and the Oracle Cloud Instance VPS.
- Start the WireGuard service on both servers.
Step 1: Create an Oracle Cloud Instance VPS with Ubuntu 22.04
Log in to your Oracle Cloud account and create a new instance with Ubuntu 22.04 as the operating system.
Step 2: Install WireGuard on Both Servers
On both the local server and the Oracle Cloud Instance VPS, run the following commands to install WireGuard:
sudo apt update
sudo apt install wireguard
Step 3: Configure WireGuard on Both Servers
On the local server, create a WireGuard configuration file named wg0.conf with the following content:
[Interface]
Address = 10.0.0.1/24
PrivateKey =
ListenPort = 51820
[Peer]
PublicKey =
Endpoint = :51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25
Replace with the private key generated for the local server, and and with the public key and IP address of the Oracle Cloud Instance VPS, respectively.
On the Oracle Cloud Instance VPS, create a WireGuard configuration file named wg0.conf with the following content:
[Interface]
Address = 10.0.0.2/24
PrivateKey =
ListenPort = 51820
[Peer]
PublicKey =
Endpoint = :51820
AllowedIPs = 10.0.0.1/32
Replace with the private key generated for the Oracle Cloud Instance VPS, and and with the public key and IP address of the local server, respectively.
Step 4: Start the WireGuard Service on Both Servers
Run the following command on both servers to start the WireGuard service:
sudo systemctl start wg-quick@wg0
Establishing a Remote Connection
To establish a remote connection, run the following command on the local server:
sudo chrome-remote-desktop
Follow the instructions to set up remote access. When prompted for the remote computer's IP address, enter the public IP address of the Oracle Cloud Instance VPS.
Configuring a WireGuard tunnel local server on an Oracle Cloud Instance VPS can help establish a secure and reliable remote connection when Chrome Remote Desktop fails to connect due to a CGNAT.
References
- WireGuard: https://www.wireguard.com/
- Oracle Cloud: https://cloud.oracle.com/
- Chrome Remote Desktop: https://remotedesktop.google.com/