Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

set-up VPN to server 2012 R2

$
0
0

I'm trying to set up a VPN between my Azure virtual network and my on premises server.

This is the config on Azure:

  <VirtualNetworkConfiguration>
    <Dns />
    <LocalNetworkSites>
      <LocalNetworkSite name="Router_to_Server-Duizer">
        <AddressSpace>
          <AddressPrefix>192.xxx.xxx.0/24</AddressPrefix> #LAN site router#
        </AddressSpace>
        <VPNGatewayAddress>84.xxx.xxx.127</VPNGatewayAddress> #WAN site router#
      </LocalNetworkSite>
    </LocalNetworkSites>
    <VirtualNetworkSites>
      <VirtualNetworkSite name="Azure-Duizer" Location="West Europe">
        <AddressSpace>
          <AddressPrefix>10.0.0.0/8</AddressPrefix>
        </AddressSpace>
        <Subnets>
          <Subnet name="Subnet-1">
            <AddressPrefix>10.0.0.0/11</AddressPrefix>
          </Subnet>
          <Subnet name="GatewaySubnet">
            <AddressPrefix>10.32.0.0/29</AddressPrefix>
          </Subnet>
        </Subnets>
        <Gateway>
          <ConnectionsToLocalNetwork>
            <LocalNetworkSiteRef name="Router_to_Server-Duizer">
              <Connection type="IPsec" />
            </LocalNetworkSiteRef>
          </ConnectionsToLocalNetwork>
        </Gateway>
      </VirtualNetworkSite>
    </VirtualNetworkSites>
  </VirtualNetworkConfiguration>
</NetworkConfiguration>

The firewall on my router / modem is off

I downloaded the VPN device script from the Azure manager with the following settings:

Microsoft Corporation

RRAS

Windows Server 2012 R2

Then i pasted the script in to powershell (ran as admin) and started it.

The first time i got the following error:

Connect-VpnS2SInterface : Routing and Remote access server is either not configured or not running

Then i ran the last line again and i got the next error:

Connect-VpnS2SInterface : The network connection between your computer and the VPN server could not be established because the remote server is not respondin
g. This could be because one of the network devices (e.g, firewalls, NAT, routers, etc) between your computer and the remote server is not configured to allow VPN connections. Please contact your Administrator or your service provider to determine which device may be causing the problem.

The firewall on my server is also turned off

Can anyone help me to solve this?

Download VPN Device Script

Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>