cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1720
Views
0
Helpful
8
Replies

Cisco ASA 5515 two asa firewall ipsec vpn tunnel is not coming up

Hellow Everyone.

 

I have configured ipsec vpn tunneling between singapore and malaysia with asa firewall.

but the vpn is not coming up. can anyone tell me what can be the root of cause?

below are configuration of twa asa's: ( i changed the all ip address)

 

 

Singapore:

 


show run
ASA Version 9.2(2)4
!
hostname ASA5515-SSG520M
enable password PVSASRJovmamnVkD encrypted
names
!
interface GigabitEthernet0/0
 nameif inside
 security-level 100
 ip address 192.168.15.4 255.255.255.0
!
interface GigabitEthernet0/1
 nameif DMZ
 security-level 50
 ip address 192.168.5.3 255.255.255.0
!
interface GigabitEthernet0/2
 nameif outside
 security-level 0
 ip address 160.83.172.8 255.255.255.224
<--- More --->
              
!
<--- More --->
              
interface GigabitEthernet0/3
<--- More --->
              
 shutdown
<--- More --->
              
 no nameif
<--- More --->
              
 no security-level
<--- More --->
              
 no ip address
!
interface GigabitEthernet0/4
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/5
 nameif test
 security-level 100
 ip address 192.168.168.219 255.255.255.0
!
interface Management0/0
 management-only
 nameif management
 security-level 100
 ip address 192.168.1.1 255.255.255.0
!
banner login ^C please Disconnect if you are unauthorized access ^C
banner login please Disconnect if you are unauthorized access
boot system disk0:/asa922-4-smp-k8.bin
ftp mode passive
object network SG
<--- More --->
              
 subnet 192.168.15.0 255.255.255.0
object network MK
 subnet 192.168.6.0 255.255.255.0
object service TCP_5938
 service tcp destination eq 5938
 description Team Viewer
object service tcp_3306
 service tcp destination eq 3306
object service tcp_465
 service tcp destination eq 465
object service tcp_587
 service tcp destination eq 587
object service tcp_995
 service tcp destination eq 995
object service TCP_9000
 service tcp destination eq 9000
object network Inside_host
 host 192.168.15.202
object service tcp_1111
 service tcp destination eq 1111
object service tcp_7878
 service tcp destination eq 7878
object service tcp_5060
 service tcp destination eq sip
<--- More --->
              
object service tcp_5080
 service tcp destination eq 5080
object network NETWORK_OBJ_192.168.15.0_24
 subnet 192.168.15.0 255.255.255.0
access-list inside_access_in extended permit ip object SG any
access-list OUTSIDE_IN extended permit tcp any object Inside_host eq 9000 log
access-list outside_cryptomap extended permit ip 192.168.15.0 255.255.255.0 object MK
pager lines 24
logging enable
logging timestamp
logging buffer-size 30000
logging buffered debugging
logging trap debugging
logging history debugging
logging asdm informational
logging host test 192.168.168.231
logging host test 192.168.168.203
mtu inside 1500
mtu DMZ 1500
mtu outside 1500
mtu test 1500
mtu management 1500
no failover
<--- More --->
              
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-7221.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static SG SG destination static MK MK no-proxy-arp route-lookup
!
object network SG
 nat (inside,outside) dynamic interface
object network Inside_host
 nat (inside,outside) static interface service tcp 9000 9000
access-group inside_access_in in interface inside
access-group OUTSIDE_IN in interface outside
route outside 0.0.0.0 0.0.0.0 160.83.172.x 1
route inside 10.0.1.0 255.255.255.0 192.168.15.199 1
route inside 10.0.2.0 255.255.255.0 192.168.15.199 1
route inside 10.0.11.0 255.255.255.0 192.168.15.199 1
route inside 10.1.0.0 255.255.0.0 192.168.15.199 1
route inside 10.8.0.0 255.255.0.0 192.168.15.199 1
route inside 10.104.0.0 255.255.0.0 192.168.15.199 1
route inside 192.168.8.0 255.255.255.0 192.168.15.199 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
<--- More --->
              
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication ssh console LOCAL
http server enable

snmp-server host test 192.168.168.231 trap community *****
no snmp-server location
no snmp-server contact
snmp-server enable traps syslog
crypto ipsec ikev1 transform-set VPN-TRANSFORM esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
<--- More --->
              
crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS esp-aes esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS esp-aes esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS esp-aes-192 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS esp-aes-192 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS esp-aes-256 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS esp-3des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS esp-3des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac
<--- More --->
              
crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS esp-des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS esp-des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS mode transport
crypto ipsec security-association pmtu-aging infinite
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set ikev1 transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map CRYPTO-MAP 2 match address outside_cryptomap
crypto map CRYPTO-MAP 2 set peer 103.246.3.54
crypto map CRYPTO-MAP 2 set ikev1 transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map CRYPTO-MAP 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map CRYPTO-MAP interface outside
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 10
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400

console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ssl encryption rc4-sha1 aes128-sha1 aes256-sha1 3des-sha1
group-policy GroupPolicy1 internal
group-policy GroupPolicy1 attributes
 vpn-tunnel-protocol ikev1
username admin password eY/fQXw7Ure8Qrz7 encrypted privilege 15
username gmsadmin password sh/VyK0jtJ/PANQT encrypted privilege 15
tunnel-group 143.216.30.7 type ipsec-l2l
tunnel-group 143.216.30.7 general-attributes
 default-group-policy GroupPolicy1
<--- More --->
              
tunnel-group 143.216.30.7 ipsec-attributes
 ikev1 pre-shared-key *****
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  message-length maximum 512
policy-map global_policy
 description global
 class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny  
  inspect sunrpc
<--- More --->
              
  inspect xdmcp
  inspect sip  
  inspect netbios
  inspect tftp
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:ccce9a600b491c8db30143590825c01d
: end

 

 

 

Malaysia:


:
ASA Version 9.2(2)4
!
hostname ASA5515-SSG5-MK
enable password PVSASRJovmamnVkD encrypted
names
!
interface GigabitEthernet0/0
 nameif inside
 security-level 100
 ip address 192.168.6.70 255.255.255.0
!
interface GigabitEthernet0/1
 nameif DMZ
 security-level 50
 ip address 192.168.12.2 255.255.255.0
!
interface GigabitEthernet0/2
 nameif outside
 security-level 0
 ip address 143.216.30.7 255.255.255.248
<--- More --->
              
!
interface GigabitEthernet0/3
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/4
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/5
 nameif test
 security-level 100
 ip address 192.168.168.218 255.255.255.0
!
interface Management0/0
 management-only
 nameif management
 security-level 100
 ip address 192.168.1.1 255.255.255.0
!
<--- More --->
              
interface Port-channel1
 no nameif
 no security-level
 ip address 1.1.1.1 255.255.255.0
!
boot system disk0:/asa922-4-smp-k8.bin
ftp mode passive
clock timezone GMT+8 8
object network SG
 subnet 192.168.15.0 255.255.255.0
object network MK
 subnet 192.168.6.0 255.255.255.0
object service TCP_5938
 service tcp destination eq 5938
 description Team Viewer
object service tcp_3306
 service tcp destination eq 3306
object service tcp_465
 service tcp destination eq 465
object service tcp_587
 service tcp destination eq 587
object service tcp_995
 service tcp destination eq 995
object service TCP_9000
<--- More --->
              
 service tcp destination eq 9000
object network Inside_host
 host 192.168.6.23
object service tcp_1111
 service tcp destination eq 1111
object service tcp_7878
 service tcp destination eq 7878
object service tcp_5060
 service tcp destination eq sip
object service tcp_5080
 service tcp destination eq 5080
object network NETWORK_OBJ_192.168.2.0_24
 subnet 192.168.6.0 255.255.255.0
access-list inside_access_in extended permit ip object SG any
access-list VPN-INTERESTING-TRAFFIC extended permit ip object MK object SG
access-list OUTSIDE_IN extended permit tcp any object Inside_host eq 9000 log
access-list outside_cryptomap extended permit ip 192.168.6.0 255.255.255.0 object SG
pager lines 24
logging enable
logging timestamp
logging buffer-size 30000
logging buffered debugging
logging trap debugging
logging asdm informational
<--- More --->
              
