Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASA 5505 VPN site-to-site 1

Status
Not open for further replies.
The wizard works imo good. It should be enough. But there is alot of other things that can mess upp the tunnel. Are both firewalls cisco?
 
Post your full scrubbed configs from both devices

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Location A - WAN IP : 89.xxx.xxx.11, LAN subnet: 192.168.4.0

Location B - WAN IP : 213.xxx.xxx.210, LAN subnet: 192.168.8.0



Location A:
-----------

ASA Version 7.2(2)
!
hostname LocationA
domain-name default.domain.invalid
enable password ymT6IHV7OKtQDSqg encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.4.1 255.255.255.0
ospf cost 10
!
interface Vlan2
nameif outside
security-level 0
ip address 89.xxx.xxx.11 255.255.0.0
ospf cost 10
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
passwd ymT6IHV7OKtQDSqg encrypted
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
access-list outside extended permit icmp any any echo-reply
access-list outside extended permit icmp any any time-exceeded
access-list outside extended permit icmp any any unreachable
access-list outside extended permit ip 192.168.0.0 255.255.255.0 192.168.4.0 255.255.255.0
access-list inside extended permit ip any any
access-list inside extended permit udp any any
access-list 101 extended permit ip 192.168.4.0 255.255.255.0 192.168.0.0 255.255.255.0
access-list 102 extended permit ip 192.168.4.0 255.255.255.0 192.168.0.0 255.255.255.0
access-list 102 extended permit ip 192.168.4.0 255.255.255.0 10.1.1.0 255.255.255.0
access-list 102 extended permit ip 192.168.0.0 255.255.255.0 host 213.xxx.xxx.255
access-list DMZ_access_in extended permit udp any any inactive
access-list DMZ_access_in extended permit tcp any any inactive
access-list DMZ_access_in extended permit ip any any log inactive
access-list DMZ_access_in extended permit icmp any any inactive
access-list DMZ_access_out extended permit tcp any any inactive
access-list DMZ_access_out extended permit ip any any inactive
access-list DMZ_access_out extended permit udp any any inactive
access-list DMZ_access_out extended permit icmp any any inactive
access-list inside_access_out extended permit ip any any
access-list inside_access_out extended permit udp any any
access-list inside_access_out extended permit tcp any any
access-list Retcom_access_in extended permit ip any any inactive
access-list inside_access_out_1 extended permit udp any any
access-list 103 extended permit ip 192.168.4.0 255.255.255.0 10.1.1.0 255.255.255.0
access-list outside_40_cryptomap extended permit ip 192.168.0.0 255.255.255.0 host 213.xxx.xxx.255
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool vpnpool1 192.168.0.10-192.168.0.200
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-522.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list 102
nat (inside) 1 192.168.4.0 255.255.255.0
access-group inside in interface inside
access-group outside in interface outside
route outside 0.0.0.0 0.0.0.0 89.xxx.xxx.1 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 uauth 0:05:00 absolute
group-policy companyx internal
group-policy companyx attributes
vpn-idle-timeout 30
split-tunnel-policy tunnelspecified
split-tunnel-network-list value 101
default-domain value companyx.si
username useradmin password 2An3NnzH6J9XXKex encrypted
http server enable
http 0.0.0.0 0.0.0.0 inside
http 192.168.1.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 trmset1 esp-aes-256 esp-sha-hmac
crypto ipsec transform-set my-set esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto dynamic-map map2 10 set transform-set trmset1
crypto dynamic-map map2 10 set reverse-route
crypto map map1 10 ipsec-isakmp dynamic map2
crypto map map1 20 match address 103
crypto map map1 20 set peer 193.xxx.xxx.50
crypto map map1 20 set transform-set trmset1
crypto map map1 40 match address outside_40_cryptomap
crypto map map1 40 set pfs
crypto map map1 40 set peer 213.xxx.xxx.210
crypto map map1 40 set transform-set ESP-DES-SHA
crypto map map1 interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption aes-256
hash sha
group 2
lifetime 86400
crypto isakmp policy 30
authentication pre-share
encryption des
hash sha
group 2
lifetime 86400
crypto isakmp nat-traversal 20
tunnel-group DefaultRAGroup general-attributes
address-pool (outside) vpnpool1
tunnel-group companyx type ipsec-ra
tunnel-group companyx general-attributes
address-pool vpnpool1
default-group-policy companyx
tunnel-group companyx ipsec-attributes
pre-shared-key *
tunnel-group 193.xxx.xxx.50 type ipsec-l2l
tunnel-group 193.xxx.xxx.50 ipsec-attributes
pre-shared-key *
tunnel-group 213.xxx.xxx.210 type ipsec-l2l
tunnel-group 213.xxx.xxx.210 ipsec-attributes
pre-shared-key *
telnet 192.168.4.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.4.234 255.255.255.255 inside
ssh 193.xxx.xxx.71 255.255.255.255 outside
ssh timeout 5
console timeout 0
dhcpd dns 84.xxx.xxx.12 84.xxx.xxx.13
!

