Tutorial: Setting Up a VPN Connection
The goal of this tutorial is to set up a VPN connection between your corporate network and one of your Virtual Private Clouds (VPCs) in the OUTSCALE Cloud.
Create the Required Resources
Before you begin: Create a VPC to connect to your corporate network. For more information, see Creating a VPC. |
-
Create a customer gateway. For more information, see Creating a Customer Gateway.
-
Create a virtual private gateway. For more information, see Creating a Virtual Private Gateway.
-
Attach the virtual private gateway to the VPC. For more information, see Attaching a Virtual Private Gateway.
-
Create a VPN connection. For more information, see Creating a VPN Connection.
Remember to download the XML file returned after VPN creation. This file contains example configuration information that is useful for configuring the VPN tunnel, as mentioned in the Configure the VPN Tunnel section below.
Configure the Resources to Allow Traffic
Allow Access
-
In the firewall of your corporate network:
-
Open ports 500 and 4500 for UDP protocol.
-
Add a route pointing to the VPC.
-
-
In the VPC, add rules to the security groups associated with the instances allowing outbound and inbound flows to and from your corporate network. For more information, see Adding Rules to a Security Group.
Configure the Routing
-
If you want routes to be automatically created, enable route propagation in the VPC to the route table. For more information, see Enabling Route Propagation.
-
If you do not enable route propagation, create a route in the route table, using:
-
The CIDR of your corporate network as destination
-
The ID of the virtual private gateway as target
For more information, see Creating a Route.
-
-
(static routing only) Create a route associated with the VPN connection, using:
-
The CIDR of your corporate network as destination
For more information, see Creating a VPN Connection Route.
With dynamic routing and a Border Gateway Protocol (BGP), these routes are automatically created and updated. For more information, see About Routing Configuration for VPN Connections.
-
Configure the VPN Tunnel
After you have created your resources, you need to configure the VPN tunnel from your side of the connection. For more information, see VPN Configuration Reference.
Related Pages