Realisations/2006-2007/Projet/IpsecImplementation: racoon.conf

File racoon.conf, 2.4 KB (added by alladoum, 18 years ago)

Configuration Racoon

Line 
1#  $File: /home/chris/PRes/Postes_Rackables/ipsec_client1/racoon.conf $
2#  $MD5: 2922df40b60a8f1eb7116f90a485f84a $
3#  $By Christophe Alladoum <christophe[dot]alladoum[at]gmail[dot]com>$
4#  $Last-Modified: Fri Apr 20 18:28:11 2007$
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
20#
21# Configuration de RACOON cote client
22#
23
24path include "/root/ipsec_client1" ;
25path pidfile "/root/ipsec_client1/racoon.pid";
26path pre_shared_key "/root/ipsec_client1/psk.txt" ;
27
28# "log" indique le niveau de debug
29# choix : notify, debug, debug2
30# log debug;
31
32padding
33{
34        maximum_length 20;      # maximum padding length.
35        randomize off;          # enable randomize length.
36        strict_check off;       # enable strict check.
37        exclusive_tail off;     # extract last one octet.
38}
39
40# Interfaces a ecouter (IPv4 et/ou v6)
41# Si aucune, ecoute sur toutes les interfaces de la machine
42listen
43{
44        # pour le client IPv4
45        isakmp 10.40.0.13 [500];
46        # pour le client IPv6
47        # isakmp ::1 [7000];
48}
49
50# Temporisateurs d echange de cle
51timer
52{
53        counter 5;              # maximum trying count to send.
54        interval 20 sec;        # maximum interval to resend.
55        persend 1;              # the number of packets per a send.
56
57        # Temps max. pour chaque phase
58        phase1 2 min;
59        phase2 4 min;
60}
61
62# Cas du client1
63remote 10.40.0.9
64{
65        exchange_mode aggressive,main;
66        doi ipsec_doi;
67        situation identity_only;
68
69        nonce_size 16;
70        lifetime time 60 min;   # sec,min,hour
71        initial_contact on;
72        support_proxy on;
73        proposal_check obey;    # obey, strict or claim
74
75        proposal {
76                encryption_algorithm blowfish;
77                hash_algorithm sha1;
78                authentication_method pre_shared_key ;
79                dh_group 5 ;
80        }
81}
82
83# Cas du client1
84sainfo anonymous
85{
86        pfs_group 5;
87        lifetime time 48 hour;
88        encryption_algorithm 3des, cast128, blowfish 448, des;
89        authentication_algorithm hmac_md5, hmac_sha1;
90        compression_algorithm deflate ;
91}