- 积分
- 59
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
 
|
本帖最后由 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内网能互通。
|
|