!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
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 pptp
!
service-policy global_policy global
tftp-server inside 192.168.4.110 C:\
prompt hostname context
Cryptochecksum:3f718fe2fcd7302e33fc8090fab21073
: end




Location B:
-----------

Result of the command: "sh runn"

: Saved
:
ASA Version 7.2(3)
!
hostname LocationB
domain-name default.domain.invalid
enable password 1K2oIYvXKgScGpA9 encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.8.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
passwd ywL5eNY/yDiP2dof encrypted
ftp mode passive
dns domain-lookup outside
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit intra-interface
access-list inside_access_out extended permit ip any any
access-list outside_access_out extended permit ip any any
access-list outside_access_in extended permit ip any any
access-list outside_access_in extended permit tcp any interface outside eq www
access-list outside_access_in extended permit tcp any interface outside eq 55512
access-list outside_1_cryptomap extended permit ip host 192.168.8.0 host 89.xxx.xxx.255
access-list inside_nat0_outbound extended permit ip host 192.168.8.0 host 89.xxx.xxx.255
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-523.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface 55512 192.168.8.10 55512 netmask 255.255.255.255
access-group inside_access_out out interface inside
access-group outside_access_in in interface outside
access-group outside_access_out out interface outside
route inside 192.168.0.0 255.255.0.0 192.168.8.1 1
route outside 0.0.0.0 0.0.0.0 213.xxx.xxx.1 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 uauth 0:05:00 absolute
http server enable
http 192.168.8.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-DES-SHA esp-des esp-sha-hmac
crypto map outside_map 1 match address outside_1_cryptomap
crypto map outside_map 1 set pfs
crypto map outside_map 1 set peer 89.xxx.xxx.11
crypto map outside_map 1 set transform-set ESP-DES-SHA
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption des
hash sha
group 2
lifetime 86400
telnet 192.168.8.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.8.10 255.255.255.255 inside
ssh timeout 5
console timeout 0
dhcp-client client-id interface outside
dhcpd auto_config outside
!
dhcpd address 192.168.8.80-192.168.8.89 inside
dhcpd enable inside
!

!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
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
!
service-policy global_policy global
tftp-server inside 192.168.8.10 C:\TFTP-Root
username asa9 password 9UIVSWIp7g..yY9. encrypted
tunnel-group 89.xxx.xxx.11 type ipsec-l2l
tunnel-group 89.xxx.xxx.11 ipsec-attributes
pre-shared-key *
prompt hostname context
Cryptochecksum:511749d57394148040d02105885abd60
: end
 
The ACL's are there; they just are not correct. Also as boymarty pointed out, you will need to use A as the easyvpn server. There is no way around it for the dynamic address.

Your site A nat0 and interesting traffic maps need to be exact mirror images on site B.

Site A
access-list siteB_vpn_traffic extended permit ip 192.168.4.0 255.255.255.0 192.168.8.0 255.255.255.0
access-list vpn_nat_exempt extended permit ip 192.168.4.0 255.255.255.0 192.168.8.0 255.255.255.0 - site B vpn
access-list vpn_nat_exempt extended permit ip 192.168.4.0 255.255.255.0 192.168.0.0 255.255.255.0 - RA vpn


Now for this -

crypto map map1 10 ipsec-isakmp dynamic map2
crypto map map1 20 match address 103
crypto map map1 20 set peer 193.xxx.xxx.50
crypto map map1 20 set transform-set trmset1
crypto map map1 40 match address outside_40_cryptomap
crypto map map1 40 set pfs
crypto map map1 40 set peer 213.xxx.xxx.210
crypto map map1 40 set transform-set ESP-DES-SHA

You will need to fix the crypto maps as well. The ACL should include the destination internal ip scheme not the external address. That's what the "set peer" statement is for. You will also want to change the order of the crypto map so that the dynamic is the last entry - the first policy that matches gets used adn you want yout L2Ls to always take precedence.

Really go through the link that Marty posted. That will get you up and running. My recommendation is to blow it all away and start over.



Brent
Systems Engineer / Consultant
CCNP, CCSP
 
Hi, thanks for reply

Location B has static address. I know it doesn't like it :)

I'll try both scenarios, tnx again
 
boymarty24,

As you suggested I've setup ASA (at location B) as VPN Hardware Client - client mode, and it works :)

But I can't get it working as NEM (Network Extension Mode), because I'd like to use IP SoftPhone/IP Phone (Avaya - H.323) connected to Avaya PBX at location A, since Location A needs to see Location B subnet.

Am I missing something ?

Syslog messages when connected in NEM mode:

4|Jan 26 2009|21:35:05|713903|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Error: Unable to remove PeerTblEntry
3|Jan 26 2009|21:35:05|713902|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Removing peer from peer table failed, no match!
5|Jan 26 2009|21:35:05|111008|||User 'Easy VPN Dynamic Configurator' executed the 'clear configure crypto map _vpnc_cm' command.
5|Jan 26 2009|21:35:05|111008|||User 'Easy VPN Dynamic Configurator' executed the 'clear configure tunnel-group' command.
5|Jan 26 2009|21:35:05|713050|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Connection terminated for peer 89.xxx.xxx.11. Reason: Peer Terminate Remote Proxy N/A, Local Proxy N/A
6|Jan 26 2009|21:35:04|713172|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Automatic NAT Detection Status: Remote end is NOT behind a NAT device This end is NOT behind a NAT device
5|Jan 26 2009|21:35:04|713041|||IP = 89.xxx.xxx.11, IKE Initiator: New Phase 1, Intf NP Identity Ifc, IKE Peer 89.xxx.xxx.11 local Proxy Address 213.xxx.xxx.210, remote Proxy Address 89.xxx.xxx.11, Crypto map (_vpnc_cm)
4|Jan 26 2009|21:35:04|713903|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Error: Unable to remove PeerTblEntry
3|Jan 26 2009|21:35:04|713902|||Group = 89.xxx.xxx.11, IP = 89.xxx.xxx.11, Removing peer from peer table failed, no match!
5|Jan 26 2009|21:35:04|111008|||User 'Easy VPN Dynamic Configurator' executed the 'clear configure crypto map _vpnc_cm' command.
5|Jan 26 2009|21:35:04|111008|||User 'Easy VPN Dynamic Configurator' executed the 'clear configure tunnel-group' command.


New config (at location B):

ciscoasa# sh runn
: Saved
:
ASA Version 7.2(3)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password 1K2oIYvXKgScGpA9 encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.8.1 255.255.255.0
ospf cost 10
!
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
ospf cost 10
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
passwd ywL5eNY/yDiP2dof encrypted
ftp mode passive
dns domain-lookup outside
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit intra-interface
access-list inside_access_out extended permit ip any any
access-list outside_access_out extended permit ip any any
access-list outside_access_in extended permit ip any any
access-list outside_access_in extended permit tcp any interface outside eq www
access-list outside_access_in extended permit tcp any interface outside eq 55512
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-523.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface 55512 192.168.8.10 55512 netmask 255.255.255.255
access-group inside_access_out out interface inside
access-group outside_access_in in interface outside
access-group outside_access_out out interface outside
route outside 0.0.0.0 0.0.0.0 213.xxx.xxx.1 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 uauth 0:05:00 absolute
http server enable
http 192.168.8.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 192.168.8.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.8.10 255.255.255.255 inside
ssh timeout 5
console timeout 0
dhcp-client client-id interface outside
dhcpd auto_config outside
!
dhcpd address 192.168.8.80-192.168.8.89 inside
dhcpd enable inside
!
vpnclient server 89.xxx.xxx.11
vpnclient mode client-mode
vpnclient vpngroup admingroup password ********
vpnclient username admin password ********
vpnclient enable
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
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
!
service-policy global_policy global
tftp-server inside 192.168.8.10 C:\TFTP-Root
username asa9 password 9UIVSWIp7g..yY9. encrypted
prompt hostname context
Cryptochecksum:ed40765f537bd9a53102a30a2f0ed1cb
: end


 
No need for NEM, when using IP SoftPhone (with VPN software Client) it worked without problems :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top