How do I configure a route based VPN between SonicWall and Cisco?
10/14/2021
84 People found this article helpful
447,785 Views
Description
When configuring a Route Bases VPN in SonicOS Enhanced firmware using Main Mode both the SonicWall appliances and Cisco ASA firewall (Site A and Site B) must have a routable Static WAN IP address.
Resolution
Resolution for SonicOS 6.5
This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010079400.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Deployment Steps:
Step 1: Configuring a VPN policy on Site A SonicWall.
Step 2: Configuring a VPN policy on Site B Cisco ASA Firewall
Step 3: How to test this scenario.
To manually configure a VPN Policy using IKE with Preshared Secret, follow the steps below:
The below screen shot of SonicWall with basic configuration LAN and WAN.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010713213.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Configuring a VPN policy on Site A SonicWall
Login to the SonicWall Management GUI
- Click Manage in the top navigation menu
- Navigate to VPN | Base Settings
- Enable VPN
- Click Add. The VPN Policy window is displayed.
- Click the General tab
- Select Tunnel Interface from the Policy Type menu
- 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 Site B'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](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010386423.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Click the Proposal 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.
- 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.
- 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.
Creating and Configuring a VPN tunnel interface.
- Click Manage in the top navigation menu
- Navigate to the Network | Interfaces page.
- Add Interface. Click on VPN Tunnel interface.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010088694.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010276530.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Zone is VPN
- Select the policy Name under VPN policy dropdown menu.
- Mode/IP assignment 11.11.11.1/30 matching the same subnet on tunnel interface on Cisco device.
- Enable Ping for verifying.
Configuring a VPN policy on Site B Cisco ASA
- Login to Cisco device.
- Configure WAN and LAN. The screen shot below with WAN configured as Outside with IP 23.45.67.89 and LAN configured as LAN with IP 20.20.20.1.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010737913.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Verifying the initial Configuration on Cisco ASA.
In the below screenshot we checking the connectivity to upstream modem(ISP) and also remote end SonicWall WAN IP by pinging the IP address.
First Ping to Cisco gateway- 2.2.2.1 –Passed
Second Ping to SonicWall WAN IP-1.1.1.2-Passed
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010056155.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Now we configure the route based VPN.
- Create a pre-shared key
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010057002.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a ISAKMP Policy
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010868219.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a ISAKMP Profile
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010813916.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Define an IPsec transform-set
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010727568.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Define an IPsec Profile
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010647163.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a VPN Tunnel Interface
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010571245.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
How to test this Scenario:
Find the screen shot below on SonicWall with active VPN Tunnel.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010684731.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Screenshot below on Cisco with active VPN Tunnel
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010503264.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Resolution for SonicOS 6.2 and Below
The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010611679.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Deployment Steps:
Step 1: Configuring a VPN policy on Site A SonicWall.
Step 2: Configuring a VPN policy on Site B Cisco ASA Firewall
Step 3: How to test this scenario.
Procedure:
To manually configure a VPN Policy using IKE with Preshared Secret, follow the steps below:
The below screen shot of SonicWall with basic configuration LAN and WAN.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010100458.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Configuring a VPN policy on Site A SonicWall
- Navigate to VPN | Settings page and Click Add button. The VPN Policy window is displayed.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010945255.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Click the General tab
- Select Tunnel Interface from the Policy Type menu.
- 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 Site B'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](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010068665.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- 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.
- 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.
- 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.
Creating and Configuring a VPN tunnel interface.
- Navigate to Network | Interfaces. Select VPN Tunnel Interface under Add Interface.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010448764.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Zone is VPN
- Select the policy Name under VPN policy dropdown menu.
- Mode/IP assignment 11.11.11.1/30 matching the same subnet on tunnel interface on Cisco device.
- Enable Ping for verifying.
Configuring a VPN policy on Site B Cisco ASA
- Login to Cisco device.
- Configure WAN and LAN. The screen shot below with WAN configured as Outside with IP 23.45.67.89 and LAN configured as LAN with IP 20.20.20.1.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010737913.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Verifying the initial Configuration on Cisco ASA.
In the below screenshot we checking the connectivity to upstream modem(ISP) and also remote end SonicWall WAN IP by pinging the IP address.
First Ping to Cisco gateway- 2.2.2.1 –Passed
Second Ping to SonicWall WAN IP-1.1.1.2-Passed
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010056155.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Now we configure the route based VPN.
- Create a pre-shared key
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010057002.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a ISAKMP Policy
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010868219.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a ISAKMP Profile
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010813916.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Define an IPsec transform-set
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010727568.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Define an IPsec Profile
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010647163.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
- Create a VPN Tunnel Interface
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010571245.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
How to test this Scenario:
Find the screen shot below on SonicWall with active VPN Tunnel.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010684731.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Screenshot below on Cisco with active VPN Tunnel
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090171010503264.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk5MjksImlhdCI6MTcyNTA3MzkyOX0.jzxj-1JV5G7XXMdl5wf87pjsnGLPitXRAgI5yfRobms)
Related Articles
Categories