summaryrefslogtreecommitdiff
path: root/regress/sys/netinet/ipsec/ipsec.conf
blob: 0f8d394978a053c8e940551db2e47e33fddb1afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
#	$OpenBSD: ipsec.conf,v 1.8 2020/12/21 00:47:18 bluhm Exp $
### regress ipsec ipsec.conf

# Install symmetric config by exchanging local and peer keywords.
FROM="from"
TO="to"
LOCAL="local"
PEER="peer"

## ESP

# ESP TRANSP

flow esp \
	$FROM	$SRC_ESP_TRANSP_IPV4	$TO	$IPS_ESP_TRANSP_IPV4 \
	$LOCAL	$SRC_ESP_TRANSP_IPV4	$PEER	$IPS_ESP_TRANSP_IPV4 \
	type	dontacq
flow esp \
	$FROM	$SRC_ESP_TRANSP_IPV6	$TO	$IPS_ESP_TRANSP_IPV6 \
	$LOCAL	$SRC_ESP_TRANSP_IPV6	$PEER	$IPS_ESP_TRANSP_IPV6 \
	type	dontacq

# ESP TRANSP SA

esp transport \
	from	$SRC_ESP_TRANSP_IPV4	to	$IPS_ESP_TRANSP_IPV4 \
	spi	0x10000441:0x10000442 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

esp transport \
	from	$SRC_ESP_TRANSP_IPV6	to	$IPS_ESP_TRANSP_IPV6 \
	spi	0x10000461:0x10000462 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

# ESP TUNNEL IPS

flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$IPS_ESP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV6/64	$TO	$IPS_ESP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
# icmp need to frag
flow esp proto icmp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$IPS_IN_IPV4 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq

flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$IPS_ESP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq
flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV6/64	$TO	$IPS_ESP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq

# ESP TUNNEL ECO

flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$ECO_ESP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV6/64	$TO	$ECO_ESP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
# icmp need to frag
flow esp proto icmp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$RT_IN_IPV4 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq

flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV4/24	$TO	$ECO_ESP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq
flow esp \
	$FROM	$SRC_ESP_TUNNEL_IPV6/64	$TO	$ECO_ESP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq

# ESP TUNNEL SA

esp tunnel \
	from	$SRC_OUT_IPV4	to	$IPS_IN_IPV4 \
	spi	0x10000841:0x10000842 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

esp tunnel \
	from	$SRC_OUT_IPV6	to	$IPS_IN_IPV6 \
	spi	0x10000861:0x10000862 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

## AH

# AH TRANSP

flow ah \
	$FROM	$SRC_AH_TRANSP_IPV4	$TO	$IPS_AH_TRANSP_IPV4 \
	$LOCAL	$SRC_AH_TRANSP_IPV4	$PEER	$IPS_AH_TRANSP_IPV4 \
	type	dontacq
flow ah \
	$FROM	$SRC_AH_TRANSP_IPV6	$TO	$IPS_AH_TRANSP_IPV6 \
	$LOCAL	$SRC_AH_TRANSP_IPV6	$PEER	$IPS_AH_TRANSP_IPV6 \
	type	dontacq

# AH TRANSP SA

ah transport \
	from	$SRC_AH_TRANSP_IPV4	to	$IPS_AH_TRANSP_IPV4 \
	spi	0x10002441:0x10002442 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

ah transport \
	from	$SRC_AH_TRANSP_IPV6	to	$IPS_AH_TRANSP_IPV6 \
	spi	0x10002461:0x10002462 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

# AH TUNNEL IPS

flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV4/24	$TO	$IPS_AH_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV6/64	$TO	$IPS_AH_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq

flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV4/24	$TO	$IPS_AH_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq
flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV6/64	$TO	$IPS_AH_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq

# AH TUNNEL ECO

flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV4/24	$TO	$ECO_AH_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq
flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV6/64	$TO	$ECO_AH_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	dontacq

flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV4/24	$TO	$ECO_AH_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq
flow ah \
	$FROM	$SRC_AH_TUNNEL_IPV6/64	$TO	$ECO_AH_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	dontacq

# AH TUNNEL SA

ah tunnel \
	from	$SRC_OUT_IPV4	to	$IPS_IN_IPV4 \
	spi	0x10002841:0x10002842 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

ah tunnel \
	from	$SRC_OUT_IPV6	to	$IPS_IN_IPV6 \
	spi	0x10002861:0x10002862 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

## IPIP

# IPIP TRANSP

