Step 1: Create a VPN Connection
In order to create a VPN connection, we must first configure the required components for the VPN as mentioned in the prerequisites section, Configuring VPN Components for the particular VPC. Next, we must also have the CIDR range for your network in which the Windows server is located, for example, 172.31.0.0/16.
To create a VPN connection
1. First, we should open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
2. Next, in the navigation pane, we should choose VPN Connections, and then we should Create VPN Connection.
3. Next, we should select the virtual private gateway and customer gateway from the defined lists. Next, select the Static routing option, then we should enter the Static IP Prefixes…show more content… Next, we should open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
2. Next, in the navigation pane, we should choose VPN Connections.
3. Next, we should select the particular VPN connection, and then we should choose Download Configuration.
4. Next, we should Select Microsoft as the vendor, Windows Server as the platform, and 2012 R2 as the software. Then we should Choose Yes, Download. We can open the file or save it.
5. Next, configuration file will contains a section of information similar to the below example. We can see this information presented twice, each time for each tunnel. We will use the below information while configuring the Windows Server 2012 R2 server. vgw-1a2b3c4d Tunnel1
--------------------------------------------------------------------
Local Tunnel Endpoint: 203.0.113.1
Remote Tunnel Endpoint: 203.83.222.237
Endpoint 3:…show more content… Next, we should choose Install button. However, when the installation completes, we choose Close button.
To configure and enable Routing and Remote Access Server
1. On the dashboard, we should choose Notifications (the flag icon). We should note that there should be a task to complete the post-deployment configuration. Then we should choose the Open the Getting Started Wizard link.
2. Next, we should choose Deploy VPN only.
3. Next, within the Routing and Remote Access dialog box, we should choose the server name, then choose Action, and followed by we should select configure and then enable Routing and Remote Access.
4. Next, in the Routing and Remote Access Server Setup Wizard, on the first page, we should choose Next button.
5. Next, within the Configuration page, we should choose Custom Configuration and click Next button.
6. Next, we should choose LAN routing, then followed by Next, and Finish buttons.
7. However, when prompted by the Routing and Remote Access dialog box, we should choose Start service.
Step 4: Set Up the VPN Tunnel
We can configure the VPN tunnel by running the netsh scripts which is included in the downloaded configuration file, or by using the New Connection Security Rule wizard within the Windows server.
It is very important to note