Learn how to create a private network with a Gateway via the OVHcloud Control Panel, OVHcloud API, OVHcloud CLI, OpenStack API, or Terraform.
A Gateway offers a secure outbound connection method from your private network instances or the ability to use Floating IPs with your instance or Load Balancer for service exposition.
Requirements
- A Public Cloud project in your OVHcloud account
- For the OVHcloud API: API credentials (First steps with the OVHcloud API)
- For the OVHcloud CLI: the OVHcloud CLI installed and configured with your credentials
- For the OpenStack API: an OpenStack environment configured (Preparing an environment)
- For Terraform: Terraform installed and the OVHcloud provider configured (How to use Terraform)
OVHcloud Control Panel Access
- Direct link: Public Cloud Projects
-
Navigation path:
Public Cloud> Select your project
Instructions
Gateway models
Before creating a Gateway, choose the model suited to your bandwidth needs:
| Model | Bandwidth |
|---|---|
| S | up to 200 Mbps |
| M | up to 500 Mbps |
| L | up to 2 Gbps |
| XL | up to 4 Gbps |
| 2XL | up to 8 Gbps |
Create a private network with a Gateway
Step 1 — Access the creation page
Click on Gateway in the left-hand menu under Network.
You must have an active vRack before proceeding. If you do not have a vRack, please consult this section of the relevant guide.
Next, click Create a Gateway.
Step 2 — Select the region and size
Select the region where your private instances are located.
Then select your gateway size (see the models table above).
Step 3 — Name the Gateway and attach a private network
Edit the default name of your Gateway and select an existing private network from the drop-down list.
Only single-region private networks are supported by Gateway.
You can also click Add a private network to create a new private network inline.
In the pop-up window, enter a name for your private network, select a subnet, and click Add.
Step 4 — Confirm creation
Click Create a gateway to start the deployment.
The creation may take several minutes. Refresh the page if necessary.
Once done, the private network is visible in the Private Network section.
NOTE: You can cancel a Private Network by clicking the trash 🗑️ icon to the right of the network.
The Gateway appears in the Gateway section.
NOTE: You can cancel a Gateway by clicking the more options ... button and selecting Delete.
Step 1 — Retrieve the project ID
Log in to the OVHcloud APIv6 interface according to the relevant guide (First steps with the OVHcloud API).
In case the project ID is unknown, the calls below allow you to retrieve it.
To retrieve a list of projects:
To identify the project via the "description" field:
Step 2 — Create the private network with a Gateway
Create your private network and gateway:
Fill in the fields according to the following table.
| Field | Description |
|---|---|
| serviceName | 'The ID of your project' |
| regionName | Example: US-VA-EAST-1 |
| model | size of your gateway (s, m, l, xl, 2xl) depending on your needs |
| name | set a name for your gateway, you can click on the dropdown arrow and select "null" for a default one |
| network.name | set a name for your private network, you can click on the dropdown arrow and select "null" for a default one |
| cidr | IP block for your subnet |
| enableDhcp | check the box for yes |
| ipVersion | 4 |
| vlanId | Value between 2 and 4000, or empty for automatic assignment |
Repeat for each region where your private instances are present.
To verify the details of your Gateway:
Leave subnetId blank to list all Gateways in the specified region.
Use the OVHcloud CLI to create a private network with a Gateway. Set your cloud project with --cloud-project <project_id> or configure it in your profile.
Create a Gateway with a new private network:
Create a Gateway in an existing private network:
Available models: s, m, l, xl, 2xl, 3xl.
Only single-region private networks are supported by Gateway.
Before proceeding, it is recommended that you consult these guides:
Step 1 — Create a network and subnet
Step 2 — List quality of service policies
Step 3 — Create the router and configure the Gateway
If you omit the --qos-policy parameter the "small" quality of service will be applied.
Before proceeding, consult our How to Use Terraform guide.
Create a Terraform file (e.g., private_network_gateway.tf) with the following information:
You can create your resources by entering the following command:
Go further
For more information and tutorials, please see our other Public Cloud support guides or explore the guides for other OVHcloud products and services.