Два офиса. В одном ASA 5510, в другом ASA 5505. Версия OS на обоих 8.2(1).
Пробую поднять Site-2-Site туннель, почти строго по доке
LAN-to-LAN Tunnel Between ASA 5505 and ASA/PIX Configuration Example.
[more=Вывод комманд на обоих устройствах практически зеркален ]
gades# sh run tunnel-group
tunnel-group 80.x.x.x type ipsec-l2l
tunnel-group 80.x.x.x ipsec-attributes
pre-shared-key *
gades# sh run crypto ipsec
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
gades# sh run crypto isakmp
crypto isakmp identity address
crypto isakmp enable outside
crypto isakmp policy 1
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 43200
no crypto isakmp nat-traversal
gades# sh run crypto map
crypto map outside_map 1 match address 100
crypto map outside_map 1 set peer GUARD
crypto map outside_map 1 set transform-set ESP-3DES-SHA
crypto map outside_map interface outside
gades# sh run access-list 100
access-list 100 extended permit ip 192.168.0.0 255.255.255.0 172.16.0.0 255.255.255.0
guard# sh run tunnel-group
tunnel-group 62.y.y.y type ipsec-l2l
tunnel-group 62.y.y.y ipsec-attributes
pre-shared-key *
guard# sh run crypto ipsec
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
guard# sh run crypto isakmp
crypto isakmp identity address
crypto isakmp enable outside
crypto isakmp policy 1
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 43200
no crypto isakmp nat-traversal
guard# sh run crypto map
crypto map outside_map 1 match address 100
crypto map outside_map 1 set peer GADES
crypto map outside_map 1 set transform-set ESP-3DES-SHA
crypto map outside_map interface outside
guard# sh run access-list 100
access-list 100 extended permit ip 172.16.0.0 255.255.255.0 192.168.0.0 255.255.255.0
NAT для трафика между этиме сетями отключен
[/more]
Выполняю команды
debug crypto ipsec 255
debug crypto isakmp 255
clear log buffer
clear crypto isakmp sa
clear crypto ipsec sa
После чего с хоста из сети 172.16.0.0/24 делаю telnet на хост в сети 192.168.0.0/24. И тишина. Туннель не поднимается.
[more=Лог соединения]
gades# Aug 03 21:52:04 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RECEIVED Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + NONE (0) total length : 108
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, processing SA payload
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, Oakley proposal is acceptable
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, processing VID payload
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, Received Fragmentation VID
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE Peer included IKE fragmentation capability flags: Main Mode: True Aggressive Mode: True
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, processing IKE SA payload
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE SA Proposal # 1, Transform # 1 acceptable Matches global IKE entry # 2
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, constructing ISAKMP SA payload
Aug 03 21:52:04 [IKEv1 DEBUG]: IP = 80.x.x.x, constructing Fragmentation VID + extended capabilities payload
Aug 03 21:52:04 [IKEv1]: IP = 80.x.x.x, IKE_DECODE SENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + NONE (0) total length : 104
Aug 03 21:52:12 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 21:52:12 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 21:52:12 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + NONE (0) total length : 104
Aug 03 21:52:20 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 21:52:20 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 21:52:20 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + NONE (0) total length : 104
Aug 03 21:52:28 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + NONE (0) total length : 104
Aug 03 21:52:28 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 21:52:28 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 21:52:28 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE MM Responder FSM error history (struct &0xd8d065d8) <state>, <event>: MM_DONE, EV_ERROR-->MM_WAIT_MSG3, EV_RESEND_MSG-->MM_WAIT_MSG3, NullEvent-->MM_SND_MSG2, EV_SND_MSG-->MM_SND_MSG2, EV_START_TMR-->MM_SND_MSG2, EV_RESEND_MSG-->MM_WAIT_MSG3, EV_TIMEOUT-->MM_WAIT_MSG3, NullEvent
Aug 03 21:52:28 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE SA MM:5ab6b178 terminating: flags 0x01000002, refcnt 0, tuncnt 0
Aug 03 21:52:28 [IKEv1 DEBUG]: IP = 80.x.x.x, sending delete/delete with reason message
Aug 03 21:52:28 [IKEv1]: IP = 80.x.x.x, Removing peer from peer table failed, no match!
Aug 03 21:52:28 [IKEv1]: IP = 80.x.x.x, Error: Unable to remove PeerTblEntry
[/more]
Поиски причины пока ни к чему не привели. Может кто знает куда копать?
Поигрался с настройками, [more=лог]
Aug 03 22:23:38 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RECEIVED Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + VENDOR (13) + VENDOR (13) + VENDOR (13) + NONE (0) total length : 168
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing SA payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, Oakley proposal is acceptable
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing VID payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, Received NAT-Traversal ver 02 VID
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing VID payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, Received NAT-Traversal ver 03 VID
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing VID payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, Received NAT-Traversal RFC VID
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing VID payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, Received Fragmentation VID
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE Peer included IKE fragmentation capability flags: Main Mode: True Aggressive Mode: True
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, processing IKE SA payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE SA Proposal # 1, Transform # 1 acceptable Matches global IKE entry # 2
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, constructing ISAKMP SA payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, constructing NAT-Traversal VID ver 02 payload
Aug 03 22:23:38 [IKEv1 DEBUG]: IP = 80.x.x.x, constructing Fragmentation VID + extended capabilities payload
Aug 03 22:23:38 [IKEv1]: IP = 80.x.x.x, IKE_DECODE SENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + VENDOR (13) + NONE (0) total length : 124
Aug 03 22:23:46 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 22:23:46 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 22:23:46 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + VENDOR (13) + NONE (0) total length : 124
Aug 03 22:23:54 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + VENDOR (13) + NONE (0) total length : 124
Aug 03 22:23:54 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 22:23:54 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 22:23:54 [IKEv1]: IP = 80.x.x.x, IKE_DECODE RESENDING Message (msgid=0) with payloads : HDR + SA (1) + VENDOR (13) + VENDOR (13) + NONE (0) total length : 124
Aug 03 22:24:02 [IKEv1]: IP = 80.x.x.x, Duplicate Phase 1 packet detected. Retransmitting last packet.
Aug 03 22:24:02 [IKEv1]: IP = 80.x.x.x, P1 Retransmit msg dispatched to MM FSM
Aug 03 22:24:02 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE MM Responder FSM error history (struct &0xd8d072f0) <state>, <event>: MM_DONE, EV_ERROR-->MM_WAIT_MSG3, EV_RESEND_MSG-->MM_WAIT_MSG3, NullEvent-->MM_SND_MSG2, EV_SND_MSG-->MM_SND_MSG2, EV_START_TMR-->MM_SND_MSG2, EV_RESEND_MSG-->MM_WAIT_MSG3, EV_RESEND_MSG-->MM_WAIT_MSG3, NullEvent
Aug 03 22:24:02 [IKEv1 DEBUG]: IP = 80.x.x.x, IKE SA MM:17accd6f terminating: flags 0x01000002, refcnt 0, tuncnt 0
Aug 03 22:24:02 [IKEv1 DEBUG]: IP = 80.x.x.x, sending delete/delete with reason message
Aug 03 22:24:02 [IKEv1]: IP = 80.x.x.x, Removing peer from peer table failed, no match!
Aug 03 22:24:02 [IKEv1]: IP = 80.x.x.x, Error: Unable to remove PeerTblEntry[/more] изменился, но итог тот же. Соединение пытается установиться, но безуспешно.