logging host test 192.168.168.231
logging host test 192.168.168.203
mtu inside 1500
mtu DMZ 1500
mtu outside 1500
mtu test 1500
mtu management 1500
ip verify reverse-path interface management
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-7221.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static MK MK destination static SG SG no-proxy-arp route-lookup
nat (inside,outside) source static NETWORK_OBJ_192.168.2.0_24 NETWORK_OBJ_192.168.2.0_24 destination static SG SG no-proxy-arp route-lookup
!
object network MK
 nat (inside,outside) dynamic interface
object network Inside_host
 nat (inside,outside) static interface service tcp 9000 9000
access-group inside_access_in in interface inside
access-group OUTSIDE_IN in interface outside
route outside 0.0.0.0 0.0.0.0 143.216.30.x 1
<--- More --->
              
route inside 10.2.0.0 255.255.0.0 192.168.6.200 1
route inside 10.6.0.0 255.255.0.0 192.168.6.200 1
route inside 192.168.254.0 255.255.255.0 192.168.6.200 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication http console LOCAL
aaa authentication ssh console LOCAL
http server enable

no snmp-server location
no snmp-server contact
crypto ipsec ikev1 transform-set VPN-TRANSFORM esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
<--- More --->
              
crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS esp-aes esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS esp-aes esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS esp-aes-192 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS esp-aes-192 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS esp-aes-256 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS esp-3des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS esp-3des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-3DES-MD5-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac
<--- More --->
              
crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS esp-des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-DES-SHA-TRANS mode transport
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS esp-des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-DES-MD5-TRANS mode transport
crypto ipsec security-association pmtu-aging infinite
crypto map CRYPTO-MAP 2 match address outside_cryptomap
crypto map CRYPTO-MAP 2 set peer 160.83.172.8
crypto map CRYPTO-MAP 2 set ikev1 transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map CRYPTO-MAP interface outside
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 10
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
ssh timeout 60
ssh key-exchange group dh-group1-sha1
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ssl encryption rc4-sha1 aes128-sha1 aes256-sha1 3des-sha1
group-policy DfltGrpPolicy attributes
 vpn-tunnel-protocol ikev1 l2tp-ipsec ssl-clientless
group-policy GroupPolicy1 internal
group-policy GroupPolicy1 attributes
 vpn-tunnel-protocol ikev1
username admin password eY/fQXw7Ure8Qrz7 encrypted privilege 15
username gmsadmin password sh/VyK0jtJ/PANQT encrypted privilege 15
<--- More --->
              
tunnel-group MK-to-SG type ipsec-l2l
tunnel-group MK-to-SG ipsec-attributes
 ikev1 pre-shared-key *****
tunnel-group 160.83.172.8 type ipsec-l2l
tunnel-group 160.83.172.8 general-attributes
 default-group-policy GroupPolicy1
tunnel-group 160.83.172.8 ipsec-attributes
 ikev1 pre-shared-key *****
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  message-length maximum 512
policy-map global_policy
 class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
<--- More --->
              
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny  
  inspect sunrpc
  inspect xdmcp
  inspect sip  
  inspect netbios
  inspect tftp
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:d41d8cd98f00b204e9800998ecf8427e
: end

1 Accepted Solution

Accepted Solutions

Great news, that VPN has been established!

According to ping issue, my suggestion is to check, if some type of host-based firewall on Computers from both sides is blocking ICMP-queries.

Anyway, you can still use packet capture on inside interfaces of both ASAs, to check, if ICMP traffic is reaching the ASA.

 

Also, you can try to enable ICMP inspection:

policy-map global_policy
 class inspection_default

  inspect icmp

  inspect icmp-error

View solution in original post

8 Replies 8

Boris Uskov
Level 4
Level 4

Hello, Jayaratnam.

The very first thing, which I noticed, is incorret ip address in crypto map of Singapore's ASA:
crypto map CRYPTO-MAP 2 set peer 103.246.3.54

It should be
crypto map CRYPTO-MAP 2 set peer 143.216.30.7

One more mistake:

On Malaysia's ASA access-list inside_access_in is incorrect
access-list inside_access_in extended permit ip object SG any

should be
access-list inside_access_in extended permit ip object MK any

Hi Boris,

Thanks for your concern to help me this problem.

actual configuration as below:

 

SG:

 

show run

