Menu Title

Configure Site to Site IPSec VPN Tunnel between Cisco Router and Paloalto Firewall

One end of IPSec tunnel is a Paloalto Firewall with Static Public IP address and the other end is Cisco router with Dynamic IP address and behind an Internet modem. For the purpose of this article, is considered as Static Public IP configured at Paloalto Firewall.

Configure Cisco Router

1.Configure ISAKMP (IKE) - Phase 1

ISAKMP is defined globally, that means if we have different ISKAMP Phase 1 policies configured, when router tries to negotiate SA with remote site, it will send all those ISKAMP policies and use the first one that matches both ends.

(config)# crypto isakmp policy 1
(config-isakmp)# encr 3des
(config-isakmp)# hash md5
(config-isakmp)# authentication pre-share
(config-isakmp)# group 2

By default, ISAKMP lifetime is 86400 seconds.

2.Configure Preshared Key

(config)#crypto isakmp key s@l@l@h11 address

where is the public IP address of the remote peer and s@1@1@h11 is the preshared key being used when Cisco router is trying to establish VPN connection with Paloalto peer device.

3.Configure IPSEC - Phase 2

(config)# crypto ipsec transform-set itadminguide-set esp-3des esp-md5-hmac

where itadminguide-set is a user firendly transform-set name, it can be any preferred name.

4.Configure ACL

(config)# access-list 100 permit ip

IP subnet presents at Cisco Router LAN end and is at Paloalto LAN.

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month

5.Configure Crypto map

Crypto map connects the previously defined ISAKMP and IPSec configuration together

(config)#crypto map itadminguide-cryptomap 10 ipsec-isakmp
% NOTE: This new crypto map will remain disabled until a peer and a valid access list have been configured.
(config-crypto-map)#set peer
(config-crypto-map)#set transform-set itadminguide-set
(config-crypto-map)#set isakmp-profile R2_ISAKMP_PROF
(config-crypto-map)#match address 100

6.Configure Key

(config)#crypto keyring KEYR1
(conf-keyring)#pre-shared-key address key s@l@l@h11

(config)#crypto isakmp profile R2_ISAKMP_PROF
% A profile is deemed incomplete until it has match identity statements
(conf-isa-prof)#keyring KEYR1
(conf-isa-prof)#self-identity user-fqdn
(conf-isa-prof)#match identity address
(conf-isa-prof)#initiate mode aggressive

7.Apply crypto map to Public Interface or VLAN

(config)#interface vlan 2
(config-if)#crypto map itadminguide-cryptomap

8.Create NAT and ACL Policy

ip nat inside source list 101 interface Vlan2 overload
ip route

access-list 101 deny   ip
access-list 101 permit ip any
Download complete Cisco Router configuration in plain text.  2.8 KB


Configure Paloalto Firewall

1.Configure IPSec Phase 1
Go to Network > Network Profiles > IKE Crypto and create IKE Crypto

HostGator $2.75 per month
24/7/365 Technical Support, Free Site Building Tools, 4500 Website Templates, Free Shopping Cart Software, Ideal for WordPress, 45 Day Money Back Guarantee

2. Configure IPSec Phase 2.
Go to Network > Network Profiles > IPSec Crypto and create IPSec Crypto

3. Configure IKE Gateway
Go to Network > Network Profiles > IKE Gateways

Configure Aggressive Mode in IKE Gateway Settings

4. Configure IPSec Tunnel
Go To Network > IPSec Tunnel


5. Configure Security Policy
Go to Policies > Security

6. Configure Virtual Router

7. Permit IKE traffic on Outside Interface
Navigate to Policies > Security
Finally, you need to open IKE (port 500) on outside interface for peer IP to establish IPSec Tunnel.

Related Post