927V0MJku1OcBLTuD7lkELe7Mk4OHfuDB8LuA1nI

S2S VPN with On-Premises Vm-Ware Windows Server OS to Azure VM

1) Create a Resource Group

2) Create a Virtual Network

3) Create a Local Network Gateway

4) Create a Virtual Network Gateway with Public IP Address

5) Create a Connection

6) Create a VM in Azure for connection Testing

7) Configure RRAS on on-premises server

8) Test with RDP and establish the network path

 

1) Create a Resource Group

à azure portal

à click on Resource Groups

à Create

à Subscription ==

à Resource Group Name == S2S_VPN

à Region == India

à Review + Create

à Create

2) Create a Virtual Network

à Virtual Network

à Subscription ==

à Resource Group Name == S2S_VPN

à Name == S2S_VPN_VNET

à Region == India

à IP Addressing

à IPv4 address space == 10.0.0.0/24

à Subnet name == default

à Subnet address space == 10.0.0.0/26

à Ok

à Review + Create

à Create

3) Create a Local Network Gateway

à Local Network gateway

à Resource Group Name == S2S_VPN

à Subscription ==

à Region == India

à Name == S2S_VPN_LNG

à Endpoint == Ip Address

à Ip Address == paste the IP address of your laptop or system so those IP address will change when you restart

à Address Space == Open the VMware and Run the windows server Os then go to “CMD” and type “IPCONFIG” then copy the IPv4 Address and “paste it here” exp: 192.168.29.0/24

à Advanced

à Configure BGP settings == no

à Review + Create

à Create

 

à Go to Virtual Network

à S2S_VPN_VNET

à Subnets

à Gateway Subnet

à Name == GatewaySubnet

à Subnet Address Space == 10.0.0.96/27

à Nat gateway == none

à Network Security Groups == none

à Route table == none

à Save

4) Create a Virtual Network Gateway with Public IP Address

à Virtual Network Gateway == it will take around 20 to 30 min to create

à Subscription ==

à Resource Group Name == S2S_VPN

à Name == S2S_VPN_VNG

à Region == India

à Gateway Type == VPN

à VPN type == Route-based

à SKU == VpnGw1

à Generation == Generation1

à Virtual network == S2S_VPN_VNET

à Subnet == GatewaySubnet

à Public IP address == Create New

à Public IP address name == S2S_VPN_Public_Ip

à Public IP address SKU == Standard

à Enable active-active mode == Disabled

à Configure BGP == Disabled

à Tags

à Review + Create

à Create

5) Create a Connection

à Virtual Network Gateway

à S2S_VPN_VNG

à Connection == add

à Name == S2S_VPN_Connection

à Connection type == Site-to-Site (IPsec)

à Virtual network gateway == S2S-VPN-VNG

à Local network gateway == S2S-VPN-LNG

à Shared key == type any key and save it is used to when we doing remote Connection

à Use Azure Private IP Address == no

à Enable BGP == no

à IKE Protocol == IKEv2

à Subscription ==

à Resource group == S2S_VPN

à Location == India

à Ok

6) Create a VM in Azure for connection Testing

à Go to Azure Portal

à virtual machines

à Create

à Subscription

à Resource Group == S2S_VPN

à Virtual machine name == S2S_VM

à Region == India

à Availability option == No infrastructure Redundancy required

à security type == Standard

à Image == Windows server 2022 Azure edition

à Size == Standared_BS1

à Authentication Type == password

à Username == nilayteja

à Password == India@123456

à Confirm Password == India@123456

à Public Inbound Ports == None

à Disks

à Networking

à Virtual Network == S2S_VPN_VNET

à Subnet == default

à Public IP == none

à NIC Network Security Groups == Basic

à Public Inbound Port == Allow selected port

à Select Inbound ports == RDP (3389) 

à Review + Create

à Create

7) Configure RRAS on on-premises server

à Server Manager

à Add roles and features

à Before you begin == next

à Installation type == Role-based or feature-based installation

à Next

à Server select == next

à Remote Access

à Next

à Features == Next

à Remote Access == next

à Role Servers

à DirectAccess and VPN (RAS) == yes

à Routing == yes

à Web Application Proxy == yes

à Next

à Web Server Role (IIS) == next

à Role Services == next

à Install

 

à Open Routing and Remote Access

à In local server right click == Configure and enable Routing and remote access

à Routing and Remote Access Server Setup Wizard == next

à Custom configuration

à Next

à VPN access == yes

à Dial-up access == yes

à Demand-dial connections (used for branch office routing) == yes

à NAT == yes

à LAN routing == yes

à Next

à Finish

à Routing and Remote Access == Start service

 

à In local network server

à Network Interface == right click on it and select “New Demand-dial Interface”

à Demand-Dial Interface Wizard == next

à Interface name == S2S_VPN_Azure

à Next

à Connect using private networking (VPN) == Next

à IKEv2 == Next

à Host name or IP address == Paste the Public IP Address of Virtual Network Gateway

à Next

à Route IP packets on this interface == Next

à Static Routes == Add

à Remote Network Support using IPv4

à Destination == S2S_VPN_VNET Address space exp. 10.0.0.0

à Network Mask == 255.255.0.0

à Metric == 24

à Ok

à Next

à Dial-Out Credentials

à User name == leave it

à Domain == leave it

à Password == leave it

à Confirm password == leave it

à Finish

8) Test with RDP and establish the network path

à Network Interface

à S2S_VPN_Azure == right click on it select “properties”

à Security

à Use Pre-Shared key for authentication == yes

à Type the shared key of S2S-VPN-LNG

à Ok

à S2S_VPN_Azure == right click on it select “Connect”

 

à Let’s test to map the “C” drive of On-Premises VM

à In On-Premises VM àrun àCMD à ipconfig

à Copy the IPv4 IP address

à RDP à S2S_VM

à Run àCMD à

à Pate that IP Address here like this “\\192.168.0.0\c$

à Enter network credentials

à User name == On-Premises username

à Password == On-Premises Password

à Ok

à Automatically On-Premises Local Disk “C” Drive will map in azure VM of S2S_VM


OldestNewer