ASA Version 9.2(2)4
!
hostname ASA5515-SSG520M
enable password PVSASRJovmamnVkD encrypted
names
!
interface GigabitEthernet0/0
 nameif inside
 security-level 100
 ip address 192.168.0.202 255.255.255.0
!
interface GigabitEthernet0/1
 nameif DMZ
 security-level 50
 ip address 192.168.5.3 255.255.255.0
!
interface GigabitEthernet0/2
 nameif outside
 security-level 0
 ip address x.x.x.x
!
interface GigabitEthernet0/3
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/4
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/5
 no nameif
 no security-level
 no ip address
!
interface Management0/0
 management-only
 no nameif
 no security-level
 no ip address
!
banner login ^C please Disconnect if you are unauthorized access ^C
banner login please Disconnect if you are unauthorized access
boot system disk0:/asa922-4-smp-k8.bin
ftp mode passive
object network MK
 subnet 192.168.2.0 255.255.255.0
object network SG
 subnet 192.168.0.0 255.255.255.0
access-list VPN-INTERESTING-TRAFIC extended permit ip object SG object MK
access-list inside_access_in extended permit ip any any
access-list outside_access_in extended permit ip any any
pager lines 24
logging enable
logging timestamp
logging buffer-size 30000
logging buffered debugging
logging trap debugging
logging history debugging
logging asdm informational
mtu inside 1500
mtu DMZ 1500
mtu outside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-7221.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static SG SG destination static MK MK no-proxy-arp route-lookup
access-group inside_access_in in interface inside
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 x.x.x.x 1
route inside 10.0.1.0 255.255.255.0 192.168.0.199 1
route inside 10.0.2.0 255.255.255.0 192.168.0.199 1
route inside 10.0.11.0 255.255.255.0 192.168.0.199 1
route inside 10.1.0.0 255.255.0.0 192.168.0.199 1
route inside 10.8.0.0 255.255.0.0 192.168.0.199 1
route inside 10.104.0.0 255.255.0.0 192.168.0.199 1
route inside 192.168.8.0 255.255.255.0 192.168.0.199 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication ssh console LOCAL
http server enable
http 0.0.0.0 0.0.0.0 outside
http 0.0.0.0 0.0.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps syslog
crypto ipsec ikev1 transform-set VPN-TRANSFORM esp-aes-256 esp-sha-hmac
crypto ipsec security-association pmtu-aging infinite
crypto map CRYPTO-MAP 1 match address VPN-INTERESTING-TRAFIC
crypto map CRYPTO-MAP 1 set pfs
crypto map CRYPTO-MAP 1 set peer x.x.x.x
crypto map CRYPTO-MAP 1 set ikev1 transform-set VPN-TRANSFORM
crypto map CRYPTO-MAP interface outside
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 10
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
telnet 0.0.0.0 0.0.0.0 inside
<--- More --->
              
telnet timeout 5
no ssh stricthostkeycheck
ssh 0.0.0.0 0.0.0.0 inside
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 60
ssh key-exchange group dh-group1-sha1
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ssl encryption rc4-sha1 aes128-sha1 aes256-sha1 3des-sha1
username admin password eY/fQXw7Ure8Qrz7 encrypted privilege 15
username gmsadmin password sh/VyK0jtJ/PANQT encrypted privilege 15
tunnel-group x.x.x.x type ipsec-l2l
tunnel-group x.x.x.x ipsec-attributes
 ikev1 pre-shared-key *****
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  message-length maximum 512
policy-map global_policy
 description global
 class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny  
  inspect sunrpc
  inspect xdmcp
  inspect sip  
  inspect netbios
  inspect tftp
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:394b5669133bf313bc7427439e31ef17          
: end
 

 

Malaysia:

 


show run

ASA Version 9.2(2)4
!
hostname ASA5515-SSG5-MK
enable password PVSASRJovmamnVkD encrypted
names
!
interface GigabitEthernet0/0
 nameif inside
 security-level 100
 ip address 192.168.2.23 255.255.255.0
!
interface GigabitEthernet0/1
 nameif DMZ
 security-level 50
 ip address 192.168.12.2 255.255.255.0
!
interface GigabitEthernet0/2
 nameif outside
 security-level 0
 ip address x.x.x.x  
interface GigabitEthernet0/3
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/4
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet0/5
 no nameif
 security-level 100
 no ip address
