~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to programs/setup/setup.8.xml

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 
3
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
 
4
<!-- lifted from troff+man by doclifter -->
 
5
<refentry>
 
6
<refmeta>
 
7
<refentrytitle>IPSEC_SETUP</refentrytitle>
 
8
<manvolnum>8</manvolnum>
 
9
<refmiscinfo class='date'>23 July 2001</refmiscinfo>
 
10
</refmeta>
 
11
<refnamediv id='name'>
 
12
<refname>ipsec setup</refname>
 
13
<refpurpose>control IPsec subsystem</refpurpose>
 
14
</refnamediv>
 
15
<!-- body begins here -->
 
16
<refsynopsisdiv id='synopsis'>
 
17
<cmdsynopsis>
 
18
  <command>ipsec</command>    
 
19
    <arg choice='plain'><replaceable>setup</replaceable></arg>
 
20
    <group choice='opt'><arg choice='plain'>--show </arg><arg choice='plain'>--showonly </arg></group>
 
21
    <arg choice='plain'><replaceable>command</replaceable></arg>
 
22
</cmdsynopsis>
 
23
</refsynopsisdiv>
 
24
 
 
25
 
 
26
<refsect1 id='description'><title>DESCRIPTION</title>
 
27
<para><emphasis remap='I'>Setup</emphasis>
 
28
controls the FreeS/WAN IPsec subsystem,
 
29
including both the Klips kernel code and the Pluto key-negotiation daemon.
 
30
(It is a synonym for the &ldquo;rc&rdquo; script for the subsystem;
 
31
the system runs the equivalent of
 
32
<emphasis remap='B'>ipsec setup start</emphasis>
 
33
at boot time,
 
34
and
 
35
<emphasis remap='B'>ipsec setup stop</emphasis>
 
36
at shutdown time, more or less.)</para>
 
37
 
 
38
<para>The action taken depends on the specific
 
39
<emphasis remap='I'>command</emphasis>,
 
40
and on the contents of the
 
41
<emphasis remap='B'>config</emphasis>
 
42
<emphasis remap='B'>setup</emphasis>
 
43
section of the
 
