If you've spent any time configuring user authentication on... Full Story
By Manny Fernandez
May 22, 2018
Remote Access VPN with ASA as a client
Today I had a customer that was buying two Fortigate 500Es for their datacenter but had some remote offices outside the country currently using Cisco’s EZ VPN. Although the Fortigate will not terminate an EZ VPN configuration, it can handle site-to-site VPNs with the ASA acting as a client while routing the LAN side of the ASA into the Fortigate. The Fortigate has a static public IP while the remote offices have dynamic IP addresses from their local carriers. The challenge we faced with configuring VPNs with dynamic IP addresses was that if I create a single VPN on the Fortigate, we would not be able to route to the local LANs of the ASA.

object network HQ
subnet 10.0.0.0 255.255.255.0
!
object network site1-lan
subnet 2.1.1.0 255.255.255.0
#These object will be used in the ASA configuration (ACL and NAT)
!crypto ipsec ikev1 transform-set 3desMD5 esp-3des esp-md5-hmac
#Cerated a transform set for the ASA which defines the Phase II encryption and Hashing.
!
crypto ikev1 policy 1
authentication pre-share
encryption 3des
hash md5
group 5
lifetime 86400
#Created an IKEv1 Policy to be used with the Phase I of the VPN Tunneltunnel-group X.X.X.X type ipsec-l2l
tunnel-group X.X.X.X ipsec-attributes
ikev1 pre-shared-key <enter-real-psk-here>
peer-id-validate nocheck#Created a tunnel group with the PSK. This is part of Phase I
nat (inside,outside) 1 source static site1-lan site1-lan destination static HQ HQ
#Created a ‘no-nat’ statement
crypto map outside-map 10 match address crypto-to-cisneros
crypto map outside-map 10 set pfs group5
crypto map outside-map 10 set peer X.X.X.X
crypto map outside-map 10 set ikev1 phase1-mode aggressive group5
crypto map outside-map 10 set ikev1 transform-set 3desMD5#Here we put all the pieces of Phase II together. Here we tell it to use aggressive mode, and PFS
crypto isakmp identity hostname
#Here I tell the ASA to provide its hostname when connecting to the Fortigate so that we know what VPN it belongs to.
hostname site1
#Changed the host name. It will append the domain name from the ‘domain-name’ command to the end of it.crypto map outside-map interface outside
crypto ikev1 enable outside
#We then enabled the IPSec and IKEv1 to the outside interface.
On the Fortigate side, you will need to create a new IPSec Tunnel with the Wizard.

You can choose a ‘Site to Site’ to a ‘Cisco’ then choose ‘The remote site is behind NAT’

You will see the ‘Remote Gateway’ is a ‘Dialup User’ and ‘NAT T’ should be ‘enabled’.

Add the pre-shared key and choose ‘Aggresive’ for the mode. Under ‘Accept Types’ choose ‘Specific Peer ID’ and then add the ‘hostname.domain-name’ from the ASA.
Ensure that your Phase I proopsal mathces with the ASA ‘crypto ikev1 policy’ from above.
Once this is done, you will need to choose the subnets on each side of the VPN. Ensure you have the correct policy in the IPv4 Policy section. You will also need to ensure that the Static Routes are correct as well.

Ensure you have the remote subnet defned and pointing to the particular VPN with a corresponding ‘blackhole’ route.
Recent posts
-
-
DNS is one of those technologies that quietly underpins... Full Story
-
BGP issues on FortiGate firewalls usually trace back to... Full Story
-
Every time your laptop talks to your router, a... Full Story
-
If you've spent any time configuring NAT on a... Full Story
-
If you have spent any time configuring firewall policies... Full Story
-
High availability on FortiGate is one of those features... Full Story
-
If you've configured SD-WAN on a FortiGate, you've almost... Full Story
-
FortiLink is the management protocol that turns a FortiSwitch... Full Story
-
FortiSwitches are pretty rock solid from Mean Time Between... Full Story
-
This is a quicky tip. Have you ever gone... Full Story
-
DNS is one of those quiet pieces of internet... Full Story
-
This article is an updated version of the previous... Full Story
-
You will add ns2 as a secondary (slave) BIND9... Full Story
-
In the process of deploying my lab, I needed... Full Story
-
RFC 8805, used to be known as Self-Correcting IP... Full Story
-
Years back, I wrote an article about certificate pinning. ... Full Story
-
FortiGates have the ability to send alerts to Microsoft... Full Story
-
In this post, I am going to walk through... Full Story
-
Troubleshooting VoIP on a FortiGate can feel like trying... Full Story
-
Prior to FortiOS 7.0, there were three commands to... Full Story
-
In this post, I am going to go over... Full Story
-
What we are going to do: We are going... Full Story
-
Choosing between FGCP (FortiGate Clustering Protocol) and FGSP (FortiGate... Full Story
-
Creating a VLAN on macOS (The "Pro" Move) A... Full Story
-
This blog post explores the logic behind how macOS... Full Story
-
Pretty Fly for a Wi-Fi Tell My Wi-Fi Love... Full Story
-
Part of my daily gig is creating BoMs (Bill-of-Materials)... Full Story
-
ICMP introduces several security risks, but careful filtering, rate... Full Story
-
The command diag debug application dhcps -1 enables full... Full Story
-
In the world of FortiOS, execute tac report is... Full Story
-
LLDP; What is it The Link Layer Discovery Protocol... Full Story
-
What it actually does When you run diagnose fdsm... Full Story
-
Monkey Bites are bite-sized, high-impact security insights designed for... Full Story
-
I have run macOS in macOS with Parallels but... Full Story
-
Don't be confused with my other FortiNAC posts where... Full Story
-
This is the third session in a multi-part article... Full Story
-
Today I was configuring key-based authentication on a FortiGate... Full Story
-
Netcat, often called the "Swiss Army knife" of networking,... Full Story
-
At its core, IEEE 802.1X is a network layer... Full Story
-
In case you did not see the previous FortiNAC... Full Story
-
This is our 5th session where we are going... Full Story
-
Now that we have Wireshark installed and somewhat configured,... Full Story
-
The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story
-
Overview FortiOS 8.0 introduces custom tags as a first-class... Full Story
-
These are two distinct mechanisms on FortiOS, and conflating... Full Story
-
Replacement messages are the pages and text blocks that... Full Story