设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 669|回复: 5
收起左侧

[求助] ASA 8.42与ASA 8.02建立IPSec VPN后无法ping通

[复制链接]
发表于 2018-10-16 17:21:10 | 显示全部楼层 |阅读模式
本帖最后由 hibfnv 于 2018-10-16 17:29 编辑

具体情况是这样:总部LAN A要建立与LAN B 及LAN C的IPSec VPN,同时LAN B, LAN C等均能互访。LAN A总部使用ASA 8.42版本5520防火墙,但分支均为ASA 8.02版本的5505防火墙。但目前VPN建立后,LAN B和LANC互访没有任何问题,但均无法访问LAN A. LAN配置使用IKEV1协议,而分支均使用ISAKMP协议。具体配置脚本如下:
ASA1配置信息:
ASA Version 8.4(2)
!
hostname ASA1
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0
nameif outside
security-level 0
ip address 180.167.96.50 255.255.255.0
!
interface Ethernet1
nameif inside
security-level 100
ip address 10.1.1.1 255.255.255.0
!
interface Ethernet2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet3
shutdown
no nameif
no security-level
no ip address
!
ftp mode passive
object network inside
subnet 10.1.0.0 255.255.0.0
object-group network lan_a
network-object 10.1.1.0 255.255.255.0
object-group network lan_b
network-object 192.168.1.0 255.255.255.0
object-group network lan_c
network-object 10.72.1.0 255.255.255.0
access-list inside extended permit ip any any
access-list inside extended permit icmp any any
access-list inside extended permit tcp any any
access-list vpn.b extended permit ip object-group lan_a object-group lan_b
access-list vpn.c extended permit ip object-group lan_a object-group lan_c
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-649-103.bin
no asdm history enable
arp timeout 14400
nat (inside,outside) source static lan_a lan_a destination static lan_b lan_b
nat (inside,outside) source static lan_a lan_a destination static lan_c lan_c
nat (inside,outside) source dynamic inside interface
access-group inside in interface outside
route outside 0.0.0.0 0.0.0.0 180.167.96.49 1
route inside 10.1.0.0 255.255.0.0 10.1.1.2 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
user-identity default-domain LOCAL
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto map vpn.map 10 match address vpn.b
crypto map vpn.map 10 set peer 221.224.215.218
crypto map vpn.map 10 set ikev1 transform-set ESP-3DES-MD5
crypto map vpn.map 20 match address vpn.c
crypto map vpn.map 20 set peer 220.248.104.130
crypto map vpn.map 20 set ikev1 transform-set ESP-3DES-MD5
crypto map vpn.map interface outside
crypto ikev1 enable outside
crypto ikev1 policy 10
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
anyconnect-essentials
tunnel-group 221.224.215.218 type ipsec-l2l
tunnel-group 221.224.215.218 ipsec-attributes
ikev1 pre-shared-key abc123
tunnel-group 220.248.104.130 type ipsec-l2l
tunnel-group 220.248.104.130 ipsec-attributes
ikev1 pre-shared-key abc123
!
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 ip-options
  inspect netbios
  inspect rsh
  inspect rtsp
  inspect skinny  
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip  
  inspect xdmcp
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
call-home
profile CiscoTAC-1
  no active
  destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
  destination address email callhome@cisco.com
  destination transport-method http
  subscribe-to-alert-group diagnostic
  subscribe-to-alert-group environment
  subscribe-to-alert-group inventory periodic monthly
  subscribe-to-alert-group configuration periodic monthly
  subscribe-to-alert-group telemetry periodic daily
crashinfo save disable
Cryptochecksum:5988a46748865845313482288bf2be0c
: end


ASA2配置信息:
ASA Version 8.0(2)
!
hostname ASA2
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0/0
nameif outside
security-level 0
ip address 221.224.215.218 255.255.255.0
!
interface Ethernet0/1
nameif inside
security-level 100
ip address 10.72.1.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown     
no nameif
no security-level
no ip address
!
interface Ethernet0/4
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/5
shutdown
no nameif
no security-level
no ip address
!
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
object-group network inside
network-object 10.72.0.0 255.255.0.0
object-group network lan_a
network-object 10.1.1.0 255.255.255.0
object-group network lan_b
network-object 10.72.1.0 255.255.255.0
object-group network lan_c
network-object 192.168.1.0 255.255.255.0
access-list inside extended permit ip any any
access-list inside extended permit icmp any any
access-list inside extended permit tcp any any
access-list vpn.a extended permit ip object-group lan_b object-group lan_a
access-list vpn.c extended permit ip object-group lan_b object-group lan_c
access-list nat0 extended permit ip object-group lan_b object-group lan_a
access-list nat0 extended permit ip object-group lan_b object-group lan_c
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nat0
nat (inside) 1 10.72.0.0 255.255.0.0
access-group inside in interface outside
route outside 0.0.0.0 0.0.0.0 221.224.215.220 1
route inside 10.72.0.0 255.255.0.0 10.72.1.2 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
dynamic-access-policy-record DfltAccessPolicy
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 map vpn.map 10 match address vpn.a
crypto map vpn.map 10 set peer 180.167.96.50
crypto map vpn.map 10 set transform-set ESP-3DES-MD5
crypto map vpn.map 20 match address vpn.c
crypto map vpn.map 20 set peer 220.248.104.130
crypto map vpn.map 20 set transform-set ESP-3DES-MD5
crypto map vpn.map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
no crypto isakmp nat-traversal
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
!
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 netbios
  inspect rsh
  inspect rtsp
  inspect skinny  
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip  
  inspect xdmcp
!
service-policy global_policy global
tunnel-group 180.167.96.50 type ipsec-l2l
tunnel-group 180.167.96.50 ipsec-attributes
pre-shared-key *
tunnel-group 220.248.104.130 type ipsec-l2l
tunnel-group 220.248.104.130 ipsec-attributes
pre-shared-key *
prompt hostname context
Cryptochecksum:75a1ab8d67a3d1162bd873677942168c
: end


ASA3配置信息:
ASA Version 8.0(2)
!
hostname ASA3
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface Ethernet0/0
nameif outside
security-level 0
ip address 220.248.104.130 255.255.255.0
!
interface Ethernet0/1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown     
no nameif
no security-level
no ip address
!
interface Ethernet0/4
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/5
shutdown
no nameif
no security-level
no ip address
!
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
object-group network inside
network-object 192.168.0.0 255.255.252.0
object-group network lan_a
network-object 10.1.1.0 255.255.255.0
object-group network lan_b
network-object 10.72.1.0 255.255.255.0
object-group network lan_c
network-object 192.168.1.0 255.255.255.0
access-list inside extended permit ip any any
access-list inside extended permit icmp any any
access-list inside extended permit tcp any any
access-list vpn.a extended permit ip object-group lan_c object-group lan_a
access-list vpn.b extended permit ip object-group lan_c object-group lan_b
access-list nat0 extended permit ip object-group lan_c object-group lan_a
access-list nat0 extended permit ip object-group lan_c object-group lan_b
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nat0
nat (inside) 1 192.168.0.0 255.255.252.0
access-group inside in interface outside
route outside 0.0.0.0 0.0.0.0 220.248.104.129 1
route inside 192.168.0.0 255.255.252.0 192.168.1.2 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
dynamic-access-policy-record DfltAccessPolicy
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 map vpn.map 10 match address vpn.a
crypto map vpn.map 10 set peer 180.167.96.50
crypto map vpn.map 10 set transform-set ESP-3DES-MD5
crypto map vpn.map 20 match address vpn.b
crypto map vpn.map 20 set peer 221.224.215.218
crypto map vpn.map 20 set transform-set ESP-3DES-MD5
crypto map vpn.map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
no crypto isakmp nat-traversal
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
!
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 netbios
  inspect rsh
  inspect rtsp
  inspect skinny  
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip  
  inspect xdmcp
!
service-policy global_policy global
tunnel-group 180.167.96.50 type ipsec-l2l
tunnel-group 180.167.96.50 ipsec-attributes
pre-shared-key *
tunnel-group 221.224.215.218 type ipsec-l2l
tunnel-group 221.224.215.218 ipsec-attributes
pre-shared-key *
prompt hostname context
Cryptochecksum:75a1ab8d67a3d1162bd873677942168c
: end


请各位大神看看问题到底出在哪了,谢谢。内网中所有网段到A,B,C的防火墙的外网端口均能ping通。LAN C至LAN B内网能互通。

IPSec VPN拓朴

IPSec VPN拓朴

ASA3_config.txt

3.71 KB, 下载次数: 1, 下载积分: 鸿鹄币 -1 个

ASA2_config.txt

3.69 KB, 下载次数: 0, 下载积分: 鸿鹄币 -1 个

ASA1_config.txt

4.29 KB, 下载次数: 0, 下载积分: 鸿鹄币 -1 个

 楼主| 发表于 2018-10-17 08:29:58 | 显示全部楼层
坐等大神解答。
沙发 2018-10-17 08:29:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-10-17 15:52:45 | 显示全部楼层
ASA1  add below for try:

crypto map vpn.map 10 set pfs
crypto map vpn.map 20 set pfs
板凳 2018-10-17 15:52:45 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-10-17 16:20:10 | 显示全部楼层
还是要仔细检查ASA1上的NAT配置,感觉有问题。但是没空细看。
地板 2018-10-17 16:20:10 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-10-18 14:35:26 | 显示全部楼层
zhurx 发表于 2018-10-17 16:20
还是要仔细检查ASA1上的NAT配置,感觉有问题。但是没空细看。

非常感谢,确实是NAT上面的问题,目前仔细查询后发现是nat (inside) 0 access-list nat0没有更新,因为前面更新过access-list nat0,而后期没有应用nat (inside) 0 access-list nat0这条命令。
5# 2018-10-18 14:35:26 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-10-18 14:36:44 | 显示全部楼层
zhurx 发表于 2018-10-17 15:52
ASA1  add below for try:

crypto map vpn.map 10 set pfs

感谢回复,其实不需要使用set pfs也不影响,问题出在nat问题上。
6# 2018-10-18 14:36:44 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-27 10:18 , Processed in 0.071170 second(s), 11 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表