1 .\" $NetBSD: racoonctl.8,v 1.21 2009/03/12 10:57:26 tteras Exp $
3 .\" Id: racoonctl.8,v 1.6 2006/05/07 21:32:59 manubsd Exp
5 .\" Copyright (C) 2004 Emmanuel Dreyfus
6 .\" All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the project nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .Nd racoon administrative control tool
50 .Op isakmp|esp|ah|ipsec
59 .Op isakmp|esp|ah|ipsec
68 .Op Fl n Ar remoteconf
92 operation, if ipsec-tools was configured with adminport support.
97 is done through a UNIX socket.
98 By changing the default mode and ownership
99 of the socket, you can allow non-root users to alter
101 behavior, so do that with caution.
103 The following general options are available:
107 Hexdump sent admin port commands.
110 Mainly for show-sa command.
112 Specify unix socket name used to connecting racoon.
116 The following commands are available:
121 to reload its configuration file.
124 .It show-sa Op isakmp|esp|ah|ipsec
125 Dump the SA: All the SAs if no SA class is provided, or either ISAKMP SAs,
126 IPsec ESP SAs, IPsec AH SAs, or all IPsec SAs.
129 to increase verbosity.
130 .It get-sa-cert Oo inet|inet6 Oc Ar src dst
131 Output the raw certificate that was used to authenticate the phase 1
136 .It flush-sa Op isakmp|esp|ah|ipsec
137 is used to flush all SAs if no SA class is provided, or a class of SAs,
138 either ISAKMP SAs, IPsec ESP SAs, IPsec AH SAs, or all IPsec SAs.
139 .It establish-sa Oo Fl w Oc Oo Fl n Ar remoteconf Oc Oo Fl u Ar username \
141 Establish an SA, either an ISAKMP SA, IPsec ESP SA, or IPsec AH SA.
144 can be used when establishing an ISAKMP SA while hybrid auth is in use.
145 The exact remote block to use can be specified with
146 .Fl n Ar remoteconf .
148 will prompt you for the password associated with
150 and these credentials will be used in the Xauth exchange.
154 will make racoonctl wait until the SA is actually established or
158 has the following format:
160 .It isakmp {inet|inet6} Ar src Ar dst
161 .It {esp|ah} {inet|inet6} Ar src/prefixlen/port Ar dst/prefixlen/port
162 {icmp|tcp|udp|gre|any}
164 .It vpn-connect Oo Fl u Ar username Oc Ar vpn_gateway
165 This is a particular case of the previous command.
166 It will establish an ISAKMP SA with
168 .It delete-sa Ar saopts
169 Delete an SA, either an ISAKMP SA, IPsec ESP SA, or IPsec AH SA.
170 .It vpn-disconnect Ar vpn_gateway
171 This is a particular case of the previous command.
172 It will kill all SAs associated with
175 Listen for all events reported by
177 .It logout-user Ar login
178 Delete all SA established on behalf of the Xauth user
182 Command shortcuts are available:
183 .Bl -tag -width XXX -compact -offset indent
207 The command should exit with 0 on success, and non-zero on errors.
210 .Bl -tag -width 30n -compact
211 .It Pa /var/racoon/racoon.sock No or
212 .It Pa /var/run/racoon.sock
226 but remained undocumented for a while.
227 .An Emmanuel Dreyfus Aq manu@NetBSD.org