Create a route for a VPN connection
You can create a static route for a VPN (Virtual Private Network) connection.
This allows you to route traffic between the virtual gateway and the client gateway. You must then add the new route to the route table.
This action applies to static routing only. If your VPN connection uses dynamic routing, you do not need to create new routes.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- connectivity.vpnconnection.update
- Console
- API
- Terraform
Before you begin: Create a VPN connection.
- In the VPN Connections dashboard, click the ID of the VPN connection for which you want to create a route. The VPN connections pane appears.
- In the "Route VPN" tab, click Create a route for VPN. The "Create a route for a VPN Connection" dialog box appears.
- In the "Destination IP range" field, enter the IP (Internet Protocol) range of your corporate network, in CIDR (Classless Inter-Domain Routing) notation.
- Click Create. A static route is created for the selected VPN connection.
Before you begin: Create a VPN connection.
The POST /connectivity/spaces/{spaceId}/vpnConnections/{id}/routes command creates a static route to a VPN connection. This allows you to select the network flows sent by the virtual gateway to the target VPN connection.
The Terraform documentation is available on the Numspot registry ↗.