flow ipip \
	$FROM	$SRC_IPIP_TRANSP_IPV4	$TO	$IPS_IPIP_TRANSP_IPV4 \
	$LOCAL	$SRC_IPIP_TRANSP_IPV4	$PEER	$IPS_IPIP_TRANSP_IPV4 \
	type	use
flow ipip \
	$FROM	$SRC_IPIP_TRANSP_IPV6	$TO	$IPS_IPIP_TRANSP_IPV6 \
	$LOCAL	$SRC_IPIP_TRANSP_IPV6	$PEER	$IPS_IPIP_TRANSP_IPV6 \
	type	use

# IPIP TRANSP SA

ipip transport \
	from	$SRC_IPIP_TRANSP_IPV4	to	$IPS_IPIP_TRANSP_IPV4 \
	spi	0x10004441:0x10004442

ipip transport \
	from	$SRC_IPIP_TRANSP_IPV6	to	$IPS_IPIP_TRANSP_IPV6 \
	spi	0x10004461:0x10004462

# IPIP TUNNEL IPS

flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV4/24	$TO	$IPS_IPIP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use
flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV6/64	$TO	$IPS_IPIP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use

flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV4/24	$TO	$IPS_IPIP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use
flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV6/64	$TO	$IPS_IPIP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use

# IPIP TUNNEL ECO

flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV4/24	$TO	$ECO_IPIP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use
flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV6/64	$TO	$ECO_IPIP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use

flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV4/24	$TO	$ECO_IPIP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use
flow ipip \
	$FROM	$SRC_IPIP_TUNNEL_IPV6/64	$TO	$ECO_IPIP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use

# IPIP TUNNEL SA

ipip tunnel \
	from	$SRC_OUT_IPV4	to	$IPS_IN_IPV4 \
	spi	0x10004841:0x10004842

ipip tunnel \
	from	$SRC_OUT_IPV6	to	$IPS_IN_IPV6 \
	spi	0x10004861:0x10004862

## IPCOMP

# IPCOMP TRANSP

flow ipcomp \
	$FROM	$SRC_IPCOMP_TRANSP_IPV4	$TO	$IPS_IPCOMP_TRANSP_IPV4 \
	$LOCAL	$SRC_IPCOMP_TRANSP_IPV4	$PEER	$IPS_IPCOMP_TRANSP_IPV4 \
	type	use
flow ipcomp \
	$FROM	$SRC_IPCOMP_TRANSP_IPV6	$TO	$IPS_IPCOMP_TRANSP_IPV6 \
	$LOCAL	$SRC_IPCOMP_TRANSP_IPV6	$PEER	$IPS_IPCOMP_TRANSP_IPV6 \
	type	use

# IPCOMP TRANSP SA

ipcomp transport \
	from	$SRC_IPCOMP_TRANSP_IPV4	to	$IPS_IPCOMP_TRANSP_IPV4 \
	spi	0x6441:0x6442

ipcomp transport \
	from	$SRC_IPCOMP_TRANSP_IPV6	to	$IPS_IPCOMP_TRANSP_IPV6 \
	spi	0x6461:0x6462

# IPCOMP TUNNEL IPS

flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV4/24	$TO	$IPS_IPCOMP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use
flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV6/64	$TO	$IPS_IPCOMP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use

flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV4/24	$TO	$IPS_IPCOMP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use
flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV6/64	$TO	$IPS_IPCOMP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use

# IPCOMP TUNNEL ECO

flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV4/24	$TO	$ECO_IPCOMP_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use
flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV6/64	$TO	$ECO_IPCOMP_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV4		$PEER	$IPS_IN_IPV4 \
	type	use

flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV4/24	$TO	$ECO_IPCOMP_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use
flow ipcomp \
	$FROM	$SRC_IPCOMP_TUNNEL_IPV6/64	$TO	$ECO_IPCOMP_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_OUT_IPV6		$PEER	$IPS_IN_IPV6 \
	type	use

# IPCOMP TUNNEL SA

ipcomp tunnel \
	from	$SRC_OUT_IPV4	to	$IPS_IN_IPV4 \
	spi	0x6841:0x6842

ipcomp tunnel \
	from	$SRC_OUT_IPV6	to	$IPS_IN_IPV6 \
	spi	0x6861:0x6862

## BUNDLE

# BUNDLE TRANSP

flow ipcomp \
	$FROM	$SRC_BUNDLE_TRANSP_IPV4	$TO	$IPS_BUNDLE_TRANSP_IPV4 \
	$LOCAL	$SRC_BUNDLE_TRANSP_IPV4	$PEER	$IPS_BUNDLE_TRANSP_IPV4 \
	type	dontacq
