en-US
search-icon

Knowledge Base

How to Configure a Site to Site VPN Policy using Main Mode

Description

This article details how to configure a Site-to-Site VPN using Main Mode, which requires the SonicWall and the Remote VPN Concentrator to both have Static, Public IP Addresses.

Resolution

Step 1: Creating Address Objects for VPN subnets:

1. Login to the SonicWall Management Interface

2. Click Manage in the top navigation menu

3. Navigate to Objects | Address Objects, scroll down to the bottom of the page and click on Add button.

On the NSA 2650

Image 

On the NSA 4600

Image

4. Configure the Address Objects as mentioned in the figure above, click Add and click Close when finished.



Step 2: Configuring a VPN policy on Site A SonicWall

1. Click Manage in the top navigation menu.

2. Navigate to VPN | Base Settings page and Click Add button. The VPN Policy window is displayed.

2. Click the General tab.

  • Select IKE using Preshared Secret from the Authentication Method menu.
  • Enter a name for the policy in the Name field.
  • Enter the WAN IP address of the remote connection in the IPsec Primary Gateway Name or Address field (Enter NSA 240's WAN IP address).

TIP: If the Remote VPN device supports more than one endpoint, you may optionally enter a second host name or IP address of the remote connection in the IPsec Secondary Gateway Name or Address field.

  • Enter a Shared Secret password to be used to setup the Security Association the Shared Secret and Confirm Shared Secret fields. The Shared Secret must be at least 4 characters long, and should comprise both numbers and letters.
  • Optionally, you may specify a Local IKE ID (optional) and Peer IKE ID (optional) for this Policy. By default, the IP Address (ID_IPv4_ADDR) is used for Main Mode negotiations, and the SonicWall Identifier (ID_USER_FQDN) is used for Aggressive Mode.

Image

3. Click the Network Tab.

  • Under Local Networks, select a local network from Choose local network from list: and select the address object X0 Subnet (LAN Primary Subnet)
  • Under Destination Networks, select Choose destination network from list: and select the address object NSA 240 Site (Site B network)

 

NOTE: DHCP over VPN is not supported with IKEv2.

 

Image
4. Click the Proposals Tab.

  • Under IKE (Phase 1) Proposal, select Main Mode from the Exchange menu. Aggressive Mode is generally used when WAN addressing is dynamically assigned. IKEv2 causes all the negotiation to happen via IKE v2 protocols, rather than using IKE Phase 1 and Phase 2. If you use IKE v2, both ends of the VPN tunnel must use IKE v2.
  • Under IKE (Phase 1) Proposal, the default values for DH Group, Encryption, Authentication, and Life Time are acceptable for most VPN configurations. Be sure the Phase 1 values on the opposite side of the tunnel are configured to match. You can also choose AES-128, AES-192, or AES-256 from the Authentication menu instead of 3DES for enhanced authentication security.

NOTE: The Windows 2000 L2TP client and Windows XP L2TP client can only work with DH Group 2. They are incompatible with DH Groups 1 and 5.

  • Under IPsec (Phase 2) Proposal, the default values for Protocol, Encryption, Authentication, Enable Perfect Forward Secrecy, DH Group, and Lifetime are acceptable for most VPN SA configurations. Be sure the Phase 2 values on the opposite side of the tunnel are configured to match.

Image 

5. Click the Advanced Tab.

  • Select Enable Keep Alive to use heartbeat messages between peers on this VPN tunnel. If one end of the tunnel fails, using Keepalives will allow for the automatic
    renegotiation of the tunnel once both sides become available again without having to wait for the proposed Life Time to expire.
  • Select Enable Windows Networking (NetBIOS) Broadcast to allow access to remote network resources by browsing the Windows® Network Neighborhood.
  • To manage the local SonicWall through the VPN tunnel, select HTTP, HTTPS, or both from Management via this SA. Select HTTP, HTTPS, or both in the User login via this SA to allow users to login using the SA.
  • If you wish to use a router on the LAN for traffic entering this tunnel destined for an unknown subnet, for example, if you configured the other side to Use this VPN Tunnel as default route for all Internet traffic, you should enter the IP address of your router into the Default LAN Gateway (optional) field.
  • Select an interface or zone from the VPN Policy bound to menu. A Zone WAN is the preferred selection if you are using WAN Load Balancing and you wish to allow the VPN to use either WAN interface.
  • Click OK to apply the settings.

Image 



Step 3: Configuring a VPN policy on Site B SonicWall 

1. Login to the Site B SonicWall appliance and Click Manage in the top navigation menu. Click  VPN | Base Settings page and Click Add button. The VPN Policy window is displayed.

2. Click the General Tab.

  • Select IKE using Preshared Secret from the Authentication Method menu.
  • Enter a name for the policy in the Name field.
  • Enter the WAN IP address of the remote connection in the IPsec Primary Gateway Name or Address field (Enter NSA 4600's WAN IP address).
  • If the Remote VPN device supports more than one endpoint, you may optionally enter a second host name or IP address of the remote connection in the IPsec Secondary Gateway Name or Address field.

NOTE: Secondary gateways are not supported with IKEv2.

  • Enter a Shared Secret password to be used to setup the Security Association the Shared Secret and Confirm Shared Secret fields. The Shared Secret must be at least 4 characters long, and should comprise both numbers and letters.
  • Optionally, you may specify a Local IKE ID (optional) and Peer IKE ID (optional) for this Policy. By default, the IP Address (ID_IPv4_ADDR) is used for Main Mode negotiations, and the SonicWall Identifier (ID_USER_FQDN) is used for Aggressive Mode.

Image 

3. Click the Network Tab.

  • Under Local Networks, select a local network from Choose local network from list: and select the address object X0 Subnet (LAN Primary Subnet)

NOTE: DHCP over VPN is not supported with IKEv2.

  • Under Destination Networks, select Choose destination network from list: and select the address object NSA 4600 Site (Site A network)
    Image

4. Click the Proposals Tab.

NOTE: Settings must be same as Site A.

Image

5. Click the Advanced Tab.
  • Select Enable Keep Alive to use heartbeat messages between peers on this VPN tunnel. If one end of the tunnel fails, using Keep alives will allow for the automatic
    renegotiation of the tunnel once both sides become available again without having to wait for the proposed Life Time to expire.
  • Select Enable Windows Networking (NetBIOS) Broadcast to allow access to remote network resources by browsing the Windows® Network Neighborhood.
  • To manage the local SonicWall through the VPN tunnel, select HTTP, HTTPS, or both from Management via this SA. Select HTTP, HTTPS, or both in the User login via this SA to allow users to login using the SA.
  • If you wish to use a router on the LAN for traffic entering this tunnel destined for an unknown subnet, for example, if you configured the other side to Use this VPN Tunnel as default route for all Internet traffic, you should enter the IP address of your router into the Default LAN Gateway (optional) field.
  • - Select an interface or zone from the VPN Policy bound to menu. A Zone WAN is the preferred selection if you are using WAN Load Balancing and you wish to allow the VPN to use either WAN interface.
  • Click OK to apply the settings. 

Image