Machines are Linux and Windows virtual machines with persistent storage, GPU options, and free unlimited bandwidth. They’re designed for high-performance computing (HPC) workloads.
A Virtual Private Network (VPN) is a secure, encrypted network that runs over a public network, like the internet. A VPN typically consists of at least one gateway, a private network, and a tunnel.
The Paperspace API and Paperspace CLI cannot create VPNs. You can only create a VPN via the Paperspace console by submitting a VPN request to Paperspace support.
The VPN is manually created by Paperspace after submitting a request with the necessary specs. You need to provide the following resources for Paperspace to create a VPN: a private network, a public IP address, a pre-shared key, and internal networks.
To submit your VPN request, go to the Paperspace console, in the top-left corner, click the dropdown menu, select CORE, click the VPN tab, then click CREATE VPN to open the Create VPN request form.
Before creating a VPN, you need a private network and the IP address of the machine you want to use as the VPN gateway.
If you do not have any private networks, create a private network for your VPN. Within your private network, attach the machines you want connected to the VPN.
Before you create a VPN, get the public IP address of the machine you want to use as a VPN.
To find your machine’s IP address, go to the Paperspace console, in the top-left corner, click the dropdown menu, select CORE, click Machines tab, then select the machine you want to get the IP address of.
From the machine’s overview page, in the top-right corner, click the Settings tab. In the Settings page, in the Public IP section, copy your machine’s IP address for later use.
If your machine doesn’t have a public IP address, assign a public IP address to your machine.
In the Select a network section, click the dropdown menu to select the private network you want connected to your VPN.
In the VPN Public IP Address section, type the public IP address of the machine you’re using as a VPN.
A pre-shared key is a secret key shared between your machines and a physical or third-party location, such as a local machine.
Pre-shared keys secure the connection between machines by ensuring that only authorized machines can establish a connection to your VPN and its machines.
To add a pre-shared key, in the Pre-shared Key section, type the pre-shared key.
If you need to generate a pre-shared key, we recommend using OpenSSL, an open source library that implements protocols, such as the Secure Socket Layer (SSL), and offers cryptography methods, such as generating random keys.
Internal networks are the machines you want connected to your VPN.
In the Internal Network(s), separated by commas section, list the IP addresses of the machines you want accessible through your VPN.
After configuring your VPN, click CREATE VPN. A VPN may take up to 24-48 hours to create. Once your VPN is created, Paperspace support notifies you via email that your VPN is created and connected.
The VPN is not visible on the Paperspace console as it runs in the background and connects the machines in your private network, by default.
If you want to delete your VPN from your Paperspace account, contact Paperspace support. Paperspace support notifies you via email once the VPN is deleted.
To test your VPN, go to the Paperspace console, in the top-left corner, click the dropdown menu, select CORE, click the Machines tab, then find and select a machine belonging to your VPN’s private network.
On the machine’s overview page, click the Details tab, in the Details page, on the right side, under the Private IP section, copy the private IP address.
Then, connect to your machine, in your machine, open a terminal, and run a Internet Control Message Protocol (ICMP) (ping
) command.
ICMP (Internet Control Message Protocol) sends and receives ping requests to test network connectivity. You can use a ping
command to verify whether your machine can reach the VPN gateway and receive a response.
ping 203.0.113.0
Your VPN is working properly if the packets line indicates data was sent and received with minimal packet loss.
...
--- 203.0.113.0 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3068ms
...
If your ping
command outputs a request timeout, you may need to enable ICMP command on your machine.
PING 203.0.113.0 (203.0.113.0): 56 data bytes
Request timeout for icmp_seq 0
...
After enabling ICMP on your machine, attempt to re-run your ping
command. If you continue to receive timeout requests or other errors such as denied permissions, contact Paperspace Support.