!
interface Management0/0
 management-only
 no nameif
 security-level 100
 no ip address
!
interface Port-channel1
 no nameif
 no security-level
 ip address 1.1.1.1 255.255.255.0
!
boot system disk0:/asa922-4-smp-k8.bin
ftp mode passive
object network MK
 subnet 192.168.2.0 255.255.255.0
object network SG
 subnet 192.168.0.0 255.255.255.0
access-list VPN-INTERESTING-TRAFIC extended permit ip object MK object SG
access-list inside_access_in extended permit ip any any
access-list outside_access_in extended permit ip any any
pager lines 24
logging enable
logging timestamp
logging buffer-size 30000
logging buffered debugging
logging trap debugging
logging asdm informational
mtu inside 1500
mtu DMZ 1500
mtu outside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-7221.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static MK MK destination static SG SG no-proxy-arp route-lookup
access-group inside_access_in in interface inside
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 x.x.x.x 1
route inside 10.2.0.0 255.255.0.0 192.168.2.200 1
route inside 10.6.0.0 255.255.0.0 192.168.2.200 1
route inside 192.168.254.0 255.255.255.0 192.168.2.200 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication http console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 0.0.0.0 0.0.0.0 inside
http 0.0.0.0 0.0.0.0 outside
no snmp-server location
no snmp-server contact
crypto ipsec ikev1 transform-set VPN-TRANSFORM esp-aes-256 esp-sha-hmac
crypto ipsec security-association pmtu-aging infinite
crypto map CRYPTO-MAP 1 match address VPN-INTERESTING-TRAFIC
crypto map CRYPTO-MAP 1 set pfs
crypto map CRYPTO-MAP 1 set peer x.x.x.x
crypto map CRYPTO-MAP 1 set ikev1 transform-set VPN-TRANSFORM
crypto map CRYPTO-MAP interface outside
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 10
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
telnet 0.0.0.0 0.0.0.0 inside
telnet timeout 5
no ssh stricthostkeycheck
ssh 0.0.0.0 0.0.0.0 inside
ssh 0.0.0.0 0.0.0.0 outside
ssh timeout 60
ssh key-exchange group dh-group1-sha1
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ssl encryption rc4-sha1 aes128-sha1 aes256-sha1 3des-sha1
username admin password eY/fQXw7Ure8Qrz7 encrypted privilege 15
username gmsadmin password sh/VyK0jtJ/PANQT encrypted privilege 15
tunnel-group x.x.x.x type ipsec-l2l
tunnel-group x.x.x.x ipsec-attributes
 ikev1 pre-shared-key *****
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  message-length maximum 512
policy-map global_policy
 class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny  
  inspect sunrpc
  inspect xdmcp
  inspect sip  
  inspect netbios
  inspect tftp
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:2548aae9aa376b2a1d875a41aac47a53
: end

 

 

 

Please let me know there is any wrong???

Now it seems, that configuration is OK to build VPN-tunnel.

Please, post the outputs from both ASAs of following command:

show crypto isakmp sa

show crypto ipsec sa

Don't forget to clean out real IP-addresses.

 

By the way, confirm please, that the IP address in crypto map sentence on SG ASA is equal to outside's interface IP address on MK ASA.

And IP address in crypto map sentence on MK ASA equal to outside's interface IP address on SG ASA.

"tunnel-group x.x.x.x" should also match IP addresses of remote sites.

Hi,

ip address, crypto map and tunnel-group are configured correctly.

anyhow the output of the show config are belows:

 

show crypto isakmp sa

There are no IKEv1 SAs

There are no IKEv2 SAs

 

 

show crypto ipsec sa

There are no ipsec sas

 

I can not able find any root cause to solve this problem.

 

did I missed anything?

Hello, I don't see any error in configuration, which can prevent VPN from being established.

Let's try to check some more things:

1) post, please, the output of show version. I want to be sure, that 3DES/AES license is enabled.

2) post, please, the output of show runn all sysopt. I want to check 
sysopt connection permit-vpn

 

Explain, please, how you test VPN. To establish the VPN tunnel, you need to generate interesting traffic. So, for example, you need to ping from net 192.168.0.0/24 (SG) some host on 192.168.2.0/24 (MK) or vice a verse. Be sure, that packets from 192.168.0.0/24 reach the inside interface of ASA SG when they have destination address from 192.168.2.0/24. Be sure, that packets from 192.168.2.0/24 reach the inside interface of ASA MK.

