head 1.23; access; symbols cjep_sun2x:1.23.0.44 cjep_sun2x-base:1.23 cjep_staticlib_x-base1:1.23 cjep_staticlib_x:1.23.0.42 cjep_staticlib_x-base:1.23 phil-wifi-20200421:1.23 phil-wifi-20200411:1.23 phil-wifi-20200406:1.23 pgoyette-compat-merge-20190127:1.23 pgoyette-compat-20190127:1.23 pgoyette-compat-20190118:1.23 pgoyette-compat-1226:1.23 pgoyette-compat-1126:1.23 pgoyette-compat-1020:1.23 pgoyette-compat-0930:1.23 pgoyette-compat-0906:1.23 pgoyette-compat-0728:1.23 pgoyette-compat-0625:1.23 pgoyette-compat-0521:1.23 pgoyette-compat-0502:1.23 pgoyette-compat-0422:1.23 pgoyette-compat-0415:1.23 pgoyette-compat-0407:1.23 pgoyette-compat-0330:1.23 pgoyette-compat-0322:1.23 pgoyette-compat-0315:1.23 pgoyette-compat:1.23.0.40 pgoyette-compat-base:1.23 perseant-stdc-iso10646:1.23.0.38 perseant-stdc-iso10646-base:1.23 prg-localcount2-base3:1.23 prg-localcount2-base2:1.23 prg-localcount2-base1:1.23 prg-localcount2:1.23.0.36 prg-localcount2-base:1.23 pgoyette-localcount-20170426:1.23 bouyer-socketcan-base1:1.23 pgoyette-localcount-20170320:1.23 bouyer-socketcan:1.23.0.34 bouyer-socketcan-base:1.23 pgoyette-localcount-20170107:1.23 pgoyette-localcount-20161104:1.23 localcount-20160914:1.23 pgoyette-localcount-20160806:1.23 pgoyette-localcount-20160726:1.23 pgoyette-localcount:1.23.0.32 pgoyette-localcount-base:1.23 netbsd-5-2-3-RELEASE:1.23 netbsd-5-1-5-RELEASE:1.23 yamt-pagecache-base9:1.23 yamt-pagecache-tag8:1.23 tls-earlyentropy:1.23.0.28 tls-earlyentropy-base:1.23 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23 riastradh-drm2-base3:1.23 netbsd-5-2-2-RELEASE:1.23 netbsd-5-1-4-RELEASE:1.23 netbsd-5-2-1-RELEASE:1.23 netbsd-5-1-3-RELEASE:1.23 agc-symver:1.23.0.30 agc-symver-base:1.23 tls-maxphys-base:1.23 yamt-pagecache-base8:1.23 netbsd-5-2:1.23.0.26 yamt-pagecache-base7:1.23 netbsd-5-2-RELEASE:1.23 netbsd-5-2-RC1:1.23 yamt-pagecache-base6:1.23 yamt-pagecache-base5:1.23 yamt-pagecache-base4:1.23 netbsd-5-1-2-RELEASE:1.23 netbsd-5-1-1-RELEASE:1.23 yamt-pagecache-base3:1.23 yamt-pagecache-base2:1.23 yamt-pagecache:1.23.0.24 yamt-pagecache-base:1.23 bouyer-quota2-nbase:1.23 bouyer-quota2:1.23.0.22 bouyer-quota2-base:1.23 matt-nb5-pq3:1.23.0.20 matt-nb5-pq3-base:1.23 netbsd-5-1:1.23.0.18 netbsd-5-1-RELEASE:1.23 netbsd-5-1-RC4:1.23 netbsd-5-1-RC3:1.23 netbsd-5-1-RC2:1.23 netbsd-5-1-RC1:1.23 netbsd-5-0-2-RELEASE:1.23 netbsd-5-0-1-RELEASE:1.23 jym-xensuspend-nbase:1.23 netbsd-5-0:1.23.0.16 netbsd-5-0-RELEASE:1.23 netbsd-5-0-RC4:1.23 netbsd-5-0-RC3:1.23 netbsd-5-0-RC2:1.23 jym-xensuspend:1.23.0.14 jym-xensuspend-base:1.23 netbsd-5-0-RC1:1.23 netbsd-5:1.23.0.12 netbsd-5-base:1.23 mjf-devfs2:1.23.0.10 mjf-devfs2-base:1.23 yamt-pf42-base4:1.23 yamt-pf42-base3:1.23 hpcarm-cleanup-nbase:1.23 yamt-pf42-base2:1.23 yamt-pf42:1.23.0.8 yamt-pf42-base:1.23 keiichi-mipv6:1.23.0.6 keiichi-mipv6-base:1.23 cube-autoconf:1.23.0.4 cube-autoconf-base:1.23 hpcarm-cleanup:1.23.0.2 hpcarm-cleanup-base:1.23 netbsd-2-0-3-RELEASE:1.20.2.1 netbsd-2-1:1.20.2.1.0.4 netbsd-2-1-RELEASE:1.20.2.1 netbsd-2-1-RC6:1.20.2.1 netbsd-2-1-RC5:1.20.2.1 netbsd-2-1-RC4:1.20.2.1 netbsd-2-1-RC3:1.20.2.1 netbsd-2-1-RC2:1.20.2.1 netbsd-2-1-RC1:1.20.2.1 netbsd-2-0-2-RELEASE:1.20.2.1 netbsd-2-0-1-RELEASE:1.20.2.1 netbsd-2:1.20.2.1.0.2 netbsd-2-base:1.20.2.1 netbsd-2-0-RELEASE:1.20.2.1 netbsd-2-0-RC5:1.20.2.1 netbsd-2-0-RC4:1.20.2.1 netbsd-2-0-RC3:1.20.2.1 netbsd-2-0-RC2:1.20.2.1 netbsd-2-0-RC1:1.20.2.1 notsnap20040617:1.1.1.11 notsnap20040412:1.1.1.11 netbsd-2-0:1.20.0.2 netbsd-2-0-base:1.20 netbsd-1-6-PATCH002-RELEASE:1.13 netbsd-1-6-PATCH002:1.13 netbsd-1-6-PATCH002-RC4:1.13 netbsd-1-6-PATCH002-RC3:1.13 netbsd-1-6-PATCH002-RC2:1.13 netbsd-1-6-PATCH002-RC1:1.13 notsnap20030826:1.1.1.10 notsnap20030712:1.1.1.10 netbsd-1-6-PATCH001:1.13 netbsd-1-6-PATCH001-RELEASE:1.13 netbsd-1-6-PATCH001-RC3:1.13 netbsd-1-6-PATCH001-RC2:1.13 netbsd-1-6-PATCH001-RC1:1.13 fvdl_fs64_base:1.14 notsnap20021120:1.1.1.9 netbsd-1-6-RELEASE:1.13 netbsd-1-6-RC3:1.13 netbsd-1-6-RC2:1.13 netbsd-1-6-RC1:1.13 netbsd-1-6:1.13.0.2 netbsd-1-6-base:1.13 notsnap20020426:1.1.1.8 notsnap20010831:1.1.1.7 notsnap20010802:1.1.1.6 notsnap20010404:1.1.1.5 notsnap20010308:1.1.1.5 notsnap20010222:1.1.1.4 notsnap20010129:1.1.1.3 notsnap20010126:1.1.1.3 notsnap20010124:1.1.1.2 snap20001229:1.1.1.1 KAME:1.1.1; locks; strict; comment @.\" @; 1.23 date 2005.02.20.15.50.03; author manu; state dead; branches; next 1.22; 1.22 date 2004.11.10.20.23.28; author thorpej; state Exp; branches; next 1.21; 1.21 date 2004.04.12.03.34.07; author itojun; state Exp; branches; next 1.20; 1.20 date 2003.07.12.09.02.25; author itojun; state Exp; branches 1.20.2.1; next 1.19; 1.19 date 2003.07.04.12.33.11; author wiz; state Exp; branches; next 1.18; 1.18 date 2003.07.04.12.31.33; author wiz; state Exp; branches; next 1.17; 1.17 date 2003.06.27.22.31.29; author wiz; state Exp; branches; next 1.16; 1.16 date 2003.06.16.08.40.11; author itojun; state Exp; branches; next 1.15; 1.15 date 2003.04.06.20.24.35; author wiz; state Exp; branches; next 1.14; 1.14 date 2002.11.20.03.35.58; author itojun; state Exp; branches; next 1.13; 1.13 date 2002.04.26.02.33.00; author wiz; state Exp; branches; next 1.12; 1.12 date 2002.04.26.02.25.15; author itojun; state Exp; branches; next 1.11; 1.11 date 2002.03.06.00.21.36; author itojun; state Exp; branches; next 1.10; 1.10 date 2001.08.31.10.36.09; author itojun; state Exp; branches; next 1.9; 1.9 date 2001.08.02.12.15.01; author itojun; state Exp; branches; next 1.8; 1.8 date 2001.06.05.11.11.08; author wiz; state Exp; branches; next 1.7; 1.7 date 2001.04.11.19.28.27; author wiz; state Exp; branches; next 1.6; 1.6 date 2001.02.22.02.42.43; author itojun; state Exp; branches; next 1.5; 1.5 date 2001.02.22.02.33.06; author itojun; state Exp; branches; next 1.4; 1.4 date 2001.01.26.23.56.18; author thorpej; state Exp; branches; next 1.3; 1.3 date 2001.01.24.18.18.33; author thorpej; state Exp; branches; next 1.2; 1.2 date 2000.12.29.02.32.42; author itojun; state Exp; branches; next 1.1; 1.1 date 2000.12.29.02.26.15; author itojun; state Exp; branches 1.1.1.1; next ; 1.20.2.1 date 2004.06.17.12.38.10; author tron; state Exp; branches; next ; 1.1.1.1 date 2000.12.29.02.26.15; author itojun; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2001.01.24.18.10.44; author thorpej; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2001.01.26.23.53.43; author thorpej; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.02.22.02.23.25; author itojun; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2001.03.08.22.18.11; author thorpej; state Exp; branches; next 1.1.1.6; 1.1.1.6 date 2001.08.02.12.06.06; author itojun; state Exp; branches; next 1.1.1.7; 1.1.1.7 date 2001.08.31.10.00.15; author itojun; state Exp; branches; next 1.1.1.8; 1.1.1.8 date 2002.04.26.02.18.12; author itojun; state Exp; branches; next 1.1.1.9; 1.1.1.9 date 2002.11.20.03.30.44; author itojun; state Exp; branches; next 1.1.1.10; 1.1.1.10 date 2003.07.12.08.47.23; author itojun; state Exp; branches; next 1.1.1.11; 1.1.1.11 date 2004.04.12.03.27.01; author itojun; state Exp; branches; next ; desc @@ 1.23 log @Remove KAME racoon distribution, which is not used anymore @ text @.\" $NetBSD: racoon.conf.5,v 1.22 2004/11/10 20:23:28 thorpej Exp $ .\" $KAME: racoon.conf.5,v 1.109 2003/12/17 01:43:57 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. Neither the name of the project nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd November 4, 2004 .Dt RACOON.CONF 5 .Os .\" .Sh NAME .Nm racoon.conf .Nd configuration file for racoon .\" .\" .Sh SYNOPSIS .\" .Sh DESCRIPTION .Nm is the configuration file for the .Xr racoon 8 ISAKMP daemon. .Xr racoon 8 negotiates security associations for itself (ISAKMP SA, or phase 1 SA) and for kernel IPsec (IPsec SA, or phase 2 SA). The file consists of a sequence of directives and statements. Each directive is composed by a tag, and statements are enclosed by .Ql { and .Ql } . Lines beginning with .Ql # are comments. .\" .Ss Meta Syntax Keywords and special characters that the parser expects exactly are displayed using .Ic this font. Parameters are specified with .Ar this font. Square brackets .Po .Ql \&[ and .Ql \&] .Pc are used to show optional keywords and parameters. Note that you have to pay attention when this manual is describing .Ar port numbers. The .Ar port number is always enclosed by .Ql \&[ and .Ql \&] . In this case, the port number is not an optional keyword. If it is possible to omit .Ar port number, the expression becomes .Bq Bq Ar port . The vertical bar .Pq Ql \*(Ba is used to indicate a choice between optional parameters. Parentheses .Po .Ql \&( and .Ql \&) .Pc are used to group keywords and parameters when necessary. Major parameters are listed below. .Pp .Bl -tag -width addressx -compact .It Ar number means a hexadecimal or a decimal number. The former must be prefixed with .Ql Li 0x . .It Ar string .It Ar path .It Ar file means any string enclosed in .Ql \&" .Pq double quote . .It Ar address means IPv6 and/or IPv4 address. .It Ar port means a TCP/UDP port number. The port number is always enclosed by .Ql \&[ and .Ql \&] . .It Ar timeunit is one of following: .Ic sec , secs , second , seconds , .Ic min , mins , minute , minutes , .Ic hour , hours . .El .\" .Ss Path Specification .Bl -tag -width Ds -compact .It Ic path include Ar path ; specifies a path to include a file. See .Sx File Inclusion . .It Ic path pre_shared_key Ar file ; specifies a file containing pre-shared key(s) for various ID(s). See .Sx Pre-shared key File . .It Ic path certificate Ar path ; .Xr racoon 8 will search this directory if a certificate or certificate request is received. .It Ic path backupsa Ar file ; specifies a file to be stored a SA information which is negotiated by racoon. .Xr racoon 8 will install SA(s) from the file with a boot option .Fl B . The file is increasing because .Xr racoon 8 simply add a SA to the file at the moment. You should maintain the file manually. .El .\" .Ss File Inclusion .Bl -tag -width Ds -compact .It Ic include Ar file other configuration files can be included. .El .\" .Ss Identifier Specification is obsolete. It must be defined at each .Ic remote directive. .\" .Ss Timer Specification .Bl -tag -width Ds -compact .It Ic timer { Ar statements Ic } specifies various timer values. .Pp .Bl -tag -width Ds -compact .It Ic counter Ar number ; the maximum number of retries to send. The default is 5. .It Ic interval Ar number Ar timeunit ; the interval to resend, in seconds. The default time is 10 seconds. .It Ic persend Ar number ; the number of packets per send. The default is 1. .It Ic phase1 Ar number Ar timeunit ; the maximum time it should take to complete phase 1. The default time is 15 seconds. .It Ic phase2 Ar number Ar timeunit ; the maximum time it should take to complete phase 2. The default time is 10 seconds. .El .El .\" .Ss Listening Port Specification .Bl -tag -width Ds -compact .It Ic listen { Ar statements Ic } If no .Ar listen directive is specified, .Xr racoon 8 will listen on all of the available interface addresses. The following is the list of valid statements: .Pp .Bl -tag -width Ds -compact .\" How do I express bold brackets; `[' and `]' . .\" Is the "Bq Ic [ Ar port ] ;" buggy ? .It Ic isakmp Ar address Bq Bq Ar port ; If this is specified, .Xr racoon 8 will only listen on .Ar address . The default port is 500, which is specified by IANA. You can provide more than one address definition. .It Ic strict_address ; require that all addresses for ISAKMP must be bound. This statement will be ignored if you do not specify any addresses. .El .El .\" .Ss Miscellaneous Global Parameters .Bl -tag -width Ds -compact .It Ic gss_id_enc Ar enctype ; Older versions of .Xr racoon 8 used ISO-Latin-1 as the encoding of the GSS-API identifier attribute. For interoperability with Microsoft Windows' GSS-API authentication scheme, the default encoding has been changed to UTF-16LE. The .Ic gss_id_enc parameter allows .Xr racoon 8 to be configured to use the old encoding for compatibility with existing .Xr racoon 8 installations. The following are valid values for .Ar enctype : .Pp .Bl -tag -width Ds -compact .It Ic utf-16le Use UTF-16LE to encode the GSS-API identifier attribute. This is the default encoding. This encoding is compatible with Microsoft Windows. .It Ic latin1 Use ISO-Latin-1 to encode the GSS-API identifier attribute. This is the encoding used by older versions of .Xr racoon 8 . .El .El .\" .Ss Remote Nodes Specifications .Bl -tag -width Ds -compact .It Xo .Ic remote ( Ar address \*(Ba Ic anonymous ) .Bq Bq Ar port .Ic { Ar statements Ic } .Xc specifies the parameters for IKE phase 1 for each remote node. The default port is 500. If .Ic anonymous is specified, the statements apply to all peers which do not match any other .Ic remote directive. .Pp The following are valid statements. .Pp .Bl -tag -width Ds -compact .\" .It Ic exchange_mode ( main \*(Ba aggressive \*(Ba base ) ; defines the exchange mode for phase 1 when racoon is the initiator. Also it means the acceptable exchange mode when racoon is responder. More than one mode can be specified by separating them with a comma. All of the modes are acceptable. The first exchange mode is what racoon uses when it is the initiator. .\" .It Ic doi Ic ipsec_doi ; means to use IPsec DOI as specified RFC 2407. You can omit this statement. .\" .It Ic situation Ic identity_only ; means to use SIT_IDENTITY_ONLY as specified RFC 2407. You can omit this statement. .\" .It Ic identifier Ar idtype ; is obsolete. Instead, use .Ic my_identifier . .\" .It Ic my_identifier Ar idtype ... ; specifies the identifier sent to the remote host and the type to use in the phase 1 negotiation. .Ic address, fqdn , user_fqdn , keyid and asn1dn can be used as an .Ar idtype . they are used like: .Bl -tag -width Ds -compact .It Ic my_identifier Ic address Bq Ar address ; the type is the IP address. This is the default type if you do not specify an identifier to use. .It Ic my_identifier Ic user_fqdn Ar string ; the type is a USER_FQDN (user fully-qualified domain name). .It Ic my_identifier Ic fqdn Ar string ; the type is a FQDN (fully-qualified domain name). .It Ic my_identifier Ic keyid Ar file ; the type is a KEY_ID. .It Ic my_identifier Ic asn1dn Bq Ar string ; the type is an ASN.1 distinguished name. If .Ar string is omitted, .Xr racoon 8 will get DN from Subject field in the certificate. .El .\" .It Ic peers_identifier Ar idtype ... ; specifies the peer's identifier to be received. If it is not defined then .Xr racoon 8 will not verify the peer's identifier in ID payload transmitted from the peer. If it is defined, the behavior of the verification depends on the flag of .Ic verify_identifier . The usage of .Ar idtype is same to .Ic my_identifier . .\" .It Ic verify_identifier (on \(ba off) ; If you want to verify the peer's identifier, set this to on. In this case, if the value defined by .Ic peers_identifier is not same to the peer's identifier in the ID payload, the negotiation will failed. The default is off. .\" .It Ic certificate_type Ar certspec ; specifies a certificate specification. .Ar certspec is one of followings: .Bl -tag -width Ds -compact .It Ic x509 Ar certfile Ar privkeyfile ; .Ar certfile means a file name of certificate. .Ar privkeyfile means a file name of secret key. .El .\" .It Ic peers_certfile ( dnssec \*(Ba Ar certfile ) ; If .Ic dnssec is defined, .Xr racoon 8 will ignore the CERT payload from the peer, and try to get the peer's certificate from DNS instead. If .Ar certfile is defined, .Xr racoon 8 will ignore the CERT payload from the peer, and will use this certificate as the peer's certificate. .\" .It Ic send_cert (on \(ba off) ; If you do not want to send a certificate for some reason, set this to off. The default is on. .\" .It Ic send_cr (on \(ba off) ; If you do not want to send a certificate request for some reason, set this to off. The default is on. .\" .It Ic verify_cert (on \(ba off) ; If you do not want to verify the peer's certificate for some reason, set this to off. The default is on. .\" .It Ic lifetime time Ar number Ar timeunit ; define a lifetime of a certain time which will be proposed in the phase 1 negotiations. Any proposal will be accepted, and the attribute(s) will be not proposed to the peer if you do not specify it(them). They can be individually specified in each proposal. .\" .It Ic initial_contact (on \(ba off) ; enable this to send an INITIAL-CONTACT message. The default value is .Ic on . This message is useful only when the implementation of the responder choices an old SA when there are multiple SAs which are different established time, and the initiator reboots. If racoon did not use the message, the responder would use an old SA even when an new SA was established. The KAME stack has the switch in the system wide value, net.key.preferred_oldsa. when the value is zero, the stack always use an new SA. .\" .It Ic passive (on \(ba off) ; If you do not want to initiate the negotiation, set this to on. The default value is .Ic off . It is useful for a server. .\" .It Ic proposal_check Ar level ; specifies the action of lifetime length and PFS of the phase 2 selection on the responder side. The default level is .Ic strict . If the .Ar level is; .Bl -tag -width Ds -compact .It Ic obey the responder will obey the initiator anytime. .It Ic strict If the responder's length is longer than the initiator's one, the responder uses the initiator's one. Otherwise it rejects the proposal. If PFS is not required by the responder, the responder will obey the proposal. If PFS is required by both sides and if the responder's group is not equal to the initiator's one, then the responder will reject the proposal. .It Ic claim If the responder's length is longer than the initiator's one, the responder will use the initiator's one. If the responder's length is shorter than the initiator's one, the responder uses its own length AND sends a RESPONDER-LIFETIME notify message to an initiator in the case of lifetime. About PFS, this directive is same as .Ic strict . .It Ic exact If the initiator's length is not equal to the responder's one, the responder will reject the proposal. If PFS is required by both sides and if the responder's group is not equal to the initiator's one, then the responder will reject the proposal. .El .\" .It Ic support_proxy (on \(ba off) ; If this value is set on then both values of ID payloads in phase 2 exchange are always used as the addresses of end-point of IPsec-SAs. The default is off. .\" .It Ic generate_policy (on \(ba off) ; This directive is for the responder. Therefore you should set .Ic passive on in order that .Xr racoon 8 only becomes a responder. If the responder does not have any policy in SPD during phase 2 negotiation, and the directive is set on, then .Xr racoon 8 will choice the first proposal in the SA payload from the initiator, and generate policy entries from the proposal. It is useful to negotiate with the client which is allocated IP address dynamically. Note that inappropriate policy might be installed into the responder's SPD by the initiator. So that other communication might fail if such policies installed due to some policy mismatches between the initiator and the responder. This directive is ignored in the initiator case. The default value is .Ic off . .\" .It Ic nonce_size Ar number ; define the byte size of nonce value. Racoon can send any value although RFC2409 specifies that the value MUST be between 8 and 256 bytes. The default size is 16 bytes. .\" .It Xo .Ic proposal { Ar sub-substatements Ic } .Xc .Bl -tag -width Ds -compact .\" .It Ic encryption_algorithm Ar algorithm ; specify the encryption algorithm used for the phase 1 negotiation. This directive must be defined. .Ar algorithm is one of following: .Ic des , 3des , blowfish , cast128 .\".Ic rc5 , idea for oakley. For other transforms, this statement should not be used. .\" .It Ic hash_algorithm Ar algorithm ; define the hash algorithm used for the phase 1 negotiation. This directive must be defined. .Ar algorithm is one of following: .Ic md5, sha1 for oakley. .\" .It Ic authentication_method Ar type ; defines the authentication method used for the phase 1 negotiation. This directive must be defined. .Ar type is one of: .Ic pre_shared_key, rsasig , gssapi_krb . .\" .It Ic dh_group Ar group ; define the group used for the Diffie-Hellman exponentiations. This directive must be defined. .Ar group is one of following: .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. When you want to use aggressive mode, you must define same DH group in each proposal. .It Ic lifetime time Ar number Ar timeunit ; define lifetime of the phase 1 SA proposal. Refer to the description of .Ic lifetime directive immediately defined in .Ic remote directive. .It Ic gss_id Ar string ; define the GSS-API endpoint name, to be included as an attribute in the SA, if the .Ic gssapi_krb authentication method is used. If this is not defined, the default value of .Ql host/hostname is used, where hostname is the value returned by the .Xr hostname 1 command. .El .El .El .\" .Ss Policy Specifications The policy directive is obsolete, policies are now in the SPD. .Xr racoon 8 will obey the policy configured into the kernel by .Xr setkey 8 , and will construct phase 2 proposals by combining .Ic sainfo specifications in .Nm , and policies in the kernel. .\" .Ss Sainfo Specifications .Bl -tag -width Ds -compact .It Xo .Ic sainfo ( Ar source_id destination_id \*(Ba Ic anonymous ) .Ic { Ar statements Ic } .Xc defines the parameters of the IKE phase 2 (IPsec-SA establishment). .Ar source_id and .Ar destination_id are constructed like: .Pp .Ic address Ar address .Bq Ic / Ar prefix .Bq Ic [ Ar port ] .Ar ul_proto .Pp or .Pp .Ar idtype Ar string .Pp It means exactly the content of ID payload. This is not like a filter rule. For example, if you define 3ffe:501:4819::/48 as .Ar source_id . 3ffe:501:4819:1000:/64 will not match. .Pp .Bl -tag -width Ds -compact .\" .It Ic pfs_group Ar group ; define the group of Diffie-Hellman exponentiations. If you do not require PFS then you can omit this directive. Any proposal will be accepted if you do not specify one. .Ar group is one of following: .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. .\" .It Ic lifetime time Ar number Ar timeunit ; define the lifetime of amount of time which are to be used IPsec-SA. Any proposal will be accepted, and no attribute(s) will be proposed to the peer if you do not specify it(them). See the .Ic proposal_check directive. .\" .It Ic my_identifier Ar idtype ... ; is obsolete. It does not make sense to specify a identifier in the phase 2. .El .\" .Pp .Xr racoon 8 does not have the list of security protocols to be negotiated. The list of security protocols are passed by SPD in the kernel. Therefore you have to define all of the potential algorithms in the phase 2 proposals even if there is a algorithm which will not be used. These algorithms are define by using the following three directives, and they are lined with single comma as the separator. For algorithms that can take variable-length keys, algorithm names can be followed by a key length, like .Dq Li blowfish 448 . .Xr racoon 8 will compute the actual phase 2 proposals by computing the permutation of the specified algorithms, and then combining them with the security protocol specified by the SPD. For example, if .Ic des , 3des , hmac_md5 , and .Ic hmac_sha1 are specified as algorithms, we have four combinations for use with ESP, and two for AH. Then, based on the SPD settings, .Xr racoon 8 will construct the actual proposals. If the SPD entry asks for ESP only, there will be 4 proposals. If it asks for both AH and ESP, there will be 8 proposals. Note that the kernel may not support the algorithm you have specified. .\" .Bl -tag -width Ds -compact .It Ic encryption_algorithm Ar algorithms ; .Ic des , 3des , des_iv64 , des_iv32 , .Ic rc5 , rc4 , idea , 3idea , .Ic cast128 , blowfish , null_enc , .Ic twofish , rijndael .Pq used with ESP .\" .It Ic authentication_algorithm Ar algorithms ; .Ic des , 3des , des_iv64 , des_iv32 , .Ic hmac_md5 , hmac_sha1 , non_auth .Pq used with ESP authentication and AH .\" .It Ic compression_algorithm Ar algorithms ; .Ic deflate .Pq used with IPComp .El .El .\" .Ss Logging level .Bl -tag -width Ds -compact .It Ic log Ar level ; define logging level. .Ar level is one of following: .Ic notify , debug and .Ic debug2 . The default is .Ic notify . If you put too high logging level on slower machines, IKE negotiation can fail due to timing constraint changes. .El .\" .Ss Specifying the way to pad .Bl -tag -width Ds -compact .It Ic padding { Ar statements Ic } specified padding format. The following are valid statements: .Bl -tag -width Ds -compact .It Ic randomize (on \(ba off) ; enable using a randomized value for padding. The default is on. .It Ic randomize_length (on \(ba off) ; the pad length is random. The default is off. .It Ic maximum_length Ar number ; define a maximum padding length. If .Ic randomize_length is off, this is ignored. The default is 20 bytes. .It Ic exclusive_tail (on \(ba off) ; means to put the number of pad bytes minus one into last part of the padding. The default is on. .It Ic strict_check (on \(ba off) ; means to be constrained the peer to set the number of pad bytes. The default is off. .El .El .Ss Special directives .Bl -tag -width Ds -compact .It Ic complex_bundle (on \(ba off) ; defines the interpretation of proposal in the case of SA bundle. Normally .Dq IP AH ESP IP payload is proposed as .Dq AH tunnel and ESP tunnel . The interpretation is more common to other IKE implementations, however, it allows very limited set of combinations for proposals. With the option enabled, it will be proposed as .Dq AH transport and ESP tunnel . The default value is .Ic off . .El .\" .Ss Pre-shared key File Pre-shared key file defines a pair of the identifier and the shared secret key which are used at Pre-shared key authentication method in phase 1. The pair in each lines are separated by some number of blanks and/or tab characters like .Xr hosts 5 . Key can be included any blanks because all of the words after 2nd column are interpreted as a secret key. Lines start with .Ql # are ignored. Keys which start with .Ql 0x are hexa-decimal strings. Note that the file must be owned by the user ID running .Xr racoon 8 .Pq usually the privileged user , and must not be accessible by others. .\" .Sh EXAMPLES The following shows how the remote directive should be configured. .Bd -literal -offset path pre_shared_key "/etc/racoon/psk.txt" ; remote anonymous { exchange_mode aggressive,main,base; lifetime time 24 hour; proposal { encryption_algorithm 3des; hash_algorithm sha1; authentication_method pre_shared_key; dh_group 2; } } sainfo anonymous { pfs_group 2; lifetime time 12 hour ; encryption_algorithm 3des, blowfish 448, twofish, rijndael ; authentication_algorithm hmac_sha1, hmac_md5 ; compression_algorithm deflate ; } .Ed .Pp The following is a sample of the file defined pre-shared key. .Bd -literal -offset 10.160.94.3 mekmitasdigoat 172.16.1.133 0x12345678 194.100.55.1 whatcertificatereally 3ffe:501:410:ffff:200:86ff:fe05:80fa mekmitasdigoat 3ffe:501:410:ffff:210:4bff:fea2:8baa mekmitasdigoat foo@@kame.net mekmitasdigoat foo.kame.net hoge .Ed .\" .Sh SEE ALSO .\".Xr racoonctl 8 , .Xr racoon 8 , .Xr setkey 8 .\" .Sh HISTORY The .Nm configuration file first appeared in .Dq YIPS Yokogawa IPsec implementation. .\" .Sh BUGS Some statements may not be handled by .Xr racoon 8 yet. .Pp Diffie-Hellman computation can take a very long time, and may cause unwanted timeouts, specifically when large D-H group is used. .\" .Sh SECURITY CONSIDERATIONS The use of IKE phase 1 aggressive mode is not recommended, as describved in .Li http://www.kb.cert.org/vuls/id/886601 . @ 1.22 log @Apply patches as discussed on: http://mail-index.netbsd.org/tech-net/2004/11/05/0004.html Slightly modified to differentiate the version string from a stock racoon. * auth_gssapi.h (GSSAPI_DEF_NAME): Change from "ike" to "host". (gssapi_get_default_id): Rename to gssapi_get_id. (gssapi_get_default_gss_id): New prototype. * cfparse.y (GSSAPI_ID): Rename to GSS_ID. (GSS_ID_ENC, GSS_ID_ENCTYPE): New tokens. (gssenc_statement): New statement. (isakmpproposal_spec): Use GSS_ID token. (expand_isakmpspec): Fill in gssid in the new proposal only if authmethod is OAKLEY_ATTR_AUTH_METHOD_GSSAPI_KRB. If the GSS ID is not provided, call gssapi_get_default_gss_id() to place the default ID in the proposal. * cftoken.l (S_GSSENC): New start condition. (gss_id): New, return the GSS_ID token. (gssapi_id): Return the GSS_ID token. (gss_id_enc, latin1, utf-16le) ({semi}): New, tokenize the "gss_id_enc enctype;" statement. * gssapi.c: Include . (gssapi_get_default_gss_id): New function. (gssapi_init): Disable a broken debugging message. Make printf formats consistent in their handling of non-NUL-terminated strings. (gssapi_get_default_id): Rename to... (gssapi_get_id): ...this. If the proposal has a gssid, vdup() that and return it. Disable a broken debugging message. Make printf formats consistent in their handling of non-NUL-terminated strings. * ipsec_doi.c: Include . (get_ph1approval): Make printf formats consistent in their handling of non-NUL-terminated strings. Call gssapi_get_id() instead of gssapi_get_default_id(), and remove some complexity that has been pushed into that function. (t2isakmpsa): When parsing the OAKLEY_ATTR_GSS_ID attribute, check convert the attribute from UTF-16LE to ISO-Latin-1, unless we are configured to assume the attribute is already ISO-Latin-1 encoded. (setph1attr): When setting the OAKLEY_ATTR_GSS_ID attribute, convert the attribute from ISO-Latin-1 to UTF-16LE, unless we are configured to encode the attribute in ISO-Latin-1. * localconf.c (setdefault): Set the default GSS ID encoding type to UTF-16LE. * localconf.h (LC_GSSENC_UTF16LE, LC_GSSENC_LATIN1) (LC_GSSENC_MAX): New constants. (struct localconf): Add gss_id_enc member. * main.c (RACOON_VERSION): Append " - NetBSD 20041110" to the version string. * racoon.conf.5: Document changes to GSS ID encoding and default GSS ID computation. Document "gss_id_enc enctype;" statement. * samples/racoon.conf.sample-gssapi: Update and add comments to provide more information. @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.21 2004/04/12 03:34:07 itojun Exp $ @ 1.21 log @properly validate phase 1 signature. http://www.vuxml.org/freebsd/d8769838-8814-11d8-90d1-0020ed76ef5a.html @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.20 2003/07/12 09:02:25 itojun Exp $ d31 1 a31 1 .Dd April 12, 2004 d214 30 d511 1 a511 1 .It Ic gssapi_id Ar string ; d516 4 a519 2 .Ql ike/hostname is used, where hostname is the FQDN of the interface being used. @ 1.20 log @sync w/ latest racoon @ text @d1 2 a2 2 .\" $NetBSD: racoon.conf.5,v 1.19 2003/07/04 12:33:11 wiz Exp $ .\" $KAME: racoon.conf.5,v 1.106 2003/07/05 00:02:56 itojun Exp $ d31 1 a31 1 .Dd June 16, 2003 d468 4 a471 2 .Ic modp768 , modp1024 , modp1536 . Or you can define 1, 2, or 5 as the DH group number. d538 4 a541 2 .Ic modp768 , modp1024 , modp1536 . Or you can define 1, 2, or 5 as the DH group number. d733 3 @ 1.20.2.1 log @Apply patch (requested by itojun in ticket #505): version 20040617a, includes important fix about cert handling @ text @d1 2 a2 2 .\" $NetBSD: racoon.conf.5,v 1.21 2004/04/12 03:34:07 itojun Exp $ .\" $KAME: racoon.conf.5,v 1.109 2003/12/17 01:43:57 itojun Exp $ d31 1 a31 1 .Dd April 12, 2004 d468 2 a469 4 .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. d536 2 a537 4 .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. a728 3 .Pp Diffie-Hellman computation can take a very long time, and may cause unwanted timeouts, specifically when large D-H group is used. @ 1.19 log @Bump date for recent changes. @ text @d1 2 a2 2 .\" $NetBSD: racoon.conf.5,v 1.18 2003/07/04 12:31:33 wiz Exp $ .\" $KAME: racoon.conf.5,v 1.101 2002/07/17 03:43:38 sakane Exp $ d400 1 a400 1 .It Ic support_mip6 (on \(ba off) ; @ 1.18 log @Punctuation fixes. @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.17 2003/06/27 22:31:29 wiz Exp $ d31 1 a31 1 .Dd November 20, 2000 @ 1.17 log @Remove superfluous macro calls, add newline where missing, and use \&[ (and similar) instead of \*(lB, since it works with both old and new groff. @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.16 2003/06/16 08:40:11 itojun Exp $ d306 1 a306 1 .It Ic x509 Ar certfile Ar privkeyfile; d448 1 a448 1 .It Ic hash_algorithm Ar algorithm; d498 1 a498 1 .Nm Ns , d569 1 a569 1 .Ic des, 3des, hmac_md5, @ 1.16 log @discourage the use of aggressive mode @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.15 2003/04/06 20:24:35 wiz Exp $ d68 1 a68 1 .Ql \*(lB d70 1 a70 1 .Ql \*(rB d80 1 a80 1 .Ql \*(lB d82 1 a82 1 .Ql \*(rB . d88 1 a88 1 .Bq Ic Bq Ar port . d95 1 a95 1 .Ql \*(lP d97 1 a97 1 .Ql \*(rP d118 1 a118 1 .Ql \*(lB d120 1 a120 1 .Ql \*(rB . d630 2 a631 1 .Ic randomize_length is off, this is ignored. @ 1.15 log @IPsec, not IPSEC. From Igor Sobrado in PR 19691. @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.14 2002/11/20 03:35:58 itojun Exp $ d728 5 @ 1.14 log @sync w/ kame source from 2002/11/20. - plug some memory leaks - correct phase 2 proposal reqid handling - check for fd_set overrun @ text @d1 1 a1 1 .\" $NetBSD: racoon.conf.5,v 1.13 2002/04/26 02:33:00 wiz Exp $ d242 1 a242 1 means to use IPSEC-DOI as specified RFC 2407. @ 1.13 log @Whitespace fixes, use standard headers, RCS police. @ text @d1 2 a2 2 .\" $NetBSD$ .\" $KAME: racoon.conf.5,v 1.97 2002/03/05 15:34:59 sakane Exp $ d419 4 a422 3 Note that inappropriate policy might be installed by the initiator because the responder just installs policies as the initiator proposes. So that other communication might fail if such policies installed. @ 1.12 log @upgrade to KAME racoon as of 2002/4/26. file descriptor leak fix. null encryption algorithm key length fix (should use 0). couple of null-pointer reference fixes. set port # to 500 in ID payload (possible interop issue - spec is unclear). correctly match address pair on informational exchange @ text @d1 1 d223 1 a223 1 If d225 1 a225 1 is specified, the statements apply to all peers which do not match d278 1 a278 1 .El d674 1 a674 1 .Sh EXAMPLE d699 1 a699 1 @ 1.11 log @s/IPSec/IPsec/. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.89 2001/08/17 07:16:38 itojun Exp $ d280 1 a280 2 specifies the peer's identifier as it is specified with .Ic my_identifier . d284 15 a298 2 .Xr racoon 8 will just warn it at the moment even if you defined it. d335 1 a335 1 If you do not want to verify the remote peer's certificate for some reason, d350 8 d417 4 a420 1 dynamically and the communication needs IPsec tunnel mode. d441 1 a441 1 .Ic des , 3des , blowfish , cast d546 1 a546 1 .It Ic identifier Ar idtype ; d548 1 a548 15 Instead use .Ic my_identifier directives. .\" .It Ic my_identifier Ar idtype ... ; specifies ID type to use for the phase 2 negotiation. address is used as the default. See the .Ic my_identifier directive above in .Ic remote for its usage. This is always for the initiator, not the responder. .Xr racoon 8 as the responder can handle only the IP address type. @ 1.10 log @upgrade to KAME 2001/8/31. @ text @d397 1 a397 1 dynamically and the communication needs IPSec tunnel mode. d482 1 a482 1 defines the parameters of the IKE phase 2 (IPSec-SA establishment). @ 1.9 log @sync with 2001/8/2 KAME racoon/libipsec. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.85 2001/07/17 02:05:20 sakane Exp $ d46 2 a47 2 negotiates security associations for itself (ISAKMP SA) and for kernel IPsec (IPsec SA). d103 3 a105 3 means hexa-decimal or decimal number. The former is expressed with .Ql 0x . d109 1 a109 1 means any string enclosed d113 1 a113 1 means IPv6 and IPv4 address. d115 1 a115 1 means TCP/UDP port number. d122 2 a123 1 .Ic sec , secs , second , seconds , min , mins , minute , minutes , a124 3 .It Ar byteunit is one of following: .Ic B , byte , bytes , KB , MB , TB . d132 1 a132 1 .Sx File Include . d151 1 a151 1 .Ss File Include d328 1 a328 2 .It Ic lifetime byte Ar number Ar byteunit ; define a lifetime of a certain time or certain number of bytes a332 1 Note that the lifetime of bytes is unused right now. a447 1 .It Ic lifetime byte Ar number Ar byteunit ; d515 1 a515 2 .It Ic lifetime byte Ar number Ar byteunit ; define the lifetime of amount of time or number of bytes d550 3 d576 1 a576 1 .Pq used with esp d581 1 a581 1 .Pq used with esp authentication and AH d585 1 a585 1 .Pq used with ipcomp d661 1 a661 1 .Pq usually privileged user , d684 1 a684 2 lifetime byte 50 MB ; encryption_algorithm 3des, blowfish, twofish, rijndael ; d703 1 a703 1 .Xr racoon 8 d714 3 a716 2 Some statements may not yet be implemented. These will be added in the future. @ 1.8 log @No argument for .Os. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.77 2001/02/22 02:40:06 itojun Exp $ a208 4 .\".It Ic admin Ic [ Ar port ] ; .\"specify the port for connecting to .\".Xr kmpstat 8 . .\"The default port is 61225. d278 1 a278 1 will get DN from the certificate. d302 10 a311 2 .It Ic peers_certfile Ar certfile ; When the peer does not send a certificate, d313 2 a314 1 can use this certificate as the peer's certificate. d343 6 d388 18 d440 1 a440 1 .Ic pre_shared_key, rsasig , dsssig , rsaenc , rsarev, gssapi_krb . d635 1 a635 3 Use KAME interpretation regarding to proposal for SA bundle. The default value is .Ic off . d644 2 d706 1 a706 1 .\".Xr kmpstat 8 , @ 1.7 log @add section to xref @ text @d32 1 a32 1 .Os KAME @ 1.6 log @document complex_bundle. sync with kame @ text @d515 1 a515 1 .Xr racoon @ 1.5 log @sync with 2/22 code. -B and -Z, bundle proposal interpretation, and some other fixes. XXX WARNS?=0 in racoon/Makefile is necessary to compile yacc-generated files (static function, generated by yacc, is never used). @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.76 2001/02/22 01:11:42 sakane Exp $ d602 15 @ 1.4 log @Merge notsnap20010126 import. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.73 2001/01/26 10:16:26 sakane Exp $ d141 10 a150 2 will search this directory if a certificate or certificate request is received. d574 2 a601 11 .El .\" .Ss Static SA configuration .Bl -tag -width Ds -compact .It Ic static_sa Ar parameters specifies static SA. This .Ar parameters will be passed to .Xr setkey 8 . Not yet. @ 1.3 log @Merge conflicts from notsnap20010124 import. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.69 2001/01/24 05:46:25 sakane Exp $ d46 1 a46 1 negotiates security association for itself (ISAKMP SA) d49 1 a49 1 Each directives are composed by a tag, and statements enclosed by d65 1 a65 2 Parameters shown in square brackets d73 1 a73 1 you have to pay attention to describing d75 1 a75 1 number. d78 1 a78 1 number always are enclosed by d82 1 a82 1 They are not optional keyword. d91 1 a91 1 between a choice of optional parameters. d116 1 a116 1 The port number always are enclosed by d132 1 a132 1 specifies a path to include file. d136 1 a136 1 specifies a file including pre-shared key for various ID. d141 1 a141 1 will search this directory if the certificate or certificate request d148 1 a148 1 other configuration file can be included. d152 1 a152 1 is obsoleted. d155 1 a155 1 directives. d160 1 a160 1 specifies various timer. d164 2 a165 2 maximum trying count to send. Default count is 5. d167 2 a168 3 interval to resend. This unit is second. Default timer is 10 second. d170 2 a171 2 the number of packets per a send. Default is 1 time. d173 2 a174 1 Default timer is 15 seconds. d176 2 a177 2 Default timer is 10 seconds. timer for waiting to complete each phase. d188 2 a189 2 will listen to all available interface addresses. The followings are the list of statements. d195 1 a195 1 If it is specified, d197 4 a200 3 will only listen to its address. Default port is 500 as IANA defines. You can define more than one definition. d204 1 a204 1 .\"Default port is 61225. d206 2 a207 2 require all addresses for ISAKMP must be bound. It will be ignored when you don't specify any addresses. d218 10 a227 3 defines the parameters of IKE phase 1 per remote node. Default port is 500. The followings are the list of statements. d232 5 a236 1 defined exchange mode of phase 1. d239 2 a240 2 means to use IPSEC-DOI specified RFC 2407. You can omit it. d243 2 a244 2 means to use SIT_IDENTITY_ONLY specified RFC 2407. You can omit it. d247 1 a247 1 is obsoleted. d252 2 a253 1 specifies my identifier and its type to use in phase 1 negotiation. d255 1 a255 1 can be used as d257 1 a257 1 Each usage are the following. d259 3 a261 3 .It Ic my_identifier Ic address ; declares to use the type of IP address. It is default if you don't specify the identifier. d263 1 a263 1 defines the type of USER_FQDN. d265 1 a265 1 defines the type of FQDN. d267 1 a267 1 defines the type of KEY_ID. d269 1 a269 1 defines the type of ASN.1 distinguished name. d278 1 a278 1 specifies peer's identifier like d299 1 a299 1 When the peer don't send any certificate, d301 1 a301 1 can use this certificate as peer's. d304 2 a305 2 If you don't want to send any certificate in some reasons, you may set off. default is on. d308 2 a309 2 If you don't want to send any certificate request in some reasons, you may set off. Default is on. d312 3 a314 2 If you don't want to verify the certificate in some reasons, you may set off. default is on. d318 2 a319 1 define each lifetime of time or bytes which are to be proposed on phase 1. d321 3 a323 3 the peer if you don't specify it(them). Their individually can be specified in each proposals. Note that the lifetime of bytes is useless at the moment. d326 2 a327 2 enable to send INITIAL-CONTACT message. default value is d331 3 a333 2 specifies the action of lifetime length and PFS of phase 2 selection on the responder side. default level is d340 1 a340 1 the responder obey the initiator anytime. d344 2 a345 2 Otherwise rejects the proposal. If PFS is not required by the responder, the responder obeys the proposal. d347 1 a347 1 the initiator's one, then the responder reject the proposal. d350 1 a350 1 responder use the initiator's one. d352 2 a353 2 shorter than the initiator's one, the responder uses own length AND send RESPONDER-LIFETIME notify message to a initiator in the d359 1 a359 1 responder rejects the proposal. d361 1 a361 1 the initiator's one, then the responder reject the proposal. d367 1 a367 1 Default is off. d373 1 a373 1 Default size is 16 bytes. d381 1 a381 1 define encryption algorithm for phase 1 negotiation. d388 1 a388 1 In the case of other transform, must not use this statement. d391 1 a391 1 define hash algorithm for phase 1 negotiation. d399 1 a399 1 define the authentication method for phase 1 negotiation. d402 1 a402 1 is only one: d406 1 a406 1 define the group of Diffie-Hellman exponentiations. d413 1 a413 1 you must define same DH group in each proposals. d416 2 a417 2 define lifetime of phase 1 SA eay proposal. Refer to the above description of d434 1 a434 1 The policy directive is obsoleted, policies are now in the SPD. d450 5 a454 3 defines the parameters of IKE phase 2 (IPsec-SA establishment). .Ar source_id destination_id are constructed like the following. d466 1 a466 1 It is not like a filter rule. d469 1 a469 1 3ffe:501:4819:1000:/64 is not match with it. d475 2 a476 2 If you don't require PFS then you can omit this directive. Any proposal will be accepted if you don't specify it. d484 6 a489 5 define each lifetime of time or bytes which are to be used IPsec-SA. Any proposal will be accepted, and the attribute(s) will be not proposed to the peer if you don't specify it(them). See .Sx proposal_check d493 1 a493 1 is obsoleted. d499 5 a503 5 specifies ID type to use phase 2 negotiation. The type of address is used as default. See .Sx my_identifier directive in d506 1 a506 1 It is always for initiator, not responder. d508 1 a508 1 as responder can handle only IP address type. d516 7 a522 5 in phase 2 proposals even if there is a algorithm which will not be used. These algorithms are define by using the following three directives. .Xr racoon 8 will compute actual phase 2 proposals by computing permutation of the specified algorithms, and then combining them with security protocol specified by SPD. d527 1 a527 1 are specified, we have four combination for use with ESP, d529 1 a529 1 Then, based on SPD settings, d560 1 a560 1 is one of the following: d564 1 a564 1 Default is d572 1 a572 1 The followings are the list of statements. d575 2 a576 2 enable to randomize a value in padding. Default is on. d578 2 a579 2 enable to randomize length of padding. Default is off. d581 1 a581 1 define a maximum length of padding. d583 2 a584 2 .Ic randomize_length is off, it is ignored. Default is 20 bytes. d586 2 a587 2 means to set the number of pad bytes minus one into last part of the padding. Default is on. d590 1 a590 1 Default is off. d616 1 a616 1 Key start with d618 1 a618 1 means hexa-decimal string. d625 1 a625 1 The following is a sample of the configuration file. d665 1 d675 2 a676 2 Some statements may not be implemented. These will be worked in the future. @ 1.2 log @location of manpage @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.68 2000/12/17 21:17:53 sakane Exp $ d396 1 d463 1 @ 1.1 log @Initial revision @ text @d605 1 a605 1 path pre_shared_key "/usr/local/v6/etc/psk.txt" ; @ 1.1.1.1 log @KAME racoon, 2000/12/29 @ text @@ 1.1.1.2 log @Bring in latest racoon/libipsec from KAME (not part of a snap kit). Includes several racoon bugfixes, including ones that fix coredumps when using GSSAPI authentication for Phase 1. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.69 2001/01/24 05:46:25 sakane Exp $ a395 1 Or you can define 1, 2, or 5 as the DH group number. a461 1 Or you can define 1, 2, or 5 as the DH group number. @ 1.1.1.3 log @Bring in latest racoon/libipsec from KAME (not part of a snap kit). Includes a few bugfixes from, including a re-key problem and memory leak when doing GSSAPI authentication for Phase 1. Also some better config file documentation. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.73 2001/01/26 10:16:26 sakane Exp $ d46 1 a46 1 negotiates security associations for itself (ISAKMP SA) d49 1 a49 1 Each directive is composed by a tag, and statements are enclosed by d65 2 a66 1 Square brackets d74 1 a74 1 you have to pay attention when this manual is describing d76 1 a76 1 numbers. d79 1 a79 1 number is always enclosed by d83 1 a83 1 In this case, the port number is not an optional keyword. d92 1 a92 1 a choice between optional parameters. d117 1 a117 1 The port number is always enclosed by d133 1 a133 1 specifies a path to include a file. d137 1 a137 1 specifies a file containing pre-shared key(s) for various ID(s). d142 1 a142 1 will search this directory if a certificate or certificate request d149 1 a149 1 other configuration files can be included. d153 1 a153 1 is obsolete. d156 1 a156 1 directive. d161 1 a161 1 specifies various timer values. d165 2 a166 2 the maximum number of retries to send. The default is 5. d168 3 a170 2 the interval to resend, in seconds. The default time is 10 seconds. d172 2 a173 2 the number of packets per send. The default is 1. d175 1 a175 2 the maximum time it should take to complete phase 1. The default time is 15 seconds. d177 2 a178 2 the maximum time it should take to complete phase 2. The default time is 10 seconds. d189 2 a190 2 will listen on all of the available interface addresses. The following is the list of valid statements: d196 1 a196 1 If this is specified, d198 3 a200 4 will only listen on .Ar address . The default port is 500, which is specified by IANA. You can provide more than one address definition. d204 1 a204 1 .\"The default port is 61225. d206 2 a207 2 require that all addresses for ISAKMP must be bound. This statement will be ignored if you do not specify any addresses. d218 3 a220 10 specifies the parameters for IKE phase 1 for each remote node. The default port is 500. If .Ic anonymous is specified, the statements apply to all peers which do not match any other .Ic remote directive. .Pp The following are valid statements. d225 1 a225 5 defines the exchange mode for phase 1 when racoon is the initiator. Also it means the acceptable exchange mode when racoon is responder. More than one mode can be specified by separating them with a comma. All of the modes are acceptable. The first exchange mode is what racoon uses when it is the initiator. d228 2 a229 2 means to use IPSEC-DOI as specified RFC 2407. You can omit this statement. d232 2 a233 2 means to use SIT_IDENTITY_ONLY as specified RFC 2407. You can omit this statement. d236 1 a236 1 is obsolete. d241 1 a241 2 specifies the identifier sent to the remote host and the type to use in the phase 1 negotiation. d243 1 a243 1 can be used as an d245 1 a245 1 they are used like: d247 3 a249 3 .It Ic my_identifier Ic address Bq Ar address ; the type is the IP address. This is the default type if you do not specify an identifier to use. d251 1 a251 1 the type is a USER_FQDN (user fully-qualified domain name). d253 1 a253 1 the type is a FQDN (fully-qualified domain name). d255 1 a255 1 the type is a KEY_ID. d257 1 a257 1 the type is an ASN.1 distinguished name. d266 1 a266 1 specifies the peer's identifier as it is specified with d287 1 a287 1 When the peer does not send a certificate, d289 1 a289 1 can use this certificate as the peer's certificate. d292 2 a293 2 If you do not want to send a certificate for some reason, set this to off. The default is on. d296 2 a297 2 If you do not want to send a certificate request for some reason, set this to off. The default is on. d300 2 a301 3 If you do not want to verify the remote peer's certificate for some reason, set this to off. The default is on. d305 1 a305 2 define a lifetime of a certain time or certain number of bytes which will be proposed in the phase 1 negotiations. d307 3 a309 3 the peer if you do not specify it(them). They can be individually specified in each proposal. Note that the lifetime of bytes is unused right now. d312 2 a313 2 enable this to send an INITIAL-CONTACT message. The default value is d317 2 a318 3 specifies the action of lifetime length and PFS of the phase 2 selection on the responder side. The default level is d325 1 a325 1 the responder will obey the initiator anytime. d329 2 a330 2 Otherwise it rejects the proposal. If PFS is not required by the responder, the responder will obey the proposal. d332 1 a332 1 the initiator's one, then the responder will reject the proposal. d335 1 a335 1 responder will use the initiator's one. d337 2 a338 2 shorter than the initiator's one, the responder uses its own length AND sends a RESPONDER-LIFETIME notify message to an initiator in the d344 1 a344 1 responder will reject the proposal. d346 1 a346 1 the initiator's one, then the responder will reject the proposal. d352 1 a352 1 The default is off. d358 1 a358 1 The default size is 16 bytes. d366 1 a366 1 specify the encryption algorithm used for the phase 1 negotiation. d373 1 a373 1 For other transforms, this statement should not be used. d376 1 a376 1 define the hash algorithm used for the phase 1 negotiation. d384 1 a384 1 defines the authentication method used for the phase 1 negotiation. d387 1 a387 1 is one of: d391 1 a391 1 define the group used for the Diffie-Hellman exponentiations. d398 1 a398 1 you must define same DH group in each proposal. d401 2 a402 2 define lifetime of the phase 1 SA proposal. Refer to the description of d419 1 a419 1 The policy directive is obsolete, policies are now in the SPD. d435 3 a437 5 defines the parameters of the IKE phase 2 (IPSec-SA establishment). .Ar source_id and .Ar destination_id are constructed like: d449 1 a449 1 This is not like a filter rule. d452 1 a452 1 3ffe:501:4819:1000:/64 will not match. d458 2 a459 2 If you do not require PFS then you can omit this directive. Any proposal will be accepted if you do not specify one. d467 5 a471 6 define the lifetime of amount of time or number of bytes which are to be used IPsec-SA. Any proposal will be accepted, and no attribute(s) will be proposed to the peer if you do not specify it(them). See the .Ic proposal_check d475 1 a475 1 is obsolete. d481 5 a485 5 specifies ID type to use for the phase 2 negotiation. address is used as the default. See the .Ic my_identifier directive above in d488 1 a488 1 This is always for the initiator, not the responder. d490 1 a490 1 as the responder can handle only the IP address type. d498 5 a502 7 in the phase 2 proposals even if there is a algorithm which will not be used. These algorithms are define by using the following three directives, and they are lined with single comma as the separator. .Xr racoon 8 will compute the actual phase 2 proposals by computing the permutation of the specified algorithms, and then combining them with the security protocol specified by the SPD. d507 1 a507 1 are specified as algorithms, we have four combinations for use with ESP, d509 1 a509 1 Then, based on the SPD settings, d540 1 a540 1 is one of following: d544 1 a544 1 The default is d552 1 a552 1 The following are valid statements: d555 2 a556 2 enable using a randomized value for padding. The default is on. d558 2 a559 2 the pad length is random. The default is off. d561 1 a561 1 define a maximum padding length. d563 2 a564 2 .Ic randomize_length is off, this is ignored. The default is 20 bytes. d566 2 a567 2 means to put the number of pad bytes minus one into last part of the padding. The default is on. d570 1 a570 1 The default is off. d596 1 a596 1 Keys which start with d598 1 a598 1 are hexa-decimal strings. d605 1 a605 1 The following shows how the remote directive should be configured. a644 1 .Xr setkey 8 d654 2 a655 2 Some statements may not yet be implemented. These will be added in the future. @ 1.1.1.4 log @KAME racoon as of 2001/2/22 @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.76 2001/02/22 01:11:42 sakane Exp $ d141 2 a142 10 will search this directory if a certificate or certificate request is received. .It Ic path backupsa Ar file ; specifies a file to be stored a SA information which is negotiated by racoon. .Xr racoon 8 will install SA(s) from the file with a boot option .Fl B . The file is increasing because .Xr racoon 8 simply add a SA to the file at the moment. You should maintain the file manually. a565 2 If you put too high logging level on slower machines, IKE negotiation can fail due to timing constraint changes. d592 11 @ 1.1.1.5 log @KAME racoon as of 2001/03/08. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.77 2001/02/22 02:40:06 itojun Exp $ a601 15 .El .Ss Special directives .Bl -tag -width Ds -compact .It Ic complex_bundle (on \(ba off) ; Use KAME interpretation regarding to proposal for SA bundle. The default value is .Ic off . Normally .Dq IP AH ESP IP payload is proposed as .Dq AH tunnel and ESP tunnel . The interpretation is more common to other IKE implementations, however, it allows very limited set of combinations for proposals. With the option enabled, it will be proposed as .Dq AH transport and ESP tunnel . @ 1.1.1.6 log @bring in latest racoon/libipsec from KAME. lots of lots of stability fixes. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.85 2001/07/17 02:05:20 sakane Exp $ d209 4 d282 1 a282 1 will get DN from Subject field in the certificate. d306 2 a307 10 .It Ic peers_certfile ( dnssec \*(Ba Ar certfile ) ; If .Ic dnssec is defined, .Xr racoon 8 will ignore the CERT payload from the peer, and try to get the peer's certificate from DNS instead. If .Ar certfile is defined, d309 1 a309 2 will ignore the CERT payload from the peer, and will use this certificate as the peer's certificate. a337 6 .It Ic passive (on \(ba off) ; If you do not want to initiate the negotiation, set this to on. The default value is .Ic off . It is useful for a server. .\" a376 18 .It Ic generate_policy (on \(ba off) ; This directive is for the responder. Therefore you should set .Ic passive on in order that .Xr racoon 8 only becomes a responder. If the responder does not have any policy in SPD during phase 2 negotiation, and the directive is set on, then .Xr racoon 8 will choice the first proposal in the SA payload from the initiator, and generate policy entries from the proposal. It is useful to negotiate with the client which is allocated IP address dynamically and the communication needs IPSec tunnel mode. This directive is ignored in the initiator case. The default value is .Ic off . .\" d411 1 a411 1 .Ic pre_shared_key, rsasig , gssapi_krb . d606 3 a608 1 defines the interpretation of proposal in the case of SA bundle. a616 2 The default value is .Ic off . d677 1 a677 1 .\".Xr racoonctl 8 , @ 1.1.1.7 log @KAME as of 2001/8/31 @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.89 2001/08/17 07:16:38 itojun Exp $ d46 2 a47 2 negotiates security associations for itself (ISAKMP SA, or phase 1 SA) and for kernel IPsec (IPsec SA, or phase 2 SA). d103 3 a105 3 means a hexadecimal or a decimal number. The former must be prefixed with .Ql Li 0x . d109 1 a109 1 means any string enclosed in d113 1 a113 1 means IPv6 and/or IPv4 address. d115 1 a115 1 means a TCP/UDP port number. d122 1 a122 2 .Ic sec , secs , second , seconds , .Ic min , mins , minute , minutes , d124 3 d134 1 a134 1 .Sx File Inclusion . d153 1 a153 1 .Ss File Inclusion d330 2 a331 1 define a lifetime of a certain time d336 1 d452 1 d520 2 a521 1 define the lifetime of amount of time a555 3 For algorithms that can take variable-length keys, algorithm names can be followed by a key length, like .Dq Li blowfish 448 . d579 1 a579 1 .Pq used with ESP d584 1 a584 1 .Pq used with ESP authentication and AH d588 1 a588 1 .Pq used with IPComp d664 1 a664 1 .Pq usually the privileged user , d687 2 a688 1 encryption_algorithm 3des, blowfish 448, twofish, rijndael ; d707 1 a707 1 .Xr racoon 8 , d718 2 a719 3 Some statements may not be handled by .Xr racoon 8 yet. @ 1.1.1.8 log @KAME racoon as of 2002/4/26 @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.97 2002/03/05 15:34:59 sakane Exp $ d280 2 a281 1 specifies the peer's identifier to be received. d285 2 a286 15 If it is defined, the behavior of the verification depends on the flag of .Ic verify_identifier . The usage of .Ar idtype is same to .Ic my_identifier . .\" .It Ic verify_identifier (on \(ba off) ; If you want to verify the peer's identifier, set this to on. In this case, if the value defined by .Ic peers_identifier is not same to the peer's identifier in the ID payload, the negotiation will failed. The default is off. d323 1 a323 1 If you do not want to verify the peer's certificate for some reason, a337 8 This message is useful only when the implementation of the responder choices an old SA when there are multiple SAs which are different established time, and the initiator reboots. If racoon did not use the message, the responder would use an old SA even when an new SA was established. The KAME stack has the switch in the system wide value, net.key.preferred_oldsa. when the value is zero, the stack always use an new SA. d397 1 a397 4 dynamically. Note that inappropriate policy might be installed by the initiator because the responder just installs policies as the initiator proposes. So that other communication might fail if such policies installed. d418 1 a418 1 .Ic des , 3des , blowfish , cast128 d482 1 a482 1 defines the parameters of the IKE phase 2 (IPsec-SA establishment). d523 6 d530 10 a539 2 is obsolete. It does not make sense to specify a identifier in the phase 2. @ 1.1.1.9 log @KAME racoon as of 2002/11/20 @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.101 2002/07/17 03:43:38 sakane Exp $ d222 1 a222 1 If d224 1 a224 1 is specified, the statements apply to all peers which do not match d277 1 a277 1 .El d418 3 a420 4 Note that inappropriate policy might be installed into the responder's SPD by the initiator. So that other communication might fail if such policies installed due to some policy mismatches between the initiator and the responder. d673 1 a673 1 .Sh EXAMPLES d698 1 a698 1 .Pp @ 1.1.1.10 log @kame racoon 2003/7/12. lots of lots of stability fixes. @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.106 2003/07/05 00:02:56 itojun Exp $ d67 1 a67 1 .Ql \&[ d69 1 a69 1 .Ql \&] d79 1 a79 1 .Ql \&[ d81 1 a81 1 .Ql \&] . d87 1 a87 1 .Bq Bq Ar port . d94 1 a94 1 .Ql \&( d96 1 a96 1 .Ql \&) d117 1 a117 1 .Ql \&[ d119 1 a119 1 .Ql \&] . d241 1 a241 1 means to use IPsec DOI as specified RFC 2407. d305 1 a305 1 .It Ic x509 Ar certfile Ar privkeyfile ; d399 1 a399 1 .It Ic support_proxy (on \(ba off) ; d447 1 a447 1 .It Ic hash_algorithm Ar algorithm ; d568 1 a568 1 .Ic des , 3des , hmac_md5 , d629 1 a629 2 .Ic randomize_length is off, this is ignored. a726 5 .\" .Sh SECURITY CONSIDERATIONS The use of IKE phase 1 aggressive mode is not recommended, as describved in .Li http://www.kb.cert.org/vuls/id/886601 . @ 1.1.1.11 log @KAME racoon as of 2004/4/12 @ text @d1 1 a1 1 .\" $KAME: racoon.conf.5,v 1.109 2003/12/17 01:43:57 itojun Exp $ d467 2 a468 4 .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. d535 2 a536 4 .Ic modp768 , modp1024 , modp1536 , .Ic modp2048 , modp3072 , modp4096 , .Ic modp6144 , modp8192 . Or you can define 1, 2, 5, 14, 15, 16, 17 or 18 as the DH group number. a727 3 .Pp Diffie-Hellman computation can take a very long time, and may cause unwanted timeouts, specifically when large D-H group is used. @