1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of IPSEC_SPIGRP
</TITLE>
6 Section: Maintenance Commands (
8)
<BR>Updated:
21 Jun
2000<BR><A HREF=
"#index">Index
</A>
7 <A HREF=
"http://localhost/cgi-bin/man/man2html">Return to Main Contents
</A><HR>
12 <A NAME=
"lbAB"> </A>
15 ipsec spigrp - group/ungroup IPSEC Security Associations
16 <A NAME=
"lbAC"> </A>
33 af1 dst1 spi1 proto1 [ af2 dst2 spi2 proto2 [ af3 dst3 spi3 proto3 [ af4 dst4 spi4 proto4 ] ] ]
46 SA1 [ SA2 [ SA3 [ SA4 ] ] ]
65 <A NAME=
"lbAD"> </A>
70 groups IPSEC Security Associations (SAs) together or ungroups
71 previously grouped SAs.
72 An entry in the IPSEC extended
73 routing table can only point
74 (via a destination address, a Security Parameters Index (SPI) and
75 a protocol identifier) to one SA.
76 If more than one transform must be applied to a given type of packet,
77 this can be accomplished by setting up several SAs
78 with the same destination address but potentially different SPIs and protocols,
79 and grouping them with
84 The SAs to be grouped,
85 specified by destination address (DNS name lookup, IPv4 dotted quad or IPv6 coloned hex), SPI
86 ('
0x'-prefixed hexadecimal number) and protocol (
"ah
",
"esp
",
"comp
" or
"tun
"),
87 are listed from the inside transform to the
89 in other words, the transforms are applied in
90 the order of the command line and removed in the reverse
92 The resulting SA group is referred to by its first SA (by
104 The --said option indicates that the SA IDs are to be specified as
105 one argument each, in the format
<proto
><af
><spi
>@
<dest
>. The SA IDs must
106 all be specified as separate parameters without the --said option or
107 all as monolithic parameters after the --said option.
110 The SAs must already exist and must not already
117 is invoked with only one SA specification,
118 it ungroups the previously-grouped set of SAs containing
122 The --label option identifies all responses from that command
123 invocation with a user-supplied label, provided as an argument to the
124 label option. This can be helpful for debugging one invocation of the
125 command out of a large number.
128 The command form with no additional arguments lists the contents of
129 /proc/net/ipsec_spigrp. The format of /proc/net/ipsec_spigrp is
130 discussed in
<A HREF=
"ipsec_spigrp.5.html">ipsec_spigrp
</A>(
5).
131 <A NAME=
"lbAE"> </A>
135 <DT><B>ipsec spigrp inet gw2
0x113 tun inet gw2
0x115 esp inet gw2
0x116 ah
</B>
138 groups
3 SAs together, all destined for
141 but with an IPv4-in-IPv4 tunnel SA applied first with SPI
144 then an ESP header to encrypt the packet with SPI
147 and finally an AH header to authenticate the packet with SPI
154 <DT><B>ipsec spigrp --said tun
.113@gw2 esp
.115@gw2 ah
.116@gw2
</B>
157 groups
3 SAs together, all destined for
160 but with an IPv4-in-IPv4 tunnel SA applied first with SPI
163 then an ESP header to encrypt the packet with SPI
166 and finally an AH header to authenticate the packet with SPI
173 <DT><B>ipsec spigrp --said tun:
<A HREF=
"mailto:233@3049">233@
3049</A>:
1::
1 esp:
<A HREF=
"mailto:235@3049">235@
3049</A>:
1::
1 ah:
<A HREF=
"mailto:236@3049">236@
3049</A>:
1::
1 </B>
176 groups
3 SAs together, all destined for
179 but with an IPv6-in-IPv6 tunnel SA applied first with SPI
182 then an ESP header to encrypt the packet with SPI
185 and finally an AH header to authenticate the packet with SPI
192 <DT><B>ipsec spigrp inet6
3049:
1::
1 0x233 tun inet6
3049:
1::
1 0x235 esp inet6
3049:
1::
1 0x236 ah
</B>
195 groups
3 SAs together, all destined for
198 but with an IPv6-in-IPv6 tunnel SA applied first with SPI
201 then an ESP header to encrypt the packet with SPI
204 and finally an AH header to authenticate the packet with SPI
210 <A NAME=
"lbAF"> </A>
213 /proc/net/ipsec_spigrp, /usr/local/bin/ipsec
214 <A NAME=
"lbAG"> </A>
217 <A HREF=
"ipsec.8.html">ipsec
</A>(
8),
<A HREF=
"ipsec_manual.8.html">ipsec_manual
</A>(
8),
<A HREF=
"ipsec_tncfg.8.html">ipsec_tncfg
</A>(
8),
<A HREF=
"ipsec_eroute.8.html">ipsec_eroute
</A>(
8),
218 <A HREF=
"ipsec_spi.8.html">ipsec_spi
</A>(
8),
<A HREF=
"ipsec_klipsdebug.8.html">ipsec_klipsdebug
</A>(
8),
<A HREF=
"ipsec_spigrp.5.html">ipsec_spigrp
</A>(
5)
219 <A NAME=
"lbAH"> </A>
222 Written for the Linux FreeS/WAN project
223 <<A HREF=
"http://www.freeswan.org/">http://www.freeswan.org/
</A>>
224 by Richard Guy Briggs.
225 <A NAME=
"lbAI"> </A>
228 Yes, it really is limited to a maximum of four SAs,
229 although admittedly it's hard to see why you would need more.
263 <A NAME=
"index"> </A><H2>Index
</H2>
265 <DT><A HREF=
"#lbAB">NAME
</A><DD>
266 <DT><A HREF=
"#lbAC">SYNOPSIS
</A><DD>
267 <DT><A HREF=
"#lbAD">DESCRIPTION
</A><DD>
268 <DT><A HREF=
"#lbAE">EXAMPLES
</A><DD>
269 <DT><A HREF=
"#lbAF">FILES
</A><DD>
270 <DT><A HREF=
"#lbAG">SEE ALSO
</A><DD>
271 <DT><A HREF=
"#lbAH">HISTORY
</A><DD>
272 <DT><A HREF=
"#lbAI">BUGS
</A><DD>
275 This document was created by
276 <A HREF=
"http://localhost/cgi-bin/man/man2html">man2html
</A>,
277 using the manual pages.
<BR>
278 Time:
21:
40:
18 GMT, November
11,
2003