Microsoft Azure
This guide will show you how to connect your Microsoft Azure cloud to the GoodAccess Gateway via a site-to-site connection using the IPsec protocol.
Prerequisites
You need a virtual network gateway in Azure. If you don't have one, follow this tutorial by Microsoft.
Step 1 - Creating a new cloud connection
Log in to the GoodAccess Control Panel, and go to Network > Clouds & Branches.
Click + Add new, enter the Cloud name and subnet, and select Gateway.
Choose IPSec Protocol, fill out the Settings configuration form, and click Save.
You may return to the configuration via the Edit button of your Cloud at any time.
Example of configuration:
Cloud/Branch subnet - Subnet of your Azure virtual network gateway
Shared Secret - Create a new strong password
Public IP - IP of your Azure virtual network gateway
IKE Lifetime (Phase 1) - 8 hours (28800 seconds)
Tunnel Lifetime (Phase 2) - 1 hour (3600 seconds)
Dead Peer Detection Delay - 30 seconds
Encryption (Phase 1) - aes256
Encryption (Phase 2) - aes256
Integrity (Phase 1) - sha256
Integrity (Phase 2) - sha256
Diffie-Hellman Groups (Phase 1) - 14 - modp2048
Diffie-Hellman Groups (Phase 2) - 14 - modp2048 (PFS2048)
Step 2 - Creating a new local network gateway
Log in to Azure, and go to Local network gateways (you can use the searchbar), and click + Create.
Set the configuration as follows:
Endpoint - IP address
IP address - IP of your GoodAccess Gateway
Address spaces - Subnet of your GoodAccess Gateway
The remaining settings are up to you.
Click Review + create and then Create.
![Azure Portal with key steps to creating a new local network gateway.](https://support.goodaccess.com/~gitbook/image?url=https%3A%2F%2F418253935-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiJ406Lpi9EKoWDi7GFL7%252Fuploads%252FcYyZvVLaDBo48Cl6VeeK%252FCloud_Connector_Azure_01.png%3Falt%3Dmedia%26token%3D83a7dd63-5f6d-42c1-8b0c-069f1de9bf23&width=768&dpr=4&quality=100&sign=833984ef&sv=1)
![Azure Portal with key steps to configuring a new local network gateway.](https://support.goodaccess.com/~gitbook/image?url=https%3A%2F%2F418253935-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiJ406Lpi9EKoWDi7GFL7%252Fuploads%252Ftk2SH0RSByhws1J8chD3%252FCloud_Connector_Azure_02.png%3Falt%3Dmedia%26token%3Dc840efb5-9fb5-40ca-ba67-247ff4a7f3b3&width=768&dpr=4&quality=100&sign=66d68691&sv=1)
Step 3 - Creating a new connection
Go to Virtual network gateways (you can use the searchbar), and select your virtual network gateway.
Go to Connections, click + Add, and set the configuration as follows:
Connection type - Site-to-site (IPsec)
The remaining settings are up to you.
Click Next : Settings >, and set the configuration as follows:
Virtual network gateway - Choose from the dropdown
Local network gateway - Choose from the dropdown
Shared key (PSK) - Shared Secret (Step 1)
IKE Protocol - IKEv2
IPsec / IKE policy - Custom
IKE Phase 1 & 2 - Must match configuration from GoodAccess (Step 1)
IPsec SA lifetime in seconds - Tunnel Lifetime (Phase 2)
DPD timeout in seconds - Dead Peer Detection Delay
The remaining settings are up to you.
Click Review + create, and then Create.
![Azure Portal with key steps to creating a new connection.](https://support.goodaccess.com/~gitbook/image?url=https%3A%2F%2F418253935-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiJ406Lpi9EKoWDi7GFL7%252Fuploads%252FZrodPbCtEPTswhoXaqgK%252FCloud_Connector_Azure_03.png%3Falt%3Dmedia%26token%3D555fedce-946a-4e7f-9620-b4b73b0e56ed&width=768&dpr=4&quality=100&sign=a6bbbe67&sv=1)
![Azure Portal with key steps to creating a new site-to-site connection.](https://support.goodaccess.com/~gitbook/image?url=https%3A%2F%2F418253935-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiJ406Lpi9EKoWDi7GFL7%252Fuploads%252FeO9yuW3FAg3OxvcMFONV%252FCloud_Connector_Azure_04.png%3Falt%3Dmedia%26token%3Df11717bf-4ac1-4940-84cc-8700ab63bb55&width=768&dpr=4&quality=100&sign=fbad8b62&sv=1)
![Azure Portal with key steps to configuring a new site-to-site connection.](https://support.goodaccess.com/~gitbook/image?url=https%3A%2F%2F418253935-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiJ406Lpi9EKoWDi7GFL7%252Fuploads%252FOGLZLhiD1WH2ib9h8GtS%252FCloud_Connector_Azure_05.png%3Falt%3Dmedia%26token%3Ddaa421f4-e702-43ae-aba9-7e2000e266d7&width=768&dpr=4&quality=100&sign=28446e61&sv=1)
You have now successfully connected your Azure resources to GoodAccess.
You may check the status of the connection in:
GoodAccess - Control Panel > Clouds & Branches > Edit button > Test connection
Azure - Virtual network gateway > Connections
Last updated