• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1278
  • Last Modified:

Site-2-Site VPN between ASA 5505 and draytek, cant reach public ip from draytek when i'm in the ASA network

Hello,

i have a strange problem. I've set up a VPN connection between a Cisco ASA 5505 and a draytek router. Everythin is working ok at least of this:

When i'm behind the Cisco ASA i cannot reach the external IP (public IP) of the draytek. I recieve an error:

Type - VPN --> Subtype - encrypt --> Action - Drop

When i do a TCP traceroute.

What did i do wrong?

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.08.23 14:13:13 =~=~=~=~=~=~=~=~=~=~=~=

: Saved
:
ASA Version 8.2(5) 
!
domain-name rienksbm.local
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 172.16.100.0 draytek-network
!
interface Ethernet0/0
 switchport access vlan 2
!
interface Ethernet0/1
 shutdown
!
interface Ethernet0/2
 shutdown
!
interface Ethernet0/3
 shutdown
!
interface Ethernet0/4
 shutdown
<--- More --->
              
!
interface Ethernet0/5
 shutdown
!
interface Ethernet0/6
 shutdown
!
interface Ethernet0/7
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.4.1 255.255.255.0 
!
interface Vlan2
 nameif internet
 security-level 0
 ip address *.*.*.* 255.255.255.248 
!
ftp mode passive
clock timezone CEST 1
clock summer-time CEDT recurring last Sun Mar 2:00 last Sun Oct 3:00
dns server-group DefaultDNS
 domain-name **************


access-list internet_access_in extended permit icmp any any echo-reply 
access-list internet_access_in extended permit icmp any any unreachable 
access-list internet_access_in extended permit icmp any any time-exceeded 
access-list internet_access_in extended permit ip draytek-network 255.255.255.0 192.168.4.0 255.255.255.0 
access-list internet_1_cryptomap extended permit ip 192.168.4.0 255.255.255.0 draytek-network 255.255.255.0 
access-list inside_nat0_outbound extended permit ip 192.168.4.0 255.255.255.0 draytek-network 255.255.255.0 
access-list inside_access_in extended permit ip 192.168.4.0 255.255.255.0 draytek-network 255.255.255.0 
access-list inside_access_in extended permit ip any any 
pager lines 24
logging enable
logging asdm notifications
mtu inside 1500
mtu internet 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (internet) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
access-group inside_access_in in interface inside
access-group internet_access_in in interface internet
route internet 0.0.0.0 0.0.0.0 87.215.130.113 1
timeout xlate 3:00:00
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
aaa authentication ssh console LOCAL 
http server enable 8443
http server idle-timeout 15
http 192.168.4.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac 
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac 
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac 
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac 
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac 
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac 
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac 
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac 
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac 
         

crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac 
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto map internet_map 1 match address internet_1_cryptomap
crypto map internet_map 1 set connection-type answer-only
crypto map internet_map 1 set peer *.*.*.* 
crypto map internet_map 1 set transform-set ESP-3DES-MD5
crypto map internet_map interface internet
crypto isakmp enable internet
crypto isakmp policy 10
 authentication pre-share
 encryption 3des
 hash md5
 group 2
 lifetime 86400
telnet timeout 5
ssh 192.168.4.0 255.255.255.0 inside
ssh timeout 15
ssh version 2
console timeout 0
dhcpd dns 8.8.8.8 interface inside
<--- More --->
              
!

threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ntp server 193.79.237.14 source internet prefer
ntp server 193.67.79.202 source internet
webvpn
username admin password 4SZYTvE5FACoOaFz encrypted privilege 15
tunnel-group 87.251.45.46 type ipsec-l2l
tunnel-group 87.251.45.46 ipsec-attributes
 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:a5fe27f5471b9af6b1e7f07c9f419099

Open in new window

0
computication
Asked:
computication
  • 4
1 Solution
 
Pete LongConsultantCommented:
try adding

policy-map global_policy
 class inspection_default
   inspect icmp
0
 
computicationAuthor Commented:
Thanks for your reply but nothing is changed. I've added soms screenshots so you can see what happens.

As you can see, when i try to reach the external IP it gives me the error when i try to connect trough the VPN tunnel is works well.

From another location i can reach the external IP of the draytek. No firewall issue over there.
01-Error.png
02-no-error.PNG
0
 
computicationAuthor Commented:
I've found another error message when i try to connect to the external IP of the draytek:

3    Aug 23 2012	17:47:13	   IKE Initiator unable to find policy: Intf inside, Src: 87.215.130.115, Dst: 87.251.45.46

Open in new window

0
Rewarding opportunities for women in IT

Across the nation, technology jobs are vacant because there aren’t enough qualified professionals to fill them. With a degree from WGU, you can get the credentials it takes to become an in-demand IT professional. Plus, WGU’s IT programs include industry certifications.

 
fgasimzadeCommented:
I think you need to add dreytek public IP address to your cryptomap and nat exempt
0
 
computicationAuthor Commented:
I tried but it didn't worked..

I don't know why, because it worked for a long time..

I removed the whole vpn configuration from the ASA and reconfigured it, after that it worked fine. Configuration looks the same for me but it works ok now.
0
 
computicationAuthor Commented:
It was going wrong somewhere in the NAT configuration. I couldn't solve it so i tried a reconfiguration, that seems to work for now.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now