flow ipcomp \
	$FROM	$SRC_BUNDLE_TRANSP_IPV6	$TO	$IPS_BUNDLE_TRANSP_IPV6 \
	$LOCAL	$SRC_BUNDLE_TRANSP_IPV6	$PEER	$IPS_BUNDLE_TRANSP_IPV6 \
	type	dontacq

# BUNDLE TRANSP SA

ipcomp transport \
	from	$SRC_BUNDLE_TRANSP_IPV4	to	$IPS_BUNDLE_TRANSP_IPV4 \
	spi	0x8441:0x8442 \
	bundle	identifier
esp transport \
	from	$SRC_BUNDLE_TRANSP_IPV4	to	$IPS_BUNDLE_TRANSP_IPV4 \
	spi	0x10018441:0x10018442 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier
ah transport \
	from	$SRC_BUNDLE_TRANSP_IPV4	to	$IPS_BUNDLE_TRANSP_IPV4 \
	spi	0x10028441:0x10028442 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier

ipcomp transport \
	from	$SRC_BUNDLE_TRANSP_IPV6	to	$IPS_BUNDLE_TRANSP_IPV6 \
	spi	0x8461:0x8462 \
	bundle	identifier
esp transport \
	from	$SRC_BUNDLE_TRANSP_IPV6	to	$IPS_BUNDLE_TRANSP_IPV6 \
	spi	0x10018461:0x10018462 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier
ah transport \
	from	$SRC_BUNDLE_TRANSP_IPV6	to	$IPS_BUNDLE_TRANSP_IPV6 \
	spi	0x10028461:0x10028462 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier

# BUNDLE TUNNEL IPS

flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV4/24	$TO	$IPS_BUNDLE_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_BUNDLE_IPV4		$PEER	$IPS_BUNDLE_IPV4 \
	type	dontacq
flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV6/64	$TO	$IPS_BUNDLE_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_BUNDLE_IPV4		$PEER	$IPS_BUNDLE_IPV4 \
	type	dontacq

flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV4/24	$TO	$IPS_BUNDLE_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_BUNDLE_IPV6		$PEER	$IPS_BUNDLE_IPV6 \
	type	dontacq
flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV6/64	$TO	$IPS_BUNDLE_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_BUNDLE_IPV6		$PEER	$IPS_BUNDLE_IPV6 \
	type	dontacq

# BUNDLE TUNNEL ECO

flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV4/24	$TO	$ECO_BUNDLE_TUNNEL4_IPV4/24 \
	$LOCAL	$SRC_BUNDLE_IPV4		$PEER	$IPS_BUNDLE_IPV4 \
	type	dontacq
flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV6/64	$TO	$ECO_BUNDLE_TUNNEL4_IPV6/64 \
	$LOCAL	$SRC_BUNDLE_IPV4		$PEER	$IPS_BUNDLE_IPV4 \
	type	dontacq

flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV4/24	$TO	$ECO_BUNDLE_TUNNEL6_IPV4/24 \
	$LOCAL	$SRC_BUNDLE_IPV6		$PEER	$IPS_BUNDLE_IPV6 \
	type	dontacq
flow ipcomp \
	$FROM	$SRC_BUNDLE_TUNNEL_IPV6/64	$TO	$ECO_BUNDLE_TUNNEL6_IPV6/64 \
	$LOCAL	$SRC_BUNDLE_IPV6		$PEER	$IPS_BUNDLE_IPV6 \
	type	dontacq

# BUNDLE TUNNEL SA

ipcomp tunnel \
	from	$SRC_BUNDLE_IPV4	to	$IPS_BUNDLE_IPV4 \
	spi	0x8841:0x8842 \
	bundle	identifier
esp tunnel \
	from	$SRC_BUNDLE_IPV4	to	$IPS_BUNDLE_IPV4 \
	spi	0x10018841:0x10018842 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier
ah tunnel \
	from	$SRC_BUNDLE_IPV4	to	$IPS_BUNDLE_IPV4 \
	spi	0x10028841:0x10028842 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier

ipcomp tunnel \
	from	$SRC_BUNDLE_IPV6	to	$IPS_BUNDLE_IPV6 \
	spi	0x8861:0x8862 \
	bundle	identifier
esp tunnel \
	from	$SRC_BUNDLE_IPV6	to	$IPS_BUNDLE_IPV6 \
	spi	0x10018861:0x10018862 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier
ah tunnel \
	from	$SRC_BUNDLE_IPV6	to	$IPS_BUNDLE_IPV6 \
	spi	0x10028861:0x10028862 \
	authkey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	enckey	0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef \
	bundle	identifier