We help IT Professionals succeed at work.
Get Started

Cisco VPN with ASA5505 and PIX506E

gabos_denes
gabos_denes asked
on
1,491 Views
Last Modified: 2008-10-23
Hello
I have to configure a vpn between a CISCO ASA5505 and PIX506E. I''ve done some research on the net and configured the vpn to some extent. My vpn is up but I cannot ping the other side of the vpn. My network looks like this:
On the cisco asa5505 external ip 81.196.151.170, internal ip 192.168.2.1
On the cisco pix 506e external ip: 195.225.64.6, internal ip 192.168.1.1
In front of the cisco asa5505 i have a linux server. Using tcpdump i came to the conclusion that when I send a ping to the other end(192.168.1.1) the packet does not go through the tunnel. I have no experience in configuring cisco routers but i have good knowledge on linux networking.
I should mention that there was a vpn configured between the two routers and I made my configuration on top of that using this link: http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a00805c5ad9.shtml
The previous ip address of the pix506e was 82.76.17.127 so it shows up on the configuration.
After configuring the vpn all the unnecessary configuration has to be removed.
Here is the configuration of the ASA5505:
ciscoasa(config)# sh run
: Saved
:
ASA Version 7.2(3) 
!
hostname ciscoasa
domain-name default.domain.invalid
enable password fXX82h2lCH4Xtjpp encrypted
names
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.2.1 255.255.255.0 
!
interface Vlan2
 nameif outside
 security-level 0
 ip address 81.196.151.170 255.255.255.0 
!
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 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
dns server-group DefaultDNS
 domain-name default.domain.invalid
access-list ssh extended permit ip host 195.225.64.6 host 82.76.17.127 
access-list vpn_traffic extended permit ip 192.168.2.0 255.255.255.0 192.168.1.0 255.255.255.0 
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit any inside
icmp permit any outside
asdm image disk0:/asdm-523.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list vpn_traffic
nat (inside) 1 192.168.2.0 255.255.255.0
access-group ssh in interface outside
route outside 0.0.0.0 0.0.0.0 81.196.151.161 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
aaa authentication ssh console LOCAL 
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set PORTAL esp-3des esp-sha-hmac 
crypto map static 10 match address vpn_traffic
crypto map static 10 set peer 195.225.64.6 
crypto map static 10 set transform-set PORTAL
crypto map static interface outside
crypto isakmp identity address 
crypto isakmp enable outside
crypto isakmp policy 10
 authentication pre-share
 encryption des
 hash md5
 group 2
 lifetime 8640
crypto isakmp nat-traversal  10
telnet timeout 5
ssh 192.168.2.0 255.255.255.0 inside
ssh 195.225.64.6 255.255.255.255 outside
ssh 89.137.14.129 255.255.255.255 outside
ssh 89.137.17.237 255.255.255.255 outside
ssh timeout 60
ssh version 2
console timeout 0
management-access inside
dhcpd dns 4.2.2.2
dhcpd wins 192.168.1.2
dhcpd auto_config outside
!
dhcpd address 192.168.2.2-192.168.2.20 inside
dhcpd wins 192.168.1.2 interface 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
username portal password lkzHotDKgBQnMeX6 encrypted
tunnel-group 195.225.64.6 type ipsec-l2l
tunnel-group 195.225.64.6 ipsec-attributes
 pre-shared-key *
prompt hostname context 
 
 
 
