Firewall to Azure Site to Site VPN
To update this post: Many changes have been made to Azure VPN Gateway since, here are the latest updates:
1. IKEv1 is no longer Supported. You need a firewall that supports IKEv2
Settings as recommended:
Key Negotiation Tries: 5
Re-key connection: On
Compression: Off
SHA2 with 96-bit trunctation: Off
Authentication: Main Mode
Phase 1: Key Life 28800, Re-key Margin 60, Randomize Re-key Margin by 100
- DH Groups: 2, 14, 21
- Encryption: AES256, Authentication SHA2 256;
- Encryption: AES256, Authentication SHA2 512;
Phase 2: PFS (None), Key Life 27000
- Encryption: AES256, Authentication SHA2 512;
- Encryption: AES256, Authentication SHA2 256;
Dead Peer Detection: On
- Check peer after every 30 Sec
- Wait for response up to 120 Sec
- When peer is unreachable, Re-initiate Connection
Azure Virtual Network Gateway
Gateway type: VPN
VPN type: Route-Based
Sophos SG UTM
no longer supported
Sophos SFOS XG (this is preinstalled into the firmware)
![](https://static.wixstatic.com/media/c0f250_d3c55312aa744655927c857afe1780cf~mv2.png/v1/fill/w_822,h_995,al_c,q_90,enc_auto/c0f250_d3c55312aa744655927c857afe1780cf~mv2.png)
Peplink device
![](https://static.wixstatic.com/media/c0f250_56e2a66552414384b65b2b0469d79bed~mv2.png/v1/fill/w_823,h_758,al_c,q_90,enc_auto/c0f250_56e2a66552414384b65b2b0469d79bed~mv2.png)
IPFire
![](https://static.wixstatic.com/media/c0f250_7389198ec9d944f2bb6081e4e2863243~mv2.png/v1/fill/w_768,h_660,al_c,q_90,enc_auto/c0f250_7389198ec9d944f2bb6081e4e2863243~mv2.png)
https://blogs.technet.microsoft.com/canitpro/2017/06/28/step-by-step-configuring-a-site-to-site-vpn-gateway-between-azure-and-on-premise/
Jul 15, 2016
For anyone trying to connect their IPFire firewall (http://www.ipfire.org/)to Azure VPN Gateway, here is the required setting visualized https://azure.microsoft.com/en-us/blog/connecting-to-a-windows-azure-virtual-network-via-a-linux-based-software-vpn-device/
Bonus: Bonus: Connecting Sophos UTM to Azure VPN Gateway requires this IPsec Policy to be configured on the UTM (credit: http://techbast.com/2015/02/step-by-step-site-to-site-vpn-microsoft-azure-and-sophos-utm-configuration.html)