44
IPsec configuration file (<filename>/etc/ipsec.conf</filename>,
 
45
see
 
46
<citerefentry><refentrytitle>ipsec.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
 
47
Current
 
48
<emphasis remap='I'>command</emphasis>s
 
49
are:</para>
 
50
<variablelist remap='TP'>
 
51
  <varlistentry>
 
52
  <term><emphasis remap='B'>start</emphasis></term>
 
53
  <listitem>
 
54
<para>start Klips and Pluto,
 
55
including setting up Klips to do crypto operations on the 
 
56
interface(s) specified in the configuration file,
 
57
and (if the configuration file so specifies)
 
58
setting up manually-keyed connections and/or
 
59
asking Pluto to negotiate automatically-keyed connections
 
60
to other security gateways</para>
 
61
  </listitem>
 
62
  </varlistentry>
 
63
  <varlistentry>
 
64
  <term><emphasis remap='B'>stop</emphasis></term>
 
65
  <listitem>
 
66
<para>shut down Klips and Pluto,
 
67
including tearing down all existing crypto connections</para>
 
68
  </listitem>
 
69
  </varlistentry>
 
70
  <varlistentry>
 
71
  <term><emphasis remap='B'>restart</emphasis></term>
 
72
  <listitem>
 
73
<para>equivalent to
 
74
<emphasis remap='B'>stop</emphasis>
 
75
followed by
 
76
<emphasis remap='B'>start</emphasis></para>
 
77
  </listitem>
 
78
  </varlistentry>
 
79
  <varlistentry>
 
80
  <term><emphasis remap='B'>status</emphasis></term>
 
81
  <listitem>
 
82
<para>report the status of the subsystem;
 
83
normally just reports
 
84
<emphasis remap='B'>IPsec running</emphasis>
 
85
and
 
86
<emphasis remap='B'>pluto pid </emphasis><emphasis remap='I'>nnn</emphasis><emphasis remap='P->B'></emphasis>,
 
87
or
 
88
<emphasis remap='B'>IPsec stopped</emphasis>,
 
89
and exits with status 0,
 
90
but will go into more detail (and exit with status 1)
 
91
if something strange is found.
 
92
(An &ldquo;illicit&rdquo; Pluto is one that does not match the process ID in
 
93
Pluto's lock file;
 
94
an &ldquo;orphaned&rdquo; Pluto is one with no lock file.)</para>
 
95
  </listitem>
 
96
  </varlistentry>
 
97
</variablelist>
 
98
 
 
99
<para>The
 
100
<emphasis remap='B'>stop</emphasis>
 
101
operation tries to clean up properly even if assorted accidents
 
102
have occurred,
 
103
e.g. Pluto having died without removing its lock file.
 
104
If
 
105
<emphasis remap='B'>stop</emphasis>
 
106
discovers that the subsystem is (supposedly) not running,
 
107
it will complain,
 
108
but will do its cleanup anyway before exiting with status 1.</para>
 
109
 
 
110
<para>Although a number of configuration-file parameters influence
 
111
<emphasis remap='I'>setup</emphasis>'s
 
112
operations, the key one is the
 
113
<emphasis remap='B'>interfaces</emphasis>
 
114
parameter, which must be right or chaos will ensue.</para>
 
115
 
 
116
<para>The
 
117
<option>--show</option>
 
118
and
 
119
<option>--showonly</option>
 
120
options cause
 
121
<emphasis remap='I'>setup</emphasis>
 
122
to display the shell commands that it would execute.
 
123
<option>--showonly</option>
 
124
suppresses their execution.
 
125
Only
 
126
<emphasis remap='B'>start</emphasis>,
 
127
<emphasis remap='B'>stop</emphasis>,
 
128
and
 
129
<emphasis remap='B'>restart</emphasis>
 
130
commands recognize these flags.</para>
 
131
</refsect1>
 
132
 
 
133
<refsect1 id='files'><title>FILES</title>
 
134
<!-- .ta \w'/proc/sys/net/ipv4/ip_forward'u+2n -->
 
135
<para>/etc/rc.d/init.d/ipsec    the script itself
 
136
<!-- .br -->
 
137
/etc/init.d/ipsec       alternate location for the script
 
138
<!-- .br -->
 
139
/etc/ipsec.conf IPsec configuration file
 
140
<!-- .br -->
 
141
/proc/sys/net/ipv4/ip_forward   forwarding control
 
142
<!-- .br -->
 
143
/var/run/ipsec.info     saved information
 
144
<!-- .br -->
 
145
/var/run/pluto.pid      Pluto lock file
 
146
<!-- .br -->
 
147
/var/run/ipsec_setup.pid        IPsec lock file</para>
 
148
</refsect1>
 
149
 
 
150
<refsect1 id='see_also'><title>SEE ALSO</title>
 
151
<para>ipsec.<citerefentry><refentrytitle>conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry><refentrytitle>ipsec</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>ipsec_manual</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>ipsec_auto</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>route</refentrytitle><manvolnum>8</manvolnum></citerefentry></para>
 
152
</refsect1>
 
153
 
 
154
<refsect1 id='diagnostics'><title>DIAGNOSTICS</title>
 
155
<para>All output from the commands
 
156
<emphasis remap='B'>start</emphasis>
 
157
and
 
158
<emphasis remap='B'>stop</emphasis>
 
159
goes both to standard
 
160
output and to
 
161
<citerefentry><refentrytitle>syslogd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
 
162
via
 
163
<citerefentry><refentrytitle>logger</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
 
164
Selected additional information is logged only to
 
165
<citerefentry><refentrytitle>syslogd</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
 
166
</refsect1>
 
167
 
 
168
<refsect1 id='history'><title>HISTORY</title>
 
169
<para>Written for the FreeS/WAN project
 
170
&lt;<ulink url='http://www.freeswan.org'>http://www.freeswan.org</ulink>&gt;
 
171
by Henry Spencer.</para>
 
172
</refsect1>
 
173
 
 
174
<refsect1 id='bugs'><title>BUGS</title>
 
175
<para>Old versions of
 
176
<citerefentry><refentrytitle>logger</refentrytitle><manvolnum>1</manvolnum></citerefentry>
 
177
inject spurious extra newlines onto standard output.</para>
 
178
</refsect1>
 
179
</refentry>
 
180