I am desperately trying to establish a VPN between two locations using PIX 506 firewalls in a pre-shared key, 3DES, configuration. In the configuration shown, both units can ping the outside interface of the other, and show crypto ipsec sa and shoe ipsec isakmp sa commands seem to indicate a tunnel is formed, but I cannot pass even a ping from the inside of one to the inside of the other. Both locations use static IP - one via T-1, the other via DSL. The routers on both sides are set to act as simple bridges, and all traffic restrictions/internal firewalls are removed from these units.
I have tried to reduce the commands to the bare-bones minimum to make the process easier.
Hopefully this will be something very simple (though very urgent), and I apologize for the length of this post - if there is a better was to attach configs and debug info, please let me know.
Location 1 -
PIX Version 6.3(5)
interface ethernet0 10full
interface ethernet1 10full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password ! encrypted
passwd ! encrypted
hostname hq
domain-name x.org
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.254 int_ip
name 1.1.1.1 router
name 1.1.1.2 pub_ip
name 192.168.1.0 hq
name 192.168.3.0 wha
name 2.1.1.2 wha_pub
access-list VPN permit ip hq 255.255.255.0 wha 255.255.255.0
pager lines 24
logging on
logging console alerts
logging buffered alerts
mtu outside 1500
mtu inside 1500
ip address outside pub_ip 255.255.255.248
ip address inside int_ip 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list VPN
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 router 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
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set 2wha esp-3des esp-sha-hmac
crypto map wha 1 ipsec-isakmp
crypto map wha 1 match address VPN
crypto map wha 1 set peer wha_pub
crypto map wha 1 set transform-set 2wha
crypto map wha interface outside
isakmp enable outside
isakmp key ******** address wha_pub netmask 255.255.255.255
isakmp policy 1 authentication pre-share
isakmp policy 1 encryption 3des
isakmp policy 1 hash sha
isakmp policy 1 group 1
isakmp policy 1 lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
terminal width 80
: end
Location 2 -
PIX Version 6.3(5)
interface ethernet0 10full
interface ethernet1 10full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password ! encrypted
passwd ! encrypted
hostname wha
domain-name x.org
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.3.254 int_ip
name 2.1.1.1 router
name 2.1.1.2 pub_ip
name 192.168.1.0 hq
name 192.168.3.0 wha
name 1.1.1.2 hq_pub
access-list VPN permit ip wha 255.255.255.0 hq 255.255.255.0
pager lines 24
logging on
logging console alerts
logging buffered alerts
mtu outside 1500
mtu inside 1500
ip address outside pub_ip 255.255.255.248
ip address inside int_ip 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list VPN
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
route outside 0.0.0.0 0.0.0.0 router 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
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set 2hq esp-3des esp-sha-hmac
crypto map wha 1 ipsec-isakmp
crypto map wha 1 match address VPN
crypto map wha 1 set peer hq_pub
crypto map wha 1 set transform-set 2hq
crypto map wha interface outside
isakmp enable outside
isakmp key ******** address hq_pub netmask 255.255.255.255
isakmp policy 1 authentication pre-share
isakmp policy 1 encryption 3des
isakmp policy 1 hash sha
isakmp policy 1 group 1
isakmp policy 1 lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
terminal width 80
: end
Show commands from a debug at location 1-
show crypto isakmp sa
Total : 1
Embryonic : 0
dst src state pending created
wha_pub pub_ip QM_IDLE 0 1
show crypto ipsec sa
interface: outside
Crypto map tag: wha, local addr. pub_ip
local ident (addr/mask/prot/port): (hq/255.255.255.0/0/0)
remote ident (addr/mask/prot/port): (wha/255.255.255.0/0/0)
current_peer: wha_pub:500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 2, #pkts encrypt: 2, #pkts digest 2
#pkts decaps: 0, #pkts decrypt: 0, #pkts verify 0
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0, #pkts decompress failed: 0
#send errors 1, #recv errors 0
local crypto endpt.: pub_ip, remote crypto endpt.: wha_pub
path mtu 1500, ipsec overhead 56, media mtu 1500
current outbound spi: 8b1281f1
inbound esp sas:
spi: 0x8a14bf65(2316615525)
transform: esp-3des esp-sha-hmac ,
in use settings ={Tunnel, }
slot: 0, conn id: 2, crypto map: wha
sa timing: remaining key lifetime (k/sec): (4608000/28711)
IV size: 8 bytes
replay detection support: Y
inbound ah sas:
inbound pcp sas:
outbound esp sas:
spi: 0x8b1281f1(2333245937)
transform: esp-3des esp-sha-hmac ,
in use settings ={Tunnel, }
slot: 0, conn id: 1, crypto map: wha
sa timing: remaining key lifetime (k/sec): (4607999/28711)
IV size: 8 bytes
replay detection support: Y
outbound ah sas:
outbound pcp sas:
Debug from location 1-
ISAKMP (0): beginning Main Mode exchange
crypto_isakmp_process_bloc
k:src:wha_
pub, dest:pub_ip spt:500 dpt:500
OAK_MM exchange
ISAKMP (0): processing SA payload. message ID = 0
ISAKMP (0): Checking ISAKMP transform 1 against priority 30 policy
ISAKMP: encryption 3DES-CBC
ISAKMP: hash SHA
ISAKMP: default group 2
ISAKMP: auth pre-share
ISAKMP: life type in seconds
ISAKMP: life duration (VPI) of 0x0 0x1 0x51 0x80
ISAKMP (0): atts are acceptable. Next payload is 0
ISAKMP (0): SA is doing pre-shared key authentication using id type ID_FQDN
return status is IKMP_NO_ERROR
crypto_isakmp_process_bloc
k:src:wha_
pub, dest:pub_ip spt:500 dpt:500
OAK_MM exchange
ISAKMP (0): processing KE payload. message ID = 0
ISAKMP (0): processing NONCE payload. message ID = 0
ISAKMP (0): processing vendor id payload
ISAKMP (0): received xauth v6 vendor id
ISAKMP (0): processing vendor id payload
ISAKMP (0): remote peer supports dead peer detection
ISAKMP (0): processing vendor id payload
ISAKMP (0): processing vendor id payload
ISAKMP (0): speaking to another IOS box!
ISAKMP (0): ID payload
next-payload : 8
type : 2
protocol : 17
port : 500
length : 20
ISAKMP (0): Total payload length: 24
return status is IKMP_NO_ERROR
crypto_isakmp_process_bloc
k:src:wha_
pub, dest:pub_ip spt:500 dpt:500
OAK_MM exchange
ISAKMP (0): processing ID payload. message ID = 0
ISAKMP (0): processing HASH payload. message ID = 0
ISAKMP (0): SA has been authenticated
ISAKMP (0): beginning Quick Mode exchange, M-ID of -62083321:fc4caf07IPSEC(ke
y_engine):
got a queue event...
IPSEC(spi_response): getting spi 0x8a14bf65(2316615525) for SA
from wha_pub to pub_ip for prot 3
return status is IKMP_NO_ERROR
crypto_isakmp_process_bloc
k:src:wha_
pub, dest:pub_ip spt:500 dpt:500
ISAKMP (0): processing NOTIFY payload 24578 protocol 1
spi 0, message ID = 2129363189
ISAKMP (0): processing notify INITIAL_CONTACTIPSEC(key_e
ngine): got a queue event...
IPSEC(key_engine_delete_sa
s): rec'd delete notify from ISAKMP
IPSEC(key_engine_delete_sa
s): delete all SAs shared with wha_pub
ISADB: reaper checking SA 0xefddd4, conn_id = 0
return status is IKMP_NO_ERR_NO_TRANS
VPN Peer: ISAKMP: Added new peer: ip:wha_pub/500 Total VPN Peers:1
VPN Peer: ISAKMP: Peer ip:wha_pub/500 Ref cnt incremented to:1 Total VPN Peers:1
crypto_isakmp_process_bloc
k:src:wha_
pub, dest:pub_ip spt:500 dpt:500
OAK_QM exchange
oakley_process_quick_mode:
OAK_QM_IDLE
ISAKMP (0): processing SA payload. message ID = 4232883975
ISAKMP : Checking IPSec proposal 1
ISAKMP: transform 1, ESP_3DES
ISAKMP: attributes in transform:
ISAKMP: encaps is 1
ISAKMP: SA life type in seconds
ISAKMP: SA life duration (basic) of 28800
ISAKMP: SA life type in kilobytes
ISAKMP: SA life duration (VPI) of 0x0 0x46 0x50 0x0
ISAKMP: authenticator is HMAC-SHA
ISAKMP (0): atts are acceptable.IPSEC(validate_
proposal_r
equest): proposal part #1,
(key eng. msg.) dest= wha_pub, src= pub_ip,
dest_proxy= wha/255.255.255.0/0/0 (type=4),
src_proxy= hq/255.255.255.0/0/0 (type=4),
protocol= ESP, transform= esp-3des esp-sha-hmac ,
lifedur= 0s and 0kb,
spi= 0x0(0), conn_id= 0, keysize= 0, flags= 0x4
ISAKMP (0): processing NONCE payload. message ID = 4232883975
ISAKMP (0): processing ID payload. message ID = 4232883975
ISAKMP (0): processing ID payload. message ID = 4232883975
ISAKMP (0): Creating IPSec SAs
inbound SA from wha_pub to pub_ip (proxy wha to hq)
has spi 2316615525 and conn_id 2 and flags 4
lifetime of 28800 seconds
lifetime of 4608000 kilobytes
outbound SA from pub_ip to wha_pub (proxy hq to wha)
has spi 2333245937 and conn_id 1 and flags 4
lifetime of 28800 seconds
lifetime of 4608000 kilobytesIPSEC(key_engine)
: got a queue event...
IPSEC(initialize_sas): ,
(key eng. msg.) dest= pub_ip, src= wha_pub,
dest_proxy= hq/255.255.255.0/0/0 (type=4),
src_proxy= wha/255.255.255.0/0/0 (type=4),
protocol= ESP, transform= esp-3des esp-sha-hmac ,
lifedur= 28800s and 4608000kb,
spi= 0x8a14bf65(2316615525), conn_id= 2, keysize= 0, flags= 0x4
IPSEC(initialize_sas): ,
(key eng. msg.) src= pub_ip, dest= wha_pub,
src_proxy= hq/255.255.255.0/0/0 (type=4),
dest_proxy= wha/255.255.255.0/0/0 (type=4),
protocol= ESP, transform= esp-3des esp-sha-hmac ,
lifedur= 28800s and 4608000kb,
spi= 0x8b1281f1(2333245937), conn_id= 1, keysize= 0, flags= 0x4
VPN Peer: IPSEC: Peer ip:wha_pub/500 Ref cnt incremented to:2 Total VPN Peers:1
VPN Peer: IPSEC: Peer ip:wha_pub/500 Ref cnt incremented to:3 Total VPN Peers:1
return status is IKMP_NO_ERROR