Here is the PIX506E configuration:
 
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password fXX82h2lCH4Xtjpp encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname portalPIX
domain-name blablabla.com
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names         
name 192.168.1.2 fileserver
name 192.168.1.3 mailserver
name 195.225.64.6 portal
access-list acl_out permit tcp any host portal eq www 
access-list acl_out permit tcp any host portal eq https 
access-list acl_out permit tcp any host portal eq smtp 
access-list acl_out permit icmp any any 
access-list acl_out deny tcp host 195.225.64.122 host portal eq 20022 
access-list acl_out permit tcp host 89.137.17.237 interface outside 
access-list acl_out permit udp host 82.76.17.127 interface outside 
access-list acl_out permit tcp host 78.96.155.223 interface outside 
access-list acl_out permit udp any host portal eq 11194 
access-list acl_out permit udp host 82.79.151.202 interface outside 
access-list acl_out permit tcp host 82.79.151.202 interface outside 
access-list acl_out permit udp 81.196.151.160 255.255.255.224 interface outside 
access-list acl_out permit tcp 81.196.151.160 255.255.255.224 interface outside 
access-list 110 permit ip 192.168.1.0 255.255.255.0 192.168.10.0 255.255.255.0 
access-list nonat permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0 
access-list 150 permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0 
pager lines 24
logging on
logging timestamp
logging standby
logging buffered debugging
logging trap critical
logging history debugging
logging facility 22
logging host inside mailserver
icmp permit any outside
icmp permit any inside
mtu outside 1500
mtu inside 1500
ip address outside portal 255.255.255.252
ip address inside 192.168.1.1 255.255.255.0
ip audit name INFOPOLICY info action alarm
ip audit name ACTIONPOLICY attack action alarm drop
ip audit interface outside INFOPOLICY
ip audit interface outside ACTIONPOLICY
ip audit info action alarm
ip audit attack action alarm
ip local pool Remote_access 192.168.100.1-192.168.100.10 mask 255.255.255.0
pdm location mailserver 255.255.255.255 inside
pdm location 192.168.1.254 255.255.255.255 inside
pdm location 195.225.64.122 255.255.255.255 outside
pdm location 192.168.2.0 255.255.255.0 outside
pdm location 192.168.10.0 255.255.255.0 outside
pdm location 89.137.14.129 255.255.255.255 outside
pdm location fileserver 255.255.255.255 inside
pdm location 89.137.17.237 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 0.0.0.0 0.0.0.0 0 0
alias (inside) mailserver portal 255.255.255.255
static (inside,outside) tcp portal smtp mailserver smtp netmask 255.255.255.255 0 80 
static (outside,inside) tcp mailserver https portal https netmask 255.255.255.255 0 80 
static (inside,outside) tcp interface www mailserver www dns netmask 255.255.255.255 0 100 
static (inside,outside) tcp interface 20022 mailserver ssh dns netmask 255.255.255.255 0 100 
static (inside,outside) tcp interface 30022 fileserver ssh dns netmask 255.255.255.255 0 100 
static (inside,outside) udp interface 11194 fileserver 11194 dns netmask 255.255.255.255 0 0 
static (inside,outside) udp interface 21194 fileserver 21194 dns netmask 255.255.255.255 0 0 
access-group acl_out in interface outside
route outside 0.0.0.0 0.0.0.0 195.225.64.5 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+ 
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10 
aaa-server RADIUS protocol radius 
aaa-server RADIUS max-failed-attempts 3 
aaa-server RADIUS deadtime 10 
aaa-server LOCAL protocol local 
aaa authentication secure-http-client
aaa authentication ssh console LOCAL
ntp server 82.76.121.165 source outside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
virtual telnet 192.168.1.100
floodguard enable
sysopt connection permit-ipsec
sysopt noproxyarp inside
crypto map static 10 ipsec-isakmp
crypto map static 10 match address 110
! Incomplete
crypto map static 20 ipsec-isakmp
crypto map static 20 match address 150
crypto map static 20 set peer 82.76.17.127
crypto map static client configuration address initiate
crypto map static client configuration address respond
isakmp key ******** address 82.76.17.127 netmask 255.255.255.255 no-xauth 
isakmp identity address
vpngroup portal idle-time 1800
telnet timeout 5
ssh 89.137.17.237 255.255.255.255 outside
ssh 82.79.151.202 255.255.255.255 outside
ssh 81.196.151.160 255.255.255.224 outside
ssh 192.168.1.0 255.255.255.0 inside
ssh 192.168.2.0 255.255.255.0 inside
ssh timeout 60
management-access inside
console timeout 0
dhcpd address 192.168.1.200-192.168.1.253 inside
dhcpd lease 3600
dhcpd ping_timeout 750
username portal password lkzHotDKgBQnMeX6 encrypted privilege 2
vpnclient server 81.196.151.170
vpnclient mode network-extension-mode
vpnclient vpngroup mytunnel password ********
vpnclient username portal password ********
vpnclient enable
terminal width 80

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE