Setting Azure Point to Site VPN

Posted: October 22, 2017 in Azure

A Point-to-Site (P2S) configuration is a secure connection from an individual client
computer to a virtual network. P2S is a VPN connection over SSTP (Secure Socket Tunneling
Protocol).

In this example i connected my home Windows 10 lap-top to Azure infrastructure via VPN (not via AzurePublic IP)

Creating Azure Virtual Network

New-Virtual Network

1.PNG

Creating Azure Virtual Network Gateway

Virtual Network Gateway will be used from outside connection into Azure (as edge router/firewall at Azure Network)

1.PNG

SKU-Pricing category

3

Create public IP

4.PNG

And gateway

5

Click create

While gateway is being created, create certificates on Windows 10 machine

Download ADK (needed for tool makecert.exe)

After ADK is installed go to tool’s path

cd 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64'
::Create root certificate
\.makecert.exe -sky exchange -r -n "CN=LabRootCA1" -pe -a sha1 -len 2048 -ss My "LabRootCA"
::Create client certificate
\.makecert.exe -n "CN=VPNtoAzure" -pe -sky exchange -m 96 -ss My -in "LabRootCA1" -is my -a sha1

 

Export root certificate

Right click Root CA-All tasks-Export

8.png

 

9

 

10.PNG

 

11

 

Open certificate with notepad

 

12.PNG

 

Go to Azure gateway-Point-to-site-configuration

 

13.PNG

Specify pool and paste key from notepad, click save and download VPN client

 

14.PNG

 

16.png

 

17

 

18.PNG

 

 

19

 

I created Azure VM

 

20

 

21.PNG

 

From my Lap-top i used private IP (10.0.0.4) to connect to Azure VM

 

22.PNG

Advertisements
Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s