The OpenNET Project / Index page

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




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Проблемы с ipsec, !*! Undel, 16-Мрт-10, 13:41  [смотреть все]
После перезагрузки сервера не поднимается туннель. Пробовал обновить ipsec-tools - не помогло.
CentOS 5.3

/etc/sysconfig/network-scripts/ifcfg-ipsec1:
DEVICE=ipsec0
TYPE=IPSEC
ONBOOT=yes
IKE_METHOD=PSK
SRCGW=192.168.50.5
DSTGW=192.168.50.33
SRCNET=192.168.50.0/27
DSTNET=192.168.50.32/27
DST=193.233.11.22

racoon.conf:
# Racoon IKE daemon configuration file.
# See 'man racoon.conf' for a description of the format and entries.

path include "/etc/racoon";
path pre_shared_key "/etc/racoon/psk.txt";
path certificate "/etc/racoon/certs";

log debug2;
#
padding
        {
                maximum_length 20;      # maximum padding length.
                randomize off;          # enable randomize length.
                strict_check off;       # enable strict check.
                exclusive_tail off;     # extract last one octet.
        }
        listen
        {
                isakmp 87.65.43.21 [500];
        }

        ## IKE phase 1
        remote 193.233.11.22
        {
                exchange_mode main,aggressive;
                #doi ipsec_doi;
                #situation identity_only;
                my_identifier address 87.65.43.21;

                #nonce_size 16;
                lifetime time 28800 seconds;
                #initial_contact on;
                proposal_check obey;    # obey, strict or claim

                proposal {
                        encryption_algorithm 3des;
                        hash_algorithm sha1;
                        authentication_method pre_shared_key ;
                        dh_group 2 ;
                }
        }
         ## IKE phase 2
        sainfo address 192.168.50.0/27 any address 192.168.50.32/27 any
{
        pfs_group 2;
        lifetime time 28800 seconds ;
        encryption_algorithm 3des, des ;
        authentication_algorithm hmac_sha1, hmac_md5 ;
        compression_algorithm deflate ;
}

        sainfo address 192.168.50.32/27 any address 192.168.50.0/27 any
{
        pfs_group 2;
        lifetime time 28800 seconds ;
       encryption_algorithm 3des, des ;
       authentication_algorithm hmac_sha1, hmac_md5 ;
        compression_algorithm deflate ;
}


        sainfo address 192.168.50.0/27 any address 192.168.0.0/24 any
{
        pfs_group 2;
        lifetime time 28800 seconds ;
        encryption_algorithm 3des, des ;
        authentication_algorithm hmac_sha1, hmac_md5 ;
        compression_algorithm deflate ;
}

        sainfo address 192.168.0.0/24 any address 192.168.50.0/27 any

193.233.11.22.conf:
remote 193.233.70.167
{
        exchange_mode main,aggressive;
        my_identifier address;
        proposal {
                encryption_algorithm 3des;
                hash_algorithm sha1;
                authentication_method pre_shared_key;
                dh_group 2;
        }
}


[root@centos racoon]# /sbin/setkey /etc/racoon/setkey.conf
setkey: /etc/racoon/setkey.conf: Permission denied

Права у setkey.conf - 600, владелец root

[root@centos racoon]# /sbin/ifup ipsec1
racoon: failed to parse configuration file.

[root@centos racoon]# /usr/sbin/racoon -F -v -d -f /etc/racoon/racoon.conf -l /var/log/racoon.log
Foreground mode.
2010-03-16 13:18:33: INFO: @(#)ipsec-tools 0.6.5 (http://ipsec-tools.sourceforge.net)
2010-03-16 13:18:33: INFO: @(#)This product linked OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 (http://www.openssl.org/)
2010-03-16 13:18:33: DEBUG: call pfkey_send_register for AH
2010-03-16 13:18:33: DEBUG: call pfkey_send_register for ESP
2010-03-16 13:18:33: DEBUG: call pfkey_send_register for IPCOMP
2010-03-16 13:18:33: DEBUG: reading config file /etc/racoon/racoon.conf
2010-03-16 13:18:33: DEBUG: hmac(modp1024)
2010-03-16 13:18:33: DEBUG: compression algorithm can not be checked because sadb message doesn't support it.
2010-03-16 13:18:33: DEBUG: compression algorithm can not be checked because sadb message doesn't support it.
2010-03-16 13:18:33: DEBUG: compression algorithm can not be checked because sadb message doesn't support it.
2010-03-16 13:18:33: DEBUG: compression algorithm can not be checked because sadb message doesn't support it.
2010-03-16 13:18:33: DEBUG: filename: /etc/racoon/.conf
2010-03-16 13:18:33: ERROR: glob found no matches for path2010-03-16 13:18:33: ERROR: fatal parse failure.
racoon: failed to parse configuration file.
[root@centos racoon]#

Откуда берется /etc/racoon/.conf - не понимаю.

В чем проблема? Никакие настройки не менялись.

  • Проблемы с ipsec, !*! pavel_simple, 15:04 , 16-Мрт-10 (1)
    • Проблемы с ipsec, !*! Undel, 20:28 , 16-Мрт-10 (2)
      >
      >racoon: failed to parse configuration file.

      С этим разобрался, теперь ругается на политики.

      Делаю так :
      [root@centos racoon]# setkey -FPv
      sadb_msg{ version=2 type=19 errno=0 satype=0
        len=2 reserved=0 seq=0 pid=4991

      sadb_msg{ version=2 type=19 errno=0 satype=0
        len=2 reserved=0 seq=0 pid=4991

      Потом:
      [root@centos racoon]#/sbin/setkey /etc/racoon/setkey.conf
      Level 3 reset.

      Никакой инфы по этому level 3 reset найти применительно к setkey не могу




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

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