summaryrefslogtreecommitdiff
path: root/doc/connman-vpn-provider.config.5.in
blob: ef704352ccd7d145a9c0b3103cda4ec411afd743 (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
.\" connman-vpn-provider.config(5) manual page
.\"
.\" Copyright (C) 2015 Intel Corporation
.\"
.TH "connection_name.config" "5" "2015-10-15" ""
.SH NAME
connection_name.config \- ConnMan vpn connection provisioning file
.SH SYNOPSIS
.B @vpn_storagedir@/\fIconnection-name\fB.config
.SH DESCRIPTION
.P
\fIConnMan\fP's vpn connections are configured with so called
"\fBprovisioning files\fP" which reside under \fI@vpn_storagedir@/\fP.
The files can be named anything, as long as they contain only printable
ascii characers, for example letters, numbers and underscores. The file
must end with \fB.config\fP. Each VPN connection requires a provisioning
file, but multiple connections can be specified in the same file.
.SH "FILE FORMAT"
.P
The configuration file format is key file format.
It consists of sections (groups) of key-value pairs.
Lines beginning with a '#' and blank lines are considered comments.
Sections are started by a header line containing the section enclosed
in '[' and ']', and ended implicitly by the start of the next section
or the end of the file. Each key-value pair must be contained in a section.
.P
Description of sections and available keys follows:
.SS [global]
This section is optional, and can be used to describe the actual file. The
two allowed fields for this section are:
.TP
.BI Name= name
Name of the network.
.TP
.BI Description= description
Description of the network.
.SS [provider_*]
Each provisioned connection must start with a [provider_*] tag,
with * replaced by an unique name within the file.
The following fields are mandatory:
.TP
.B Type=OpenConnect \fR|\fB OpenVPN \fR|\fB VPNC \fR|\fB L2TP \fR|\fB PPTP
Specifies the VPN type.
.TP
.BI Host= IP
VPN server IP address.
.TP
.BI Domain= domain
Domain name for the VPN service.
.TP
The following field is optional:
.TP
.BI Networks= network / netmask / gateway [,...]
Networks behind the VPN. If all traffic should go through the VPN, this
field can be left out. The gateway can be left out. For IPv6 addresses,
only the prefix length is accepted as the netmask.
.SS OpenConnect
The following keys can be used for \fBopenconnect\fP(8) networks:
.TP
.BI OpenConnect.ServerCert= cert
SHA1 fingerprint of the VPN server's certificate.
.TP
.BI OpenConnect.CACert= cert
File containing additional CA certificates in addition to the system
trusted certificate authorities.
.TP
.BI OpenConnect.ClientCert= cert
Client certificate, if needed by web authentication.
.TP
.BI OpenConnect.MTU= mtu
Request \fImtu\fP from the server as the MTU of the tunnel.
.TP
.BI OpenConnect.Cookie= cookie
The resulting cookie of the authentication process. As the cookie lifetime
can be very limited, it does not usually make sense to add it into the
configuration file.
.TP
.BI OpenConnect.VPNHost= host
The final VPN server to use after completing the web authentication. Only
usable for extremely simple VPN configurations and should normally be set
only via the VPN Agent API.
.PP
If \fBOpenConnect.Cookie\fP, \fBOpenConnect.VPNHost\fP or
\fBOpenConnect.ServerCert\fP are missing, the VPN Agent will be contacted
to supply the information.
.SS OpenVPN
The following keys are mandatory for \fBopenvpn\fP(8) networks:
.TP
.BI OpenVPN.CACert= cert
Certificate authority file.
.TP
.BI OpenVPN.Cert= cert
Local peer's signed certificate.
.TP
.BI OpenVPN.Cert= cert
Local peer's signed certificate.
.TP
.BI OpenVPN.Key= key
Local peer's private key.
.TP
The following keys are optional for \fBopenvpn\fP(8) networks:
.TP
.BI OpenVPN.MTU= mtu
MTU of the tunnel.
.TP
.B OpenVPN.NSCertType=client \fR|\fB server
Peer certificate type, either \fBclient\fP or \fBserver\fP.
.TP
.BI OpenVPN.Protocol= protocol
Use \fIprotocol\fP.
.TP
.BI OpenVPN.Port= port
TCP/UDP port number.
.TP
.B OpenVPN.AuthUserPass=true \fR|\fB false
Authenticate on the server using username/password.
.TP
.BI OpenVPN.AskPass= file
Get certificate password from \fIfile\fP.
.TP
.B OpenVPN.AuthNoCache=true \fR|\fB false
Don't cache AskPass or AuthUserPass value.
.TP
.BI OpenVPN.TLSRemote= name
Accept connections only from a host with X509 name or common
name equal to \fIname\fP.
.TP
.BI OpenVPN.TLSAuth= file
Use \fIfile\fP for HMAC authentication.
.TP
.BI OpenVPN.TLSAuthDir= direction
Use \fIdirection\fP for HMAC authentication direction.
.TP
.BI OpenVPN.Cipher= cipher
Use \fIcipher\fP as the cipher.
.TP
.B OpenVPN.Auth=true \fR|\fB false
Use HMAC authentication.
.TP
.B OpenVPN.CompLZO=yes \fR|\fB no \fR|\fB adaptive
Use fast LZO compression.
.TP
.B OpenVPN.RemoteCertTls=client \fR|\fB server
Require that remote certificate is signed based on RFC3280 TLS rules.
.TP
.BI OpenVPN.ConfigFile= file
OpenVPN config file for extra options not supported by the OpenVPN plugin.
.TP
.BI OpenVPN.DeviceType= tun \fR|\fB tap
Whether the VPN should use a tun (OSI layer 3) or tap (OSI layer 2) device.
Defaults to tun if omitted.
.SS VPNC
The following key is mandatory for \fBvpnc\fP(8) networks:
.TP
.BI VPNC.IPSec.ID= id
Group username.
.TP
The following keys are optional for \fBvpnc\fP(8) networks:
.TP
.BI VPNC.IPSec.Secret= secret
Group password.
.TP
.BI VPNC.XAuth.Username= username
Username.
.TP
.BI VPNC.XAuth.Password= password
Password.
.TP
.BI VPNC.IKE.Authmode= mode
IKE authentication mode.
.TP
.BI VPNC.IKE.DHGroup= group
IKE DH group name.
.TP
.BI VPNC.PFS= group
Diffie-Hellman group for perfect forward secrecy.
.TP
.BI VPNC.Domain= domain
Domain name for authentication.
.TP
.BI VPNC.Vendor= vendor
Vendor of the IPSec gateway.
.TP
.BI VPNC.LocalPort= port
Local ISAKMP port number to use.
.TP
.BI VPNC.CiscoPort= port
Cisco UDP Encapsulation Port.
.TP
.BI VPNC.AppVersion= version
Application version to report.
.TP
.BI VPNC.NATTMode= mode
NAT-Traversal Method to use.
.TP
.BI VPNC.DPDTimeout= timeout
DPD idle timeout.
.TP
.B VPNC.SingleDES=true \fR|\fB false
Enable single DES encryption.
.TP
.B VPNC.NoEncryption=true \fR|\fB false
Enable usage of no encryption for data traffic.
.TP
.BI VPNC.DeviceType= tun \fR|\fB tap
Whether the VPN should use a tun (OSI layer 3) or tap (OSI layer 2) device.
Defaults to tun if omitted.
.SS L2TP
The following keys are optional for l2tp (\fBxl2tp.conf\fP(5), \fBpppd\fP(8))
networks:
.TP
.BI L2TP.User= user
L2TP username.
.TP
.BI L2TP.Password= password
L2TP password.
.TP
.BI L2TP.BPS= bps
Max bandwidth to use.
.TP
.BI L2TP.TXBPS= bps
Max transmit bandwidth to use.
.TP
.BI L2TP.RXBPS= bps
Max receive bandwidth to use.
.TP
.B L2TP.LengthBit=yes \fR|\fB no
Use length bit.
.TP
.B L2TP.Challenge=yes \fR|\fB no
Use challenge authentication.
.TP
.BI L2TP.DefaultRoute= route
Add \fIroute\fP to the routing tables.
.TP
.B L2TP.FlowBit=yes \fR|\fB no
Use seq numbers.
.TP
.BI L2TP.TunnelRWS= size
Window size.
.TP
.B L2TP.Exclusive=yes \fR|\fB no
Use only one control channel.
.TP
.B L2TP.Redial=yes \fR|\fB no
Redial if disconnected.
.TP
.BI L2TP.RedialTimeout= timeout
Redial timeout.
.TP
.BI L2TP.MaxRedials= count
Maximum amount of redial tries.
.TP
.B L2TP.RequirePAP=yes \fR|\fB no
Require PAP.
.TP
.B L2TP.RequireCHAP=yes \fR|\fB no
Require CHAP.
.TP
.B L2TP.ReqAuth=yes \fR|\fB no
Require authentication.
.TP
.B L2TP.AccessControl=yes \fR|\fB no
Use access control.
.TP
.BI L2TP.AuthFile= file
Authentication file location.
.TP
.BI L2TP.ListenAddr= address
Listen address.
.TP
.B L2TP.IPSecSaref=yes \fR|\fB no
Listen address.
.TP
.BI L2TP.Port= port
UDP port used.
.TP
.BI PPPD.EchoFailure= count
Echo failure count.
.TP
.BI PPPD.EchoFailure= count
Dead peer check count.
.TP
.BI PPPD.EchoInterval= interval
Dead peer check interval.
.TP
.BI PPPD.Debug= level
Debug level.
.TP
.B PPPD.RefuseEAP=true \fR|\fB false
Refuse EAP authentication.
.TP
.B PPPD.RefusePAP=true \fR|\fB false
Refuse PAP authentication.
.TP
.B PPPD.RefuseCHAP=true \fR|\fB false
Refuse CHAP authentication.
.TP
.B PPPD.RefuseMSCHAP=true \fR|\fB false
Refuse MSCHAP authentication.
.TP
.B PPPD.RefuseMSCHAP2=true \fR|\fB false
Refuse MSCHAPv2 authentication.
.TP
.B PPPD.NoBSDComp=true \fR|\fB false
Disable BSD compression.
.TP
.B PPPD.NoPcomp=true \fR|\fB false
Disable protocol compression.
.TP
.B PPPD.UseAccomp=true \fR|\fB false
Disable Access/Control compression.
.TP
.B PPPD.NoDeflate=true \fR|\fB false
Disable deflate compression.
.TP
.B PPPD.ReqMPPE=true \fR|\fB false
Require the use of MPPE.
.TP
.B PPPD.ReqMPPE40=true \fR|\fB false
Require the use of MPPE 40 bit.
.TP
.B PPPD.ReqMPPE128=true \fR|\fB false
Require the use of MPPE 128 bit.
.TP
.B PPPD.ReqMPPEStateful=true \fR|\fB false
Allow MPPE to use stateful mode.
.TP
.B PPPD.NoVJ=true \fR|\fB false
No Van Jacobson compression.
.SS PPTP
The following keys are optional for \fBpptp\fP(8) (see also \fBpppd\fP(8))
networks:
.TP
.BI PPTP.User= username
Username.
.TP
.BI PPTP.Password= password
Password.
.TP
.BI PPPD.EchoFailure= count
Echo failure count.
.TP
.BI PPPD.EchoFailure= count
Dead peer check count.
.TP
.BI PPPD.EchoInterval= interval
Dead peer check interval.
.TP
.BI PPPD.Debug= level
Debug level.
.TP
.B PPPD.RefuseEAP=true \fR|\fB false
Refuse EAP authentication.
.TP
.B PPPD.RefusePAP=true \fR|\fB false
Refuse PAP authentication.
.TP
.B PPPD.RefuseCHAP=true \fR|\fB false
Refuse CHAP authentication.
.TP
.B PPPD.RefuseMSCHAP=true \fR|\fB false
Refuse MSCHAP authentication.
.TP
.B PPPD.RefuseMSCHAP2=true \fR|\fB false
Refuse MSCHAPv2 authentication.
.TP
.B PPPD.NoBSDComp=true \fR|\fB false
Disable BSD compression.
.TP
.B PPPD.NoPcomp=true \fR|\fB false
Disable protocol compression.
.TP
.B PPPD.UseAccomp=true \fR|\fB false
Disable Access/Control compression.
.TP
.B PPPD.NoDeflate=true \fR|\fB false
Disable deflate compression.
.TP
.B PPPD.ReqMPPE=true \fR|\fB false
Require the use of MPPE.
.TP
.B PPPD.ReqMPPE40=true \fR|\fB false
Require the use of MPPE 40 bit.
.TP
.B PPPD.ReqMPPE128=true \fR|\fB false
Require the use of MPPE 128 bit.
.TP
.B PPPD.ReqMPPEStateful=true \fR|\fB false
Allow MPPE to use stateful mode.
.TP
.B PPPD.NoVJ=true \fR|\fB false
No Van Jacobson compression.

.SH "EXAMPLE"
This is a configuration file for a VPN providing L2TP, OpenVPN and
OpenConnect services. It could, for example, be in the file
.B @vpn_storagedir@/example.config\fR.
.PP
.nf
[global]
Name = Example
Description = Example VPN configuration

[provider_l2tp]
Type = L2TP
Name = Connection to corporate network
Host = 1.2.3.4
Domain = corporate.com
Networks = 10.10.30.0/24
L2TP.User = username

[provider_openconnect]
Type = OpenConnect
Name = Connection to corporate network using Cisco VPN
Host = 7.6.5.4
Domain = corporate.com
Networks = 10.10.20.0/255.255.255.0/10.20.1.5,192.168.99.1/24,2001:db8::1/64
OpenConnect.ServerCert = 263AFAB4CB2E6621D12E90182008AEF44AEFA031
OpenConnect.CACert = /etc/certs/certificate.p12

[provider_openvpn]
Type = OpenVPN
Name = Connection to corporate network using OpenVPN
Host = 3.2.5.6
Domain = my.home.network
OpenVPN.CACert = /etc/certs/cacert.pem
OpenVPN.Cert = /etc/certs/cert.pem
OpenVPN.Key = /etc/certs/cert.key
.fi
.SH "SEE ALSO"
.BR connmanctl (1),\  connman (8),\  connman-vpn (8)