1 .\" connman-service.config(5) manual page
3 .\" Copyright (C) 2015 Intel Corporation
5 .TH "service-name.config" "5" "2015-10-15" ""
7 service-name.config \- ConnMan service provisioning file
9 .B @storagedir@/\fIservice-name\fB.config
12 \fIConnMan\fP's services are configured with so called
13 "\fBprovisioning files\fP" which reside under \fI@storagedir@/\fP.
14 The files can be named anything, as long as they end in \fB.config\fP.
15 The provisioning files can be used to configure for example secured
16 wireless access points which need complex authentication, for example
17 eduroam, or for static IPs and so on. Each provisioning file can be
18 used for multiple services at once.
21 The configuration file format is key file format.
22 It consists of sections (groups) of key-value pairs.
23 Lines beginning with a '#' and blank lines are considered comments.
24 Sections are started by a header line containing the section enclosed
25 in '[' and ']', and ended implicitly by the start of the next section
26 or the end of the file. Each key-value pair must be contained in a section.
28 Description of sections and available keys follows:
30 This section is optional, and can be used to describe the actual file. The
31 two allowed fields for this section are:
36 .BI Description= description
37 Description of the network.
39 Each provisioned service must start with a [service_*] tag, with * replaced
40 by an unique name within the file.
41 The allowed fields are:
43 .B Type=ethernet \fR|\fB wifi
44 Mandatory. Other types than ethernet or wifi are not supported.
46 .BI IPv4=off \ \fR|\ dhcp\ \fR|\ network / netmask / gateway
47 IPv4 settings for the service. If set to \fBoff\fP, IPv4 won't be used.
48 If set to \fBdhcp\fP, dhcp will be used to obtain the network settings.
49 \fInetmask\fP can be specified as length of the mask rather than the
50 mask itself. The gateway can be omitted when using a static IP.
52 .BI IPv6=off \ \fR|\ auto\ \fR|\ network / prefixlength / gateway
53 IPv6 settings for the service. If set to \fBoff\fP, IPv6 won't be used.
54 If set to \fBauto\fP, settings will be obtained from the network.
56 .B IPv6.Privacy=disabled \fR|\fB enabled \fR|\fB preferred
57 IPv6 privacy settings as per RFC3041.
60 MAC address of the interface to be used. If not specified, the first
61 found interface is used. Must be in format ab:cd:ef:01:23:45.
63 .BI Nameservers= servers
64 Comma separated list of nameservers.
66 .BI SearchDomains= domains
67 Comma separated list of DNS search domains.
69 .BI Timeservers= servers
70 Comma separated list of timeservers.
73 Domain name to be used.
75 The following keys can only be used for wireless networks:
78 A string representation of an network SSID. If the SSID field is
79 present, the Name field is ignored. If the SSID field is not present,
80 this field is mandatory.
83 SSID: A hexadecimal representation of an 802.11 SSID. Use this format to
84 encode special characters including starting or ending spaces.
86 .BI Passphrase= passphrase
87 RSN/WPA/WPA2 Passphrase.
90 The security type of the network. Possible values are \fBpsk\fP
91 (WPA/WPA2 PSK), \fBieee8021x\fP (WPA EAP), \fBnone\fP and \fBwep\fP.
92 When not set, the default value is \fBieee8021x\fP if an EAP type is
93 configured, \fBpsk\fP if a passphrase is present and \fBnone\fP otherwise.
95 .B Hidden=true \fR|\fB false
96 If set to \fBtrue\fP, then this AP is hidden. If missing or set to
97 \fBfalse\fP, then AP is not hidden.
99 .B EAP=tls \fR|\fB ttls \fR|\fB peap
100 EAP type to use. Only \fBtls\fP, \fBttls\fP and \fBpeap\fP are supported.
103 Path to the CA certificate file. Only PEM and DER formats are supported.
105 .BI PrivateKeyFile= file
106 Path to the private key file. Only PEM, DER and PFX formats are supported.
108 .BI PrivateKeyPassphrase= passphrase
109 Passphrase of the private key.
111 .B PrivateKeyPassphraseType=fsid
112 If specified, use the private key's fsid as the passphrase, and ignore the
113 PrivateKeyPassphrase field.
115 .BI Identity= identity
116 Identity string for EAP.
118 .BI AnonymousIdentity= identity
119 Anonymous identity string for EAP.
122 Inner authentication type with for \fBEAP=tls\fP or \fBEAP=ttls\fP. Prefix
123 the value with \fBEAP-\fP to indicate usage of EAP-based authentication
124 method (should only be used with \fBEAP=ttls\fP).
127 This is a configuration file for eduroam networks. This file could for
128 example be @storagedir@/eduroam.config. Your university's exact
129 settings might be different.
137 CACertFile = /etc/ssl/certs/UNIV_CA.crt
139 .SS Complex networking
140 This is a configuration file for a network providing EAP-TLS, EAP-TTLS and
141 EAP-PEAP services. The respective SSIDs are tls_ssid, ttls_ssid and peap_ssid
142 and the file name could be @storagedir@/complex.config.
144 Please note that the SSID entry is for hexadecimal encoded SSID (e.g. "SSID =
145 746c735f73736964"). If your SSID does not contain any exotic character then
146 you should use the Name entry instead (e.g. "Name = tls_ssid").
151 Description = Example network configuration
155 SSID = 746c735f73736964
157 CACertFile = /home/user/.certs/ca.pem
158 ClientCertFile = /home/user/devlp/.certs/client.pem
159 PrivateKeyFile = /home/user/.certs/client.fsid.pem
160 PrivateKeyPassphraseType = fsid
167 CACertFile = /home/user/.cert/ca.pem
175 CACertFile = /home/user/.cert/ca.pem
179 [service_home_ethernet]
181 IPv4 = 192.168.1.42/255.255.255.0/192.168.1.1
182 IPv6 = 2001:db8::42/64/2001:db8::1
183 MAC = 01:02:03:04:05:06
184 Nameservers = 10.2.3.4,192.168.1.99
185 SearchDomains = my.home,isp.net
186 Timeservers = 10.172.2.1,ntp.my.isp.net
192 Passphrase = password
193 IPv4 = 192.168.2.2/255.255.255.0/192.168.2.1
194 MAC = 06:05:04:03:02:01