To check, if packets reach the interface, you can use packet capture. For example, on ASA SG:

capture TEST interface inside match ip 192.168.0.0 255.255.255.0 192.168.2.0 255.255.255.0

show capture TEST

Hi Boris,

 

Thank you for to try to figure out the problem. I have fixed the Problem myself.

I did some changes in my configuration and add the tunnel group policy

added:

dynamic-access-policy-record GroupPolicy1

group-policy GroupPolicy1 internal
group-policy GroupPolicy1 attributes
 vpn-tunnel-protocol ikev1

 

tunnel-group x.x.x.x type ipsec-l2l
tunnel-group x.x.x.x general-attributes
 default-group-policy GroupPolicy1

 

removed:

crypto map CRYPTO-MAP 1 set pfs

 

my output

show crypto isakmp sa

IKEv1 SAs:

   Active SA: 1
    Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1

1   IKE Peer: x.x.x.x
    Type    : L2L             Role    : initiator
    Rekey   : no              State   : MM_ACTIVE

There are no IKEv2 SAs

 

 

show crypto ipsec sa
interface: outside
    Crypto map tag: CRYPTO-MAP, seq num: 1, local addr: x.x.x.x

      access-list VPN-INTERESTING-TRAFIC extended permit ip 192.168.0.0 255.255.255.0 192.168.2.0 255.255.255.0
      local ident (addr/mask/prot/port): (192.168.0.0/255.255.255.0/0/0)
      remote ident (addr/mask/prot/port): (192.168.2.0/255.255.255.0/0/0)
      current_peer: x.x.x.x


      #pkts encaps: 325, #pkts encrypt: 325, #pkts digest: 325
      #pkts decaps: 310, #pkts decrypt: 310, #pkts verify: 310
      #pkts compressed: 0, #pkts decompressed: 0
      #pkts not compressed: 325, #pkts comp failed: 0, #pkts decomp failed: 0
      #pre-frag successes: 0, #pre-frag failures: 0, #fragments created: 0
      #PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0
      #TFC rcvd: 0, #TFC sent: 0
      #Valid ICMP Errors rcvd: 0, #Invalid ICMP Errors rcvd: 0
      #send errors: 0, #recv errors: 0

      local crypto endpt.: x.x.x.x/0, remote crypto endpt.: x.x.x.x/0
      path mtu 1500, ipsec overhead 74(44), media mtu 1500
      PMTU time remaining (sec): 0, DF policy: copy-df
      ICMP error validation: disabled, TFC packets: disabled
      current outbound spi: 9B5842C4
      current inbound spi : 45AC2175

    inbound esp sas:
      spi: 0x45AC2175 (1168908661)
         transform: esp-aes-256 esp-sha-hmac no compression
         in use settings ={L2L, Tunnel, IKEv1, }
         slot: 0, conn_id: 114688, crypto-map: CRYPTO-MAP
         sa timing: remaining key lifetime (kB/sec): (4373981/26766)
         IV size: 16 bytes
         replay detection support: Y
         Anti replay bitmap:
          0xEFFFFFFF 0xFEFFFF7F
    outbound esp sas:
      spi: 0x9B5842C4 (2606252740)
         transform: esp-aes-256 esp-sha-hmac no compression
         in use settings ={L2L, Tunnel, IKEv1, }
         slot: 0, conn_id: 114688, crypto-map: CRYPTO-MAP
         sa timing: remaining key lifetime (kB/sec): (4373980/26766)
         IV size: 16 bytes
         replay detection support: Y
         Anti replay bitmap:
          0x00000000 0x00000001

 

 

 

anyhow still I cannot able to ping local_inside to remote_inside?

do you have any idea about that???

Great news, that VPN has been established!

According to ping issue, my suggestion is to check, if some type of host-based firewall on Computers from both sides is blocking ICMP-queries.

Anyway, you can still use packet capture on inside interfaces of both ASAs, to check, if ICMP traffic is reaching the ASA.

 

Also, you can try to enable ICMP inspection:

policy-map global_policy
 class inspection_default

  inspect icmp

  inspect icmp-error

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: