The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
не работает ipsec, !*! shoko, 30-Мрт-07, 13:17  [смотреть все]
Привет всем. Настроил vpn site to site
на одном из роутеров выходит такая ошибка:

%CRYPTO-6-IKMP_MODE_FAILURE: Processing of Quick mode failed with peer at 10.10.1.1

сделал дебаг вот что из этого вышло:

Mar 30 03:11:36.709 GMT: map_db_find_best did not find matching map
Mar 30 03:11:36.709 GMT: IPSEC(validate_transform_proposal): no IPSEC cryptomap exists for local address 10.10.1.254
Mar 30 03:11:36.709 GMT: ISAKMP:(0:44:HW:2): IPSec policy invalidated proposal
Mar 30 03:11:36.709 GMT: ISAKMP:(0:44:HW:2): phase 2 SA policy not acceptable! (local 10.10.1.254 remote 10.10.1.1)
Mar 30 03:11:36.709 GMT: ISAKMP: set new node -812368720 to QM_IDLE
Mar 30 03:11:36.709 GMT: CryptoEngine0: generate hmac context for conn id 44
Mar 30 03:11:36.709 GMT: CryptoEngine0: CRYPTO_ISA_IKE_HMAC(hw)(ipsec)
Mar 30 03:11:36.713 GMT: ISAKMP:(0:44:HW:2):Sending NOTIFY PROPOSAL_NOT_CHOSEN protocol 3
spi 1168611768, message ID = -812368720


вот кусок конфига:


hostname CRG

crypto isakmp policy 10
encr aes 256
authentication pre-share
group 5
crypto isakmp key 18Tvo@9rk9d8j5nvhr94lsaz9mYT(nnd$)#$fdfDsE%Yio&WE45@13^gTCUMhbj8Jk54F34D@#rfg&*wer$3F5D6Gt5fd45h332 address 10.10.1.1 no-xauth
crypto isakmp keepalive 100 3
!
!
crypto ipsec transform-set atb esp-aes 256 esp-sha-hmac
mode transport
!
crypto map atbmap local-address Loopback0
crypto map atbmap 10 ipsec-isakmp
set peer 10.10.1.1
set transform-set atb
set pfs group5
match address vpn_tunnel
!
!
!
!
interface Loopback0
ip address 10.10.1.254 255.255.255.0
!
interface Tunnel0
ip address 172.10.10.254 255.255.255.0
ip mtu 1400
ip ospf network broadcast
ip ospf priority 5
keepalive 10 3
tunnel source Loopback0
tunnel destination 10.10.1.1
tunnel path-mtu-discovery
!
interface GigabitEthernet0/0
description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$
ip address 192.168.240.252 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.100
description main link to backup office
encapsulation dot1Q 100
ip address 10.100.100.254 255.255.255.0
crypto map atbmap
!
interface GigabitEthernet0/1.200
description backup link to backup office
encapsulation dot1Q 200
ip address 10.10.240.254 255.255.255.252
ip ospf cost 150
!
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
interface Group-Async0
ip unnumbered GigabitEthernet0/0
encapsulation ppp
no ip mroute-cache
async mode dedicated
peer default ip address pool dialin
ppp authentication ms-chap-v2 ms-chap chap pap
group-range 1/0 1/7
!
router ospf 10
log-adjacency-changes
redistribute static subnets
network 10.0.0.0 0.255.255.255 area 0
!
router ospf 5
log-adjacency-changes
area 240 stub
redistribute static subnets
network 172.0.0.0 0.255.255.255 area 0
network 192.168.240.0 0.0.0.255 area 240
default-information originate always
!
ip local pool dialin 192.168.240.240 192.168.240.248
ip route 0.0.0.0 0.0.0.0 192.168.240.254
!
ip access-list extended lan_out
deny ip 192.168.240.0 0.0.0.255 any
permit ip any any
ip access-list extended vpn_tunnel
permit gre host 10.10.1.254 host 10.10.1.1
permit udp host 10.10.1.254 host 10.10.1.1 eq ntp
!
!


как это исправить ? рылся в инете ничего подходящего не нашел.


Спасибо всем заранее.

  • не работает ipsec, !*! Eduard_k, 15:19 , 30-Мрт-07 (1)
    • не работает ipsec, !*! shoko, 16:42 , 30-Мрт-07 (2)
      >>Привет всем. Настроил vpn site to site
      >>на одном из роутеров выходит такая ошибка:
      >>
      >>%CRYPTO-6-IKMP_MODE_FAILURE: Processing of Quick mode failed with peer at 10.10.1.1
      >>
      >>сделал дебаг вот что из этого вышло:
      >>
      >>Mar 30 03:11:36.709 GMT: map_db_find_best did not find matching map
      >>Mar 30 03:11:36.709 GMT: IPSEC(validate_transform_proposal): no IPSEC cryptomap exists for local address
      >>10.10.1.254
      >>Mar 30 03:11:36.709 GMT: ISAKMP:(0:44:HW:2): IPSec policy invalidated proposal
      >>Mar 30 03:11:36.709 GMT: ISAKMP:(0:44:HW:2): phase 2 SA policy not acceptable! (local
      >>10.10.1.254 remote 10.10.1.1)
      >>Mar 30 03:11:36.709 GMT: ISAKMP: set new node -812368720 to QM_IDLE
      >>Mar 30 03:11:36.709 GMT: CryptoEngine0: generate hmac context for conn id 44
      >>
      >>Mar 30 03:11:36.709 GMT: CryptoEngine0: CRYPTO_ISA_IKE_HMAC(hw)(ipsec)
      >>Mar 30 03:11:36.713 GMT: ISAKMP:(0:44:HW:2):Sending NOTIFY PROPOSAL_NOT_CHOSEN protocol 3
      >>spi 1168611768, message ID = -812368720
      >>
      >>
      >>вот кусок конфига:
      >>
      >>
      >>
      >>
      >>hostname CRG
      >>
      >>crypto isakmp policy 10
      >>encr aes 256
      >>authentication pre-share
      >>group 5
      >>crypto isakmp key 18Tvo@9rk9d8j5nvhr94lsaz9mYT(nnd$)#$fdfDsE%Yio&WE45@13^gTCUMhbj8Jk54F34D@#rfg&*wer$3F5D6Gt5fd45h332 address 10.10.1.1 no-xauth
      >>crypto isakmp keepalive 100 3
      >>!
      >>!
      >>crypto ipsec transform-set atb esp-aes 256 esp-sha-hmac
      >>mode transport
      >>!
      >>crypto map atbmap local-address Loopback0
      >>crypto map atbmap 10 ipsec-isakmp
      >>set peer 10.10.1.1
      >>set transform-set atb
      >>set pfs group5
      >>match address vpn_tunnel
      >>!
      >>!
      >>!
      >>!
      >>interface Loopback0
      >>ip address 10.10.1.254 255.255.255.0
      >>!
      >>interface Tunnel0
      >>ip address 172.10.10.254 255.255.255.0
      >>ip mtu 1400
      >>ip ospf network broadcast
      >>ip ospf priority 5
      >>keepalive 10 3
      >>tunnel source Loopback0
      >>tunnel destination 10.10.1.1
      >>tunnel path-mtu-discovery
      >>!
      >>interface GigabitEthernet0/0
      >>description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$
      >>ip address 192.168.240.252 255.255.255.0
      >>duplex auto
      >>speed auto
      >>!
      >>interface GigabitEthernet0/1
      >>no ip address
      >>duplex auto
      >>speed auto
      >>!
      >>interface GigabitEthernet0/1.100
      >>description main link to backup office
      >>encapsulation dot1Q 100
      >>ip address 10.100.100.254 255.255.255.0
      >>crypto map atbmap
      >>!
      >>interface GigabitEthernet0/1.200
      >>description backup link to backup office
      >>encapsulation dot1Q 200
      >>ip address 10.10.240.254 255.255.255.252
      >>ip ospf cost 150
      >>!
      >>interface Serial0/0/0
      >>no ip address
      >>shutdown
      >>clock rate 2000000
      >>!
      >>interface Serial0/0/1
      >>no ip address
      >>shutdown
      >>clock rate 2000000
      >>!
      >>interface Group-Async0
      >>ip unnumbered GigabitEthernet0/0
      >>encapsulation ppp
      >>no ip mroute-cache
      >>async mode dedicated
      >>peer default ip address pool dialin
      >>ppp authentication ms-chap-v2 ms-chap chap pap
      >>group-range 1/0 1/7
      >>!
      >>router ospf 10
      >>log-adjacency-changes
      >>redistribute static subnets
      >>network 10.0.0.0 0.255.255.255 area 0
      >>!
      >>router ospf 5
      >>log-adjacency-changes
      >>area 240 stub
      >>redistribute static subnets
      >>network 172.0.0.0 0.255.255.255 area 0
      >>network 192.168.240.0 0.0.0.255 area 240
      >>default-information originate always
      >>!
      >>ip local pool dialin 192.168.240.240 192.168.240.248
      >>ip route 0.0.0.0 0.0.0.0 192.168.240.254
      >>!
      >>ip access-list extended lan_out
      >>deny ip 192.168.240.0 0.0.0.255 any
      >>permit ip any any
      >>ip access-list extended vpn_tunnel
      >>permit gre host 10.10.1.254 host 10.10.1.1
      >>permit udp host 10.10.1.254 host 10.10.1.1 eq ntp
      >>!
      >>!
      >>
      >>
      >>как это исправить ? рылся в инете ничего подходящего не нашел.
      >>
      >>
      >>Спасибо всем заранее.
      >
      >Зачем mode transport ? и почему crypto map на сабинтерфейсе висит?
      >Еслм mode transport , то надо на tunnel 0 вешать, либо акцесс
      >лист править.
      >Кстати tunnel0 в up? маршрутизация рабртает? на сети backup office маршрут через
      >туннель проходит?


      tunnel0 up и все работает но с этой ошибкой если убрать крипто мар то тоже все работает.

      такой вопрос мне нужно чтоб gre проходило через  ipsec  а не ipsec через gre.

      кстати говоря пример я брал на сайте циски.  что в конфиге не так и что надо подправить чтоб все нормально заработало.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру