Debian Codegraph @

man/NetworkManager.conf.xml

raw
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
5 <!ENTITY % entities SYSTEM "common.ent" >
6 %entities;
7 ]>
8
9 <!--
10 SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
11
12 NetworkManager.conf(5) manual page
13
14 Copyright 2010 - 2023 Red Hat, Inc.
15 -->
16
17 <refentry id="NetworkManager.conf">
18 <refentryinfo>
19 <title>NetworkManager.conf</title>
20 <author>NetworkManager developers</author>
21 </refentryinfo>
22
23 <refmeta>
24 <refentrytitle>NetworkManager.conf</refentrytitle>
25 <manvolnum>5</manvolnum>
26 <refmiscinfo class="source">NetworkManager</refmiscinfo>
27 <refmiscinfo class="manual">Configuration</refmiscinfo>
28 <refmiscinfo class="version">&NM_VERSION;</refmiscinfo>
29 </refmeta>
30
31 <refnamediv>
32 <refname>NetworkManager.conf</refname>
33 <refpurpose>NetworkManager configuration file</refpurpose>
34 </refnamediv>
35
36 <refsynopsisdiv>
37 <para><filename>/etc/NetworkManager/NetworkManager.conf</filename>,
38 <filename>/etc/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</filename>,
39 <filename>/run/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</filename>,
40 <filename>/usr/lib/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</filename>,
41 <filename>/var/lib/NetworkManager/NetworkManager-intern.conf</filename>
42 </para>
43 </refsynopsisdiv>
44
45 <refsect1>
46 <title>Description</title>
47 <para><literal>NetworkManager.conf</literal> is the configuration file for NetworkManager. It is used
48 to set up various aspects of NetworkManager's behavior. The
49 location of the main file and configuration directories may be changed
50 through use of the <option>--config</option>, <option>--config-dir</option>,
51 <option>--system-config-dir</option>, and <option>--intern-config</option>
52 argument for NetworkManager, respectively.
53 </para>
54 <para>If a default <literal>NetworkManager.conf</literal> is
55 provided by your distribution's packages, you should not modify
56 it, since your changes may get overwritten by package
57 updates. Instead, you can add additional <literal>.conf</literal>
58 files to the <literal>/etc/NetworkManager/conf.d</literal> directory.
59 These will be read in order, with later files overriding earlier ones.
60 Packages might install further configuration snippets to <literal>/usr/lib/NetworkManager/conf.d</literal>.
61 This directory is parsed first, even before <literal>NetworkManager.conf</literal>.
62 Scripts can also put per-boot configuration into <literal>/run/NetworkManager/conf.d</literal>.
63 This directory is parsed second, also before <literal>NetworkManager.conf</literal>.
64 The loading of a file <literal>/run/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</literal>
65 can be prevented by adding a file <literal>/etc/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</literal>.
66 Likewise, a file <literal>/usr/lib/NetworkManager/conf.d/<replaceable>name</replaceable>.conf</literal>
67 can be shadowed by putting a file of the same name to either <literal>/etc/NetworkManager/conf.d</literal>
68 or <literal>/run/NetworkManager/conf.d</literal>.
69 </para>
70 <para>
71 NetworkManager can overwrite certain user configuration options via D-Bus or other internal
72 operations. In this case it writes those changes to <literal>/var/lib/NetworkManager/NetworkManager-intern.conf</literal>.
73 This file is not intended to be modified by the user, but it is read last and can shadow
74 user configuration from <literal>NetworkManager.conf</literal>.
75 </para>
76 <para>
77 Certain settings from the configuration can be reloaded at runtime either by sending SIGHUP signal or via
78 D-Bus' Reload call.
79 </para>
80 <para>
81 NetworkManager does not require any configuration in <literal>NetworkManager.conf</literal>. Depending
82 on your use case, you may remove all files to restore the default configuration (factory reset). But
83 note that your distribution or other packages may drop configuration snippets for NetworkManager, such
84 that they are part of the factory default.
85 </para>
86
87 </refsect1>
88
89 <refsect1>
90 <title>File Format</title>
91 <para>
92 The configuration file format is so-called key file (sort of
93 ini-style format). It consists of sections (groups) of
94 key-value pairs. Lines beginning with a '#' and blank lines are
95 considered comments. Sections are started by a header line
96 containing the section enclosed in '[' and ']', and ended
97 implicitly by the start of the next section or the end of the
98 file. Each key-value pair must be contained in a section.
99 </para>
100 <para>
101 For keys that take a list of devices as their value, you can
102 specify devices by their MAC addresses or interface names, or
103 "*" to specify all devices. See <xref linkend="device-spec"/>
104 below.
105 </para>
106 <para>
107 A simple configuration file looks like this:
108 <programlisting>
109 [main]
110 plugins=keyfile
111 </programlisting>
112 </para>
113 <para>
114 As an extension to the normal keyfile format, you can also
115 append a value to a previously-set list-valued key by doing:
116 <programlisting>
117 plugins+=another-plugin
118 plugins-=remove-me
119 </programlisting>
120 </para>
121 </refsect1>
122
123 <refsect1>
124 <title><literal>main</literal> section</title>
125 <variablelist>
126 <varlistentry>
127 <term><varname>plugins</varname></term>
128 <listitem>
129 <para>
130 Lists system settings plugin names separated by ','. These
131 plugins are used to read and write system-wide
132 connection profiles. When multiple plugins are specified, the
133 connections are read from all listed plugins. When writing
134 connections, the plugins will be asked to save the
135 connection in the order listed here; if the first plugin
136 cannot write out that connection type (or can't write out
137 any connections) the next plugin is tried, etc. If none of
138 the plugins can save the connection, an error is returned
139 to the user.
140 </para>
141 <para>
142 The default value and the number of available plugins is
143 distro-specific. See <xref linkend="settings-plugins"/>
144 below for the available plugins.
145 Note that NetworkManager's native <literal>keyfile</literal>
146 plugin is always appended to the end of this list (if it doesn't
147 already appear earlier in the list).
148 </para>
149 </listitem>
150 </varlistentry>
151 <varlistentry>
152 <term><varname>monitor-connection-files</varname></term>
153 <listitem><para>This setting is deprecated and has no effect. Profiles
154 from disk are never automatically reloaded. Use for example <literal>nmcli connection (re)load</literal>
155 for that.</para></listitem>
156 </varlistentry>
157 <varlistentry>
158 <term><varname>auth-polkit</varname></term>
159 <listitem><para>Whether the system uses PolicyKit for authorization.
160 If <literal>true</literal>, non-root requests are authorized using PolicyKit.
161 Requests from root (user ID zero) are always granted without asking PolicyKit.
162 If <literal>false</literal>, all requests will be allowed and PolicyKit is
163 not used. If set to <literal>root-only</literal> PolicyKit is not used and
164 all requests except root are denied.
165 The default value is <literal>&NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT;</literal>.
166 </para></listitem>
167 </varlistentry>
168 <varlistentry>
169 <term><varname>dhcp</varname></term>
170 <listitem><para>This key sets up what DHCP client NetworkManager will
171 use. Allowed values depend on build configuration; this version of
172 NetworkManager was built with support for the following clients:
173 &NM_DHCP_CLIENTS_ENABLED_TEXT;.</para>
174 <para>The <literal>internal</literal> client is built-in, while other options
175 may require an external DHCP client to be installed.</para>
176 <para>If this key is missing, <literal>&NM_CONFIG_DEFAULT_MAIN_DHCP;</literal>
177 is used with a fallback to other supported clients.</para></listitem>
178 </varlistentry>
179 <varlistentry>
180 <term><varname>no-auto-default</varname></term>
181 <listitem><para>Specify devices for which
182 NetworkManager shouldn't create default wired connection
183 (Auto eth0). By default, NetworkManager creates a temporary
184 wired connection for any Ethernet device that is managed and
185 doesn't have a connection configured. List a device in this
186 option to inhibit creating the default connection for the
187 device. May have the special value <literal>*</literal> to
188 apply to all devices.</para>
189 <para>When the default wired connection is deleted or saved
190 to a new persistent connection by a plugin, the device is
191 added to a list in the file
192 <filename>&nmstatedir;/no-auto-default.state</filename>
193 to prevent creating the default connection for that device
194 again.</para>
195 <para>See <xref linkend="device-spec"/> for the syntax how to
196 specify a device.
197 </para>
198 <para>
199 Example:
200 <programlisting>
201 no-auto-default=00:22:68:5c:5d:c4,00:1e:65:ff:aa:ee
202 no-auto-default=eth0,eth1
203 no-auto-default=*
204 </programlisting>
205 </para>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry>
210 <term><varname>ignore-carrier</varname></term>
211 <listitem>
212 <para>
213 This setting is deprecated for the per-device setting
214 <literal>ignore-carrier</literal> which overwrites this setting
215 if specified (See <xref linkend="ignore-carrier"/>).
216 Otherwise, it is a list of matches to specify for which device
217 carrier should be ignored. See <xref linkend="device-spec"/> for the
218 syntax how to specify a device. Note that controller types like
219 bond, bridge, and team ignore carrier by default. You can however
220 revert that default using the "except:" specifier (or better,
221 use the per-device setting instead of the deprecated setting).
222 </para>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry>
227 <term><varname>assume-ipv6ll-only</varname></term>
228 <listitem>
229 <para>
230 Specify devices for which NetworkManager will try to
231 generate a connection based on initial configuration when
232 the device only has an IPv6 link-local address.
233 </para>
234 <para>See <xref linkend="device-spec"/> for the syntax how to
235 specify a device.
236 </para>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry>
241 <term><varname>configure-and-quit</varname></term>
242 <listitem>
243 <para>
244 This option is no longer useful to configure in NetworkManager.conf file.
245 It can however also be configured on the command line with the same
246 values, where it has some use.
247 </para>
248 <para>
249 When set to '<literal>initrd</literal>', NetworkManager does not connect
250 to D-Bus and quits after configuring the network. This is an implementation
251 detail how the NetworkManager module of dracut can run NetworkManager.
252 An alternative to this is having NetworkManager as a systemd service
253 with D-Bus in initrd.
254 </para>
255 <para>
256 The value '<literal>true</literal>' is unsupported since version 1.36.
257 Previously this was a mode where NetworkManager would quit after configuring
258 the network and run helper processes for DHCP and SLAAC.
259 </para>
260 <para>
261 Otherwise, NetworkManager runs a system service with D-Bus and does not
262 quit during normal operation.
263 </para>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry>
268 <term><varname>hostname-mode</varname></term>
269 <listitem>
270 <para>
271 Set the management mode of the hostname. This parameter will
272 affect only the transient hostname. If a valid static hostname is set,
273 NetworkManager will skip the update of the hostname despite the value of
274 this option. A hostname empty or equal to '(none)' is considered invalid.
275 </para>
276 <para><literal>default</literal>: NetworkManager will update the
277 hostname with the one provided via DHCP or reverse DNS lookup of the
278 IP address on the connection with the default route or on any
279 connection with the property hostname.only-from-default set to
280 '<literal>false</literal>'. Connections are considered in order of
281 increasing value of the <literal>hostname.priority</literal>
282 property. In case multiple connections have the same priority,
283 connections activated earlier are considered first. If no hostname can
284 be determined in such way, the hostname will be updated to the last
285 one set outside NetworkManager or to 'localhost.localdomain'.
286 </para>
287 <para><literal>dhcp</literal>: this is similar to
288 '<literal>default</literal>', with the difference that after trying to
289 get the DHCP hostname, reverse DNS lookup is not done. Note that
290 selecting this option is equivalent to setting the property
291 '<literal>hostname.from-dns-lookup</literal>' to
292 '<literal>false</literal>' globally for all connections in
293 NetworkManager.conf.
294 </para>
295 <para><literal>none</literal>: NetworkManager will not manage the transient
296 hostname and will never set it.
297 </para>
298 </listitem>
299 </varlistentry>
300 <varlistentry>
301 <term><varname>dns</varname></term>
302 <listitem><para>Set the DNS processing mode.</para>
303 <para>If the key is unspecified, <literal>default</literal> is used,
304 unless <filename>/etc/resolv.conf</filename> is a symlink to
305 <filename>/run/systemd/resolve/stub-resolv.conf</filename>,
306 <filename>/run/systemd/resolve/resolv.conf</filename>,
307 <filename>/lib/systemd/resolv.conf</filename> or
308 <filename>/usr/lib/systemd/resolv.conf</filename>.
309 In that case, <literal>systemd-resolved</literal> is chosen automatically.
310 </para>
311
312 <para><literal>default</literal>: NetworkManager will update
313 <filename>/etc/resolv.conf</filename> to reflect the nameservers
314 provided by currently active connections. The <literal>rc-manager</literal>
315 setting (below) controls how this is done.</para>
316
317 <para><literal>dnsmasq</literal>: NetworkManager will run
318 dnsmasq as a local caching nameserver, using "Conditional Forwarding"
319 if you are connected to a VPN, and then update
320 <filename>resolv.conf</filename> to point to the local
321 nameserver. It is possible to pass custom options to the
322 dnsmasq instance by adding them to files in the
323 "<filename>&sysconfdir;/NetworkManager/dnsmasq.d/</filename>"
324 directory. Note that when multiple upstream servers are
325 available, dnsmasq will initially contact them in parallel and
326 then use the fastest to respond, probing again other servers
327 after some time. This behavior can be modified passing the
328 'all-servers' or 'strict-order' options to dnsmasq (see the
329 manual page for more details).</para>
330
331 <para><literal>systemd-resolved</literal>: NetworkManager will
332 push the DNS configuration to systemd-resolved</para>
333
334 <para><literal>dnsconfd</literal>: NetworkManager will
335 push the DNS configuration to dnsconfd</para> and by default set ipvX.routed-dns to
336 yes, so servers are contacted through right interfaces.
337
338 <para><literal>none</literal>: NetworkManager will not
339 modify resolv.conf. This implies
340 <literal>rc-manager</literal>&nbsp;<literal>unmanaged</literal></para>
341
342 <para>Note that the plugins <literal>dnsmasq</literal>,<literal>systemd-resolved</literal>
343 and <literal>dnsconfd</literal> are caching local nameservers.
344 Hence, when NetworkManager writes <filename>&nmrundir;/resolv.conf</filename>
345 and <filename>/etc/resolv.conf</filename> (according to <literal>rc-manager</literal>
346 setting below), the name server there will be localhost only.
347 NetworkManager also writes a file <filename>&nmrundir;/no-stub-resolv.conf</filename>
348 that contains the original name servers pushed to the DNS plugin.</para>
349
350 <para>When using <literal>dnsmasq</literal>,<literal>systemd-resolved</literal> and
351 <literal>dnsconfd</literal> per-connection added dns servers will always be queried using
352 the device the connection has been activated on.</para>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry>
357 <term><varname>rc-manager</varname></term>
358 <listitem>
359 <para>Set the <filename>resolv.conf</filename>
360 management mode. This option is about how NetworkManager writes to
361 <filename>/etc/resolv.conf</filename>, if at all.
362 The default value depends on NetworkManager build
363 options, and this version of NetworkManager was built with a default of
364 "<literal>&NM_CONFIG_DEFAULT_MAIN_RC_MANAGER;</literal>".
365 Regardless of this setting, NetworkManager will
366 always write its version of resolv.conf to its runtime state directory
367 as <filename>&nmrundir;/resolv.conf</filename>.
368 </para>
369 <para>If you configure <literal>dns=none</literal> or make <filename>/etc/resolv.conf</filename>
370 immutable with <literal>chattr +i</literal>, NetworkManager will ignore this setting and
371 always choose <literal>unmanaged</literal> (below).
372 </para>
373 <para><literal>auto</literal>: if systemd-resolved plugin is configured via
374 the <literal>dns</literal> setting or if it gets detected as main DNS plugin,
375 NetworkManager will update systemd-resolved without touching <filename>/etc/resolv.conf</filename>.
376 Alternatively, if <literal>resolvconf</literal> or <literal>netconfig</literal> are enabled
377 at compile time and the respective binary is found, NetworkManager will automatically use it.
378 Note that if you install or uninstall these binaries, you need to reload the
379 <literal>rc-manager</literal> setting with SIGHUP or
380 <literal>systemctl reload NetworkManager</literal>. As last fallback
381 it uses the <literal>symlink</literal> option (see next).
382 </para>
383 <para><literal>symlink</literal>: If <filename>/etc/resolv.conf</filename> is
384 a regular file or does not exist, NetworkManager will write the file directly.
385 If <filename>/etc/resolv.conf</filename> is instead a symlink, NetworkManager
386 will leave it alone. Unless the symlink points to the internal file
387 <filename>&nmrundir;/resolv.conf</filename>,
388 in which case the symlink will be updated to emit an inotify notification.
389 This allows the user to conveniently instruct NetworkManager not
390 to manage <filename>/etc/resolv.conf</filename> by replacing it with
391 a symlink.
392 </para>
393 <para><literal>file</literal>: NetworkManager will write
394 <filename>/etc/resolv.conf</filename> as regular file. If it finds
395 a symlink to an existing target, it will follow the symlink and
396 update the target instead. In no case will an existing symlink
397 be replaced by a file. Note that older versions of NetworkManager
398 behaved differently and would replace dangling symlinks with a
399 plain file.
400 </para>
401 <para><literal>resolvconf</literal>: NetworkManager will run
402 resolvconf to update the DNS configuration.</para>
403 <para><literal>netconfig</literal>: NetworkManager will run
404 netconfig to update the DNS configuration.</para>
405 <para><literal>unmanaged</literal>: don't touch
406 <filename>/etc/resolv.conf</filename>.</para>
407 <para><literal>none</literal>: deprecated alias for
408 <literal>symlink</literal>.</para>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry>
413 <term><varname>systemd-resolved</varname></term>
414 <listitem><para>Additionally, send the connection DNS configuration to
415 <literal>systemd-resolved</literal>. Defaults to "<literal>true</literal>".
416 </para>
417 <para>Note that this setting has no effect if the main <varname>dns</varname>
418 plugin is already <literal>systemd-resolved</literal>. It is complementary to the
419 <varname>dns</varname> setting to configure systemd-resolved alongside the
420 main plugin.</para>
421 <para>If systemd-resolved is enabled, either via this setting or the main
422 DNS plugin, the connectivity check resolves the
423 hostname per-device.</para>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry>
428 <term><varname>debug</varname></term>
429 <listitem><para>Comma separated list of options to aid
430 debugging. This value will be combined with the environment
431 variable <literal>NM_DEBUG</literal>. Currently, the following
432 values are supported:</para>
433 <para>
434 <literal>RLIMIT_CORE</literal>: set ulimit -c unlimited
435 to write out core dumps. Beware, that a core dump can contain
436 sensitive information such as passwords or configuration settings.
437 </para>
438 <para>
439 <literal>fatal-warnings</literal>: set g_log_set_always_fatal()
440 to core dump on warning messages from glib. This is equivalent
441 to the --g-fatal-warnings command line option.
442 </para>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry>
447 <term><varname>autoconnect-retries-default</varname></term>
448 <listitem>
449 <para>
450 The number of times a connection activation should be
451 automatically tried before switching to another one. This
452 value applies only to connections that can auto-connect
453 and have a
454 <literal>connection.autoconnect-retries</literal> property
455 set to -1. If not specified, connections will be tried 4
456 times. Setting this value to 1 means to try activation once,
457 without retry.
458 </para>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry>
463 <term><varname>firewall-backend</varname></term>
464 <listitem>
465 <para>
466 The firewall backend for configuring masquerading
467 with shared mode.
468 Set to either <literal>iptables</literal>, <literal>nftables</literal>
469 or <literal>none</literal>.
470 <literal>iptables</literal> and <literal>nftables</literal>
471 require <literal>iptables</literal> and <literal>nft</literal>
472 application, respectively.
473 <literal>none</literal> means to skip firewall configuration if
474 the users wish to manage firewall themselves.
475 If unspecified, it will be auto detected.
476 </para>
477 </listitem>
478 </varlistentry>
479
480 <varlistentry>
481 <term><varname>iwd-config-path</varname></term>
482 <listitem>
483 <para>
484 If the value is "auto" (the default), IWD is queried for its
485 current state directory when it appears on D-Bus -- the
486 directory where IWD keeps its network configuration files --
487 usually /var/lib/iwd. NetworkManager will then attempt to
488 write copies of new or modified Wi-Fi connection profiles,
489 converted into the IWD format, into this directory thus making
490 IWD connection properties editable. NM will overwrite existing
491 files without preserving their contents.
492 </para>
493 <para>
494 The path can also be overridden by pointing to a specific
495 existing and writable directory. On the other hand setting
496 this to an empty string or any other value disables the
497 profile conversion mechanism.
498 </para>
499 <para>
500 This mechanism allows editing connection profile settings such
501 as the 802.1x configuration using NetworkManager clients.
502 Without it such changes have no effect in IWD.
503 </para>
504 </listitem>
505 </varlistentry>
506
507 <varlistentry>
508 <term><varname>migrate-ifcfg-rh</varname></term>
509 <listitem><para>Whether NetworkManager tries to automatically convert
510 any connection profile stored in ifcfg-rh format to the keyfile format.
511 Support for ifcfg-rh is deprecated and will be eventually removed. If
512 enabled, the migration is performed at every startup of the daemon.
513 The default value is <literal>&NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT;</literal>.
514 </para></listitem>
515 </varlistentry>
516
517 </variablelist>
518 </refsect1>
519
520 <refsect1>
521 <title><literal>keyfile</literal> section</title>
522 <para>This section contains keyfile-plugin-specific options, and
523 is normally only used when you are not using any other
524 distro-specific plugin.</para>
525
526 <para>
527 <variablelist>
528 <varlistentry>
529 <term><varname>hostname</varname></term>
530 <listitem><para>This key is deprecated and has no effect
531 since the hostname is now stored in <filename>/etc/hostname</filename>
532 or other system configuration files according to build options.
533 </para></listitem>
534 </varlistentry>
535 <varlistentry>
536 <term><varname>path</varname></term>
537 <listitem>
538 <para>The location where keyfiles are read and stored.
539 This defaults to "<filename>&sysconfdir;/NetworkManager/system-connections</filename>".
540 </para>
541 </listitem>
542 </varlistentry>
543 <varlistentry>
544 <term><varname>rename</varname></term>
545 <listitem>
546 <para>
547 NetworkManager automatically chooses a filename when storing
548 a new profile to disk. That name depends on the profile's name
549 (connection.id). When updating a profile's name, the file is
550 not renamed to not break scripts that rely on the filename
551 for the profile.
552 By setting this option to "true", NetworkManager renames
553 the keyfile on update of the profile, to follow the profile's
554 name. This defaults to "false".
555 </para>
556 </listitem>
557 </varlistentry>
558 <varlistentry>
559 <term><varname>unmanaged-devices</varname></term>
560 <listitem>
561 <para>Set devices that should be ignored by NetworkManager.
562 </para>
563 <para>
564 A device unmanaged due to this option is strictly
565 unmanaged and cannot be overruled by using the API like
566 <command>nmcli device set $IFNAME managed yes</command>.
567 Also, a device that is unmanaged for other reasons, like
568 an udev rule, cannot be made managed with this option (e.g. by
569 using an <literal>except:</literal> specifier).
570 These two points make it different from the <literal>device*.managed</literal>
571 option which for that reason may be a better choice.
572 </para>
573 <para>See <xref linkend="device-spec"/> for the syntax on how to
574 specify a device.
575 </para>
576 <para>
577 Example:
578 <programlisting>
579 unmanaged-devices=interface-name:em4
580 unmanaged-devices=mac:00:22:68:1c:59:b1;mac:00:1E:65:30:D1:C4;interface-name:eth2
581 </programlisting>
582 </para>
583 </listitem>
584 </varlistentry>
585 </variablelist>
586 </para>
587 </refsect1>
588
589 <refsect1>
590 <title><literal>ifupdown</literal> section</title>
591 <para>This section contains ifupdown-specific options and thus only
592 has effect when using the <literal>ifupdown</literal> plugin.</para>
593
594 <para>
595 <variablelist>
596 <varlistentry>
597 <term><varname>managed</varname></term>
598 <listitem><para>If set to <literal>true</literal>, then
599 interfaces listed in
600 <filename>/etc/network/interfaces</filename> are managed by
601 NetworkManager. If set to <literal>false</literal>, then
602 any interface listed in
603 <filename>/etc/network/interfaces</filename> will be ignored
604 by NetworkManager. Remember that NetworkManager controls the
605 default route, so because the interface is ignored,
606 NetworkManager may assign the default route to some other
607 interface.</para>
608 <para>
609 The default value is <literal>false</literal>.
610 </para>
611 </listitem>
612 </varlistentry>
613 </variablelist>
614 </para>
615 </refsect1>
616
617 <refsect1>
618 <title><literal>logging</literal> section</title>
619 <para>
620 This section controls NetworkManager's logging.
621 Logging is very important to understand what NetworkManager is doing.
622 When you report a bug, do not unnecessarily filter or limit the log file.
623 Just enable <literal>level=TRACE</literal> and <literal>domains=ALL</literal>
624 to collect everything.
625 </para>
626
627 <para>
628 The recommended way for enabling logging is with a file <filename>/etc/NetworkManager/conf.d/95-logging.conf</filename>
629 that contains
630 <programlisting>
631 [logging]
632 level=TRACE
633 domains=ALL
634 </programlisting>
635 and restart the daemon with <command>systemctl restart NetworkManager</command>. Then
636 reproduce the problem. You can find the logs in syslog (for example
637 <command>journalctl</command>, or <command>journalctl -u NetworkManager</command>
638 to show only logs from NetworkManager).
639 </para>
640
641 <para>
642 Any settings here are overridden by the <option>--log-level</option>
643 and <option>--log-domains</option> command-line options.
644 Logging can also be reconfigured at runtime with
645 <command>nmcli general logging level "$LEVEL" domains "$DOMAINS"</command>.
646 However, often it is interesting to get a complete log from the
647 start. Especially, when debugging an issue, enable debug logging
648 in NetworkManager.conf and restart the service to enable verbose logging
649 early on.
650 </para>
651
652 <para>
653 By setting <option>nm.debug</option> on the kernel command line (either from
654 <filename>&nmrundir;/proc-cmdline</filename> or <filename>/proc/cmdline</filename>),
655 debug logging is enabled. This overrides both the command-line options and the settings
656 from NetworkManager.conf.
657 </para>
658
659 <para>
660 NetworkManager's logging aims not to contain private sensitive data
661 and you should be fine sharing the debug logs. Still, there will
662 be IP addresses and your network setup, if you consider that private
663 then review the log before sharing. However, try not to mangle the logfile
664 in a way that distorts the meaning too much.
665 </para>
666
667 <para>
668 NetworkManager uses syslog or systemd-journald, depending on configuration.
669 In any case, debug logs are verbose and might be rate limited
670 or filtered by the logging daemon. For systemd-journald, see
671 <literal>RateLimitIntervalSec</literal> and <literal>RateLimitBurst</literal>
672 in <literal>journald.conf</literal> manual for how to disable that.
673 </para>
674
675 <para>
676 <variablelist>
677 <varlistentry>
678 <term><varname>level</varname></term>
679 <listitem><para>The default logging verbosity level.
680 One of <literal>OFF</literal>, <literal>ERR</literal>,
681 <literal>WARN</literal>, <literal>INFO</literal>,
682 <literal>DEBUG</literal>, <literal>TRACE</literal>,
683 in order of verbosity.
684 </para>
685 <para>
686 <literal>OFF</literal> disables all logging. <literal>INFO</literal>
687 is the default verbosity for regular operation. <literal>TRACE</literal>
688 is for debugging.
689 </para>
690 <para>
691 The other levels are in most cases not useful. For example, <literal>DEBUG</literal>
692 is between <literal>TRACE</literal> and <literal>INFO</literal>, but it's too
693 verbose for regular operation and lacks possibly interesting messages for debugging.
694 Almost always, when debugging an issue or reporting a bug, collect full
695 level <literal>TRACE</literal> logs to get the full picture.
696 </para>
697 </listitem>
698 </varlistentry>
699 <varlistentry>
700 <term><varname>domains</varname></term>
701 <listitem>
702 <para>Filter the messages by their topic. When debugging
703 an issue, it's better to collect all logs (<literal>ALL</literal> domain)
704 upfront. The unnecessary parts can always be ignored
705 later.
706 </para>
707 <para>In the uncommon case to tune out certain topics, the following log
708 domains are available:
709 PLATFORM, RFKILL, ETHER, WIFI, BT, MB, DHCP4, DHCP6, PPP,
710 WIFI_SCAN, IP4, IP6, AUTOIP4, DNS, VPN, SHARING, SUPPLICANT,
711 AGENTS, SETTINGS, SUSPEND, CORE, DEVICE, OLPC, WIMAX,
712 INFINIBAND, FIREWALL, ADSL, BOND, VLAN, BRIDGE, DBUS_PROPS,
713 TEAM, CONCHECK, DCB, DISPATCH, AUDIT, SYSTEMD, VPN_PLUGIN,
714 PROXY.</para>
715 <para>In addition, these special domains can be used: NONE,
716 ALL, DEFAULT, DHCP, IP.</para>
717 <para>You can specify per-domain log level overrides by
718 adding a colon and a log level to any domain. E.g.,
719 "<literal>WIFI:DEBUG,WIFI_SCAN:OFF</literal>".
720 Another example is <literal>ALL,VPN_PLUGIN:TRACE</literal>
721 to enable all the logging there is (see about <literal>VPN_PLUGIN</literal>
722 below).
723 </para>
724 </listitem>
725 </varlistentry>
726 <varlistentry>
727 <para>Domain descriptions:
728 <simplelist type="horiz" columns="1">
729 <member>PLATFORM : OS (platform) operations</member>
730 <member>RFKILL : RFKill subsystem operations</member>
731 <member>ETHER : Ethernet device operations</member>
732 <member>WIFI : Wi-Fi device operations</member>
733 <member>BT : Bluetooth operations</member>
734 <member>MB : Mobile broadband operations</member>
735 <member>DHCP4 : DHCP for IPv4</member>
736 <member>DHCP6 : DHCP for IPv6</member>
737 <member>PPP : Point-to-point protocol operations</member>
738 <member>WIFI_SCAN : Wi-Fi scanning operations</member>
739 <member>IP4 : IPv4-related operations</member>
740 <member>IP6 : IPv6-related operations</member>
741 <member>AUTOIP4 : AutoIP operations</member>
742 <member>DNS : Domain Name System related operations</member>
743 <member>VPN : Virtual Private Network connections and operations</member>
744 <member>SHARING : Connection sharing. With TRACE level log queries for dnsmasq instance</member>
745 <member>SUPPLICANT : WPA supplicant related operations</member>
746 <member>AGENTS : Secret agents operations and communication</member>
747 <member>SETTINGS : Settings/config service operations</member>
748 <member>SUSPEND : Suspend/resume</member>
749 <member>CORE : Core daemon and policy operations</member>
750 <member>DEVICE : Activation and general interface operations</member>
751 <member>OLPC : OLPC Mesh device operations</member>
752 <member>WIMAX : WiMAX device operations</member>
753 <member>INFINIBAND : InfiniBand device operations</member>
754 <member>FIREWALL : FirewallD related operations</member>
755 <member>ADSL : ADSL device operations</member>
756 <member>BOND : Bonding operations</member>
757 <member>VLAN : VLAN operations</member>
758 <member>BRIDGE : Bridging operations</member>
759 <member>DBUS_PROPS : D-Bus property changes</member>
760 <member>TEAM : Teaming operations</member>
761 <member>CONCHECK : Connectivity check</member>
762 <member>DCB : Data Center Bridging (DCB) operations</member>
763 <member>DISPATCH : Dispatcher scripts</member>
764 <member>AUDIT : Audit records</member>
765 <member>SYSTEMD : Messages from internal libsystemd</member>
766 <member>VPN_PLUGIN : logging messages from VPN plugins</member>
767 <member>PROXY : logging messages for proxy handling</member>
768 <member> </member>
769 <member>NONE : when given by itself logging is disabled</member>
770 <member>ALL : all log domains</member>
771 <member>DEFAULT : default log domains</member>
772 <member>DHCP : shortcut for "DHCP4,DHCP6"</member>
773 <member>IP : shortcut for "IP4,IP6"</member>
774 <member> </member>
775 <member>HW : deprecated alias for "PLATFORM"</member>
776 </simplelist>
777 </para>
778 <para>
779 In general, the logfile should not contain passwords or private data. However,
780 you are always advised to check the file before posting it online or attaching
781 to a bug report. <literal>VPN_PLUGIN</literal> is special as it might reveal
782 private information of the VPN plugins with verbose levels. Therefore this domain
783 will be excluded when setting <literal>ALL</literal> or <literal>DEFAULT</literal>
784 to more verbose levels then <literal>INFO</literal>.
785 </para>
786 </varlistentry>
787 <varlistentry>
788 <term><varname>backend</varname></term>
789 <listitem><para>The logging backend. Supported values
790 are "<literal>syslog</literal>" and "<literal>journal</literal>".
791 When NetworkManager is started with "<literal>--debug</literal>"
792 in addition all messages will be printed to stderr.
793 If unspecified, the default is "<literal>&NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT;</literal>".
794 </para></listitem>
795 </varlistentry>
796 <varlistentry>
797 <term><varname>audit</varname></term>
798 <listitem><para>Whether the audit records are delivered to
799 auditd, the audit daemon. If <literal>false</literal>, audit
800 records will be sent only to the NetworkManager logging
801 system. If set to <literal>true</literal>, they will be also
802 sent to auditd. The default value is <literal>&NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT;</literal>.
803 </para></listitem>
804 </varlistentry>
805 </variablelist>
806 </para>
807 </refsect1>
808
809 <refsect1>
810 <title><literal>connection</literal> section</title>
811 <para>Specify default values for connections.
812 </para>
813 <para>
814 Such default values are only consulted if the corresponding per-connection property
815 explicitly allows for that. That means, all these properties correspond to
816 a property of the connection profile (for example <literal>connection.mud-url</literal>).
817 Only if the per-profile property is set to a special value that indicates to use the
818 default, the default value from NetworkManager.conf is consulted. It depends on the
819 property, which is the special value that indicates fallback to the default, but it
820 usually is something like empty, unset values or special numeric values like 0 or -1.
821 That means the effectively used value can first always be configured for each profile,
822 and these default values only matter if the per-profile values explicitly indicates
823 to use the default from <literal>NetworkManager.conf</literal>.
824 </para>
825 <para>
826 Note that while nmcli supports various aliases and convenience features for configuring
827 properties, the settings in this section do not. For example, enum values usually only
828 can be configured via their numeric magic number.
829 </para>
830 <para>
831 Example:
832 <programlisting>
833 [connection]
834 ipv6.ip6-privacy=0
835 </programlisting>
836 </para>
837 <refsect2>
838 <title>Supported Properties</title>
839 <para>
840 Not all properties can be overwritten, only the following
841 properties are supported to have their default values configured
842 (see <link linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link> for details).
843 </para>
844 <para>
845 <!-- The following comment is used by check-config-options.sh, don't remove it. -->
846 <!-- start connection defaults -->
847 <variablelist>
848 <varlistentry>
849 <term><varname>802-1x.auth-timeout</varname></term>
850 </varlistentry>
851 <varlistentry>
852 <term><varname>cdma.mtu</varname></term>
853 </varlistentry>
854 <varlistentry>
855 <term><varname>connection.auth-retries</varname></term>
856 <listitem><para>If left unspecified, the default value is 3 tries before failing the connection.
857 </para></listitem>
858 </varlistentry>
859 <varlistentry>
860 <term><varname>connection.autoconnect-ports</varname></term>
861 </varlistentry>
862 <varlistentry>
863 <term><varname>connection.autoconnect-slaves</varname></term>
864 <listitem><para>This is deprecated, please use "connection.autoconnect-ports" instead.
865 </para></listitem>
866 </varlistentry>
867 <varlistentry>
868 <term><varname>connection.down-on-poweroff</varname></term>
869 <listitem><para>Whether the connection will be brought down before the system is powered off.</para></listitem>
870 </varlistentry>
871 <varlistentry>
872 <term><varname>connection.ip-ping-addresses-require-all</varname></term>
873 <listitem><para>Whether it is sufficient for any ping check to succeed among the list of target addresses, or if all ping checks must succeed for the entire list of target addresses.</para></listitem>
874 </varlistentry>
875 <varlistentry>
876 <term><varname>connection.mud-url</varname></term>
877 <listitem><para>If unspecified, MUD URL defaults to <literal>"none"</literal>.</para></listitem>
878 </varlistentry>
879 <varlistentry>
880 <term><varname>connection.lldp</varname></term>
881 </varlistentry>
882 <varlistentry>
883 <term><varname>connection.llmnr</varname></term>
884 <listitem><para>If unspecified, the ultimate default values depends on the DNS plugin. With systemd-resolved the default currently is "yes" (2) and for all other plugins "no" (0).</para></listitem>
885 </varlistentry>
886 <varlistentry>
887 <term><varname>connection.mdns</varname></term>
888 <listitem><para>
889 Currently only the systemd-resolve DNS plugin supports this setting.
890 If the setting is unspecified both in the profile and in the global
891 default here, then the default is determined by systemd-resolved.
892 See <literal>MulticastDNS=</literal> in
893 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
894 </para></listitem>
895 </varlistentry>
896 <varlistentry>
897 <term><varname>connection.mptcp-flags</varname></term>
898 <listitem><para>If unspecified, the fallback is 0x122 (<literal>"enabled,subflow,laminar"</literal>). Note that if sysctl <literal>/proc/sys/net/mptcp/enabled</literal> is disabled, NetworkManager will still not configure endpoints.</para></listitem>
899 </varlistentry>
900 <varlistentry>
901 <term><varname>connection.dns-over-tls</varname></term>
902 <listitem><para>If unspecified, the ultimate default values depends on the DNS plugin. With systemd-resolved the default currently is its global setting and for all other plugins "no" (0).</para></listitem>
903 </varlistentry>
904 <varlistentry>
905 <term><varname>connection.dnssec</varname></term>
906 <listitem><para>If unspecified, the ultimate default values depends on the DNS plugin. With systemd-resolved the default currently is its global setting and for all other plugins "no" (0).</para></listitem>
907 </varlistentry>
908 <varlistentry>
909 <term><varname>connection.stable-id</varname></term>
910 </varlistentry>
911 <varlistentry>
912 <term><varname>ethernet.cloned-mac-address</varname></term>
913 <listitem><para>If left unspecified, it defaults to "preserve".</para></listitem>
914 </varlistentry>
915 <varlistentry>
916 <term><varname>ethernet.generate-mac-address-mask</varname></term>
917 </varlistentry>
918 <varlistentry>
919 <term><varname>ethernet.mtu</varname></term>
920 <listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or the MTU is not reconfigured during activation.</para></listitem>
921 </varlistentry>
922 <varlistentry>
923 <term><varname>ethernet.wake-on-lan</varname></term>
924 </varlistentry>
925 <varlistentry>
926 <term><varname>gsm.mtu</varname></term>
927 </varlistentry>
928 <varlistentry>
929 <term><varname>hostname.from-dhcp</varname></term>
930 </varlistentry>
931 <varlistentry>
932 <term><varname>hostname.from-dns-lookup</varname></term>
933 </varlistentry>
934 <varlistentry>
935 <term><varname>hostname.only-from-default</varname></term>
936 </varlistentry>
937 <varlistentry>
938 <term><varname>hostname.priority</varname></term>
939 </varlistentry>
940 <varlistentry>
941 <term><varname>infiniband.mtu</varname></term>
942 <listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or the MTU is left unspecified on activation.</para></listitem>
943 </varlistentry>
944 <varlistentry>
945 <term><varname>ip-tunnel.mtu</varname></term>
946 <listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or a default of 1500.</para></listitem>
947 </varlistentry>
948 <varlistentry>
949 <term><varname>ipv4.forwarding</varname></term>
950 <listitem><para>Whether to configure IPv4 sysctl interface-specific forwarding. When enabled, the interface will act as a router to forward the IPv4 packet from one interface to another. If left unspecified, "auto" is used, so NetworkManager sets the IPv4 forwarding if any shared connection is active, or it will use the kernel default value otherwise. The "ipv4.forwarding" property is ignored when "ipv4.method" is set to "shared", because forwarding is always enabled in this case. The accepted values are: 0: disabled, 1: enabled, 2: auto, 3: ignored (leave the forwarding unchanged).</para></listitem>
951 </varlistentry>
952 <varlistentry>
953 <term><varname>ipv4.routed-dns</varname></term>
954 </varlistentry>
955 <varlistentry>
956 <term><varname>ipv4.dad-timeout</varname></term>
957 </varlistentry>
958 <varlistentry>
959 <term><varname>ipv4.dhcp-client-id</varname></term>
960 </varlistentry>
961 <varlistentry>
962 <term><varname>ipv4.dhcp-dscp</varname></term>
963 </varlistentry>
964 <varlistentry>
965 <term><varname>ipv4.dhcp-iaid</varname></term>
966 <listitem><para>If left unspecified, it defaults to "ifname".</para></listitem>
967 </varlistentry>
968 <varlistentry>
969 <term><varname>ipv4.dhcp-ipv6-only-preferred</varname></term>
970 <listitem><para>If left unspecified, the "IPv6-only preferred" DHCPv4 option is disabled.</para></listitem>
971 </varlistentry>
972 <varlistentry>
973 <term><varname>ipv4.dhcp-hostname-flags</varname></term>
974 <listitem><para>If left unspecified, the value 3 (fqdn-encoded,fqdn-serv-update) is used.</para></listitem>
975 </varlistentry>
976 <varlistentry>
977 <term><varname>ipv4.dhcp-send-hostname</varname></term>
978 <listitem><para>Whether a hostname is sent to the DHCP server when acquiring a lease. When the property is not specified in the connection, the global value from NetworkManager configuration is looked up. If the global value is not set, the value from ipv4.dhcp-send-hostname-deprecated, which defaults to true, is used for backwards compatibility. In the future this will change and, in absence of a global default, it will always fallback to true.</para></listitem>
979 </varlistentry>
980 <varlistentry>
981 <term><varname>ipv4.dhcp-send-release</varname></term>
982 <listitem><para>Whether the DHCP client will send RELEASE message when bringing the connection down.</para></listitem>
983 </varlistentry>
984 <varlistentry>
985 <term><varname>ipv4.dhcp-timeout</varname></term>
986 <listitem><para>If left unspecified, the default value for
987 the interface type is used.</para></listitem>
988 </varlistentry>
989 <varlistentry>
990 <term><varname>ipv4.dhcp-vendor-class-identifier</varname></term>
991 <listitem><para>If left unspecified, the default is to not send the DHCP option to the server.</para></listitem>
992 </varlistentry>
993 <varlistentry>
994 <term><varname>ipv4.dns-priority</varname></term>
995 <listitem><para>If unspecified or zero, use 50 for VPN profiles
996 and 100 for other profiles.</para></listitem>
997 </varlistentry>
998 <varlistentry>
999 <term><varname>ipv4.required-timeout</varname></term>
1000 </varlistentry>
1001 <varlistentry>
1002 <term><varname>ipv4.link-local</varname></term>
1003 <listitem><para>If left unspecified, fallback to "auto" which makes it dependent on "ipv4.method" setting.</para></listitem>
1004 </varlistentry>
1005 <varlistentry>
1006 <term><varname>ipv4.route-metric</varname></term>
1007 </varlistentry>
1008 <varlistentry>
1009 <term><varname>ipv4.route-table</varname></term>
1010 <listitem><para>If left unspecified, routes are only added to the main table. Note that this
1011 is different from explicitly selecting the main table 254, because of how NetworkManager
1012 removes extraneous routes from the tables.
1013 </para></listitem>
1014 </varlistentry>
1015 <varlistentry>
1016 <term><varname>ipv6.routed-dns</varname></term>
1017 </varlistentry>
1018 <varlistentry>
1019 <term><varname>ipv6.addr-gen-mode</varname></term>
1020 <listitem><para>If the per-profile setting is either "default" or "default-or-eui64", the
1021 global default is used. If the default is unspecified, the fallback value is either "stable-privacy"
1022 or "eui64", depending on whether the per-profile setting is "default" or "default-or-eui64, respectively.</para></listitem>
1023 </varlistentry>
1024 <varlistentry>
1025 <term><varname>ipv6.ra-timeout</varname></term>
1026 <listitem><para>If left unspecified, the default value depends on the sysctl solicitation settings.</para></listitem>
1027 </varlistentry>
1028 <varlistentry>
1029 <term><varname>ipv6.dhcp-duid</varname></term>
1030 <listitem><para>If left unspecified, it defaults to "lease".</para></listitem>
1031 </varlistentry>
1032 <varlistentry>
1033 <term><varname>ipv6.dhcp-iaid</varname></term>
1034 <listitem><para>If left unspecified, it defaults to "ifname".</para></listitem>
1035 </varlistentry>
1036 <varlistentry>
1037 <term><varname>ipv6.dhcp-hostname-flags</varname></term>
1038 <listitem><para>If left unspecified, the value 1 (fqdn-serv-update) is used.</para></listitem>
1039 </varlistentry>
1040 <varlistentry>
1041 <term><varname>ipv6.dhcp-send-hostname</varname></term>
1042 <listitem><para>Whether a hostname is sent to the DHCP server when acquiring a lease. When the property is not specified in the connection, the global value from NetworkManager configuration is looked up. If the global value is not set, the value from ipv6.dhcp-send-hostname-deprecated, which defaults to true, is used for backwards compatibility. In the future this will change and, in absence of a global default, it will always fallback to true.</para></listitem>
1043 </varlistentry>
1044 <varlistentry>
1045 <term><varname>ipv6.dhcp-send-release</varname></term>
1046 <listitem><para>Whether the DHCP client will send RELEASE message when bringing the connection down.</para></listitem>
1047 </varlistentry>
1048 <varlistentry>
1049 <term><varname>ipv6.dhcp-timeout</varname></term>
1050 <listitem><para>If left unspecified, the default value for
1051 the interface type is used.</para></listitem>
1052 </varlistentry>
1053 <varlistentry>
1054 <term><varname>ipv6.dns-priority</varname></term>
1055 <listitem><para>If unspecified or zero, use 50 for VPN profiles
1056 and 100 for other profiles.</para></listitem>
1057 </varlistentry>
1058 <varlistentry>
1059 <term><varname>ipv6.ip6-privacy</varname></term>
1060 <listitem><para>If <literal>ipv6.ip6-privacy</literal> is unset, use the content of
1061 "/proc/sys/net/ipv6/conf/default/use_tempaddr" as last fallback.
1062 </para></listitem>
1063 </varlistentry>
1064 <varlistentry>
1065 <term><varname>ipv6.temp-valid-lifetime</varname></term>
1066 <listitem><para>If <literal>ipv6.temp-valid-lifetime</literal> is unset, use the
1067 content of "/proc/sys/net/ipv6/conf/default/temp_valid_lft" as last fallback.
1068 </para></listitem>
1069 </varlistentry>
1070 <varlistentry>
1071 <term><varname>ipv6.temp-preferred-lifetime</varname></term>
1072 <listitem><para>If <literal>ipv6.temp-preferred-lifetime</literal> is unset, use
1073 the content of "/proc/sys/net/ipv6/conf/default/temp_prefered_lft" as last fallback.
1074 </para></listitem>
1075 </varlistentry>
1076 <varlistentry>
1077 <term><varname>ipv6.required-timeout</varname></term>
1078 </varlistentry>
1079 <varlistentry>
1080 <term><varname>ipv6.route-metric</varname></term>
1081 </varlistentry>
1082 <varlistentry>
1083 <term><varname>ipv6.route-table</varname></term>
1084 <listitem><para>If left unspecified, routes are only added to the main table. Note that this
1085 is different from explicitly selecting the main table 254, because of how NetworkManager
1086 removes extraneous routes from the tables.
1087 </para></listitem>
1088 </varlistentry>
1089 <varlistentry>
1090 <term><varname>loopback.mtu</varname></term>
1091 <listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or the MTU is left unspecified on activation.</para></listitem>
1092 </varlistentry>
1093 <varlistentry>
1094 <term><varname>macsec.offload</varname></term>
1095 </varlistentry>
1096 <varlistentry>
1097 <term><varname>sriov.autoprobe-drivers</varname></term>
1098 <listitem><para>If left unspecified, drivers are autoprobed when the SR-IOV VF gets created.</para></listitem>
1099 </varlistentry>
1100 <varlistentry>
1101 <term><varname>sriov.preserve-on-down</varname></term>
1102 <listitem><para>Set to 0 or 1 to select whether the SR-IOV parameters are
1103 preserved when the connection is deactivated. If left unspecified, default
1104 to 0 (parameters are not preserved). </para></listitem>
1105 </varlistentry>
1106 <varlistentry>
1107 <term><varname>vpn.timeout</varname></term>
1108 <listitem><para>If left unspecified, default value of 60 seconds is used.</para></listitem>
1109 </varlistentry>
1110 <varlistentry>
1111 <term><varname>wifi.ap-isolation</varname></term>
1112 <listitem><para>If left unspecified, AP isolation is disabled.</para></listitem>
1113 </varlistentry>
1114 <varlistentry>
1115 <term><varname>wifi.cloned-mac-address</varname></term>
1116 <listitem><para>If left unspecified, it defaults to "preserve".</para></listitem>
1117 </varlistentry>
1118 <varlistentry>
1119 <term><varname>wifi.generate-mac-address-mask</varname></term>
1120 </varlistentry>
1121 <varlistentry>
1122 <term><varname>wifi.mac-address-randomization</varname></term>
1123 <listitem><para>If left unspecified, MAC address randomization is disabled.
1124 This setting is deprecated for <literal>wifi.cloned-mac-address</literal>.
1125 </para></listitem>
1126 </varlistentry>
1127 <varlistentry>
1128 <term><varname>wifi.mtu</varname></term>
1129 <listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or a default of 1500.</para></listitem>
1130 </varlistentry>
1131 <varlistentry>
1132 <term><varname>wifi.powersave</varname></term>
1133 <listitem><para>If left unspecified, the default value
1134 "<literal>ignore</literal>" will be used.</para></listitem>
1135 </varlistentry>
1136 <varlistentry>
1137 <term><varname>wifi-sec.pmf</varname></term>
1138 <listitem><para>If left unspecified, the default value
1139 "<literal>optional</literal>" will be used.</para></listitem>
1140 </varlistentry>
1141 <varlistentry>
1142 <term><varname>wifi-sec.fils</varname></term>
1143 <listitem><para>If left unspecified, the default value
1144 "<literal>optional</literal>" will be used.</para></listitem>
1145 </varlistentry>
1146 <varlistentry>
1147 <term><varname>wifi.wake-on-wlan</varname></term>
1148 </varlistentry>
1149 <varlistentry>
1150 <term><varname>wireguard.mtu</varname></term>
1151 </varlistentry>
1152 </variablelist>
1153 <!-- The following comment is used by check-config-options.sh, don't remove it. -->
1154 <!-- end connection defaults -->
1155 </para>
1156 </refsect2>
1157
1158 <refsect2 id="connection-sections" xreflabel="“Sections” under the section called “CONNECTION SECTION”">
1159 <title>Sections</title>
1160 <para>
1161 You can configure multiple <literal>connection</literal>
1162 sections, by having different sections with a name that all start
1163 with "connection".
1164 Example:
1165 <programlisting>
1166 [connection]
1167 ipv6.ip6-privacy=0
1168 connection.autoconnect-ports=1
1169 vpn.timeout=120
1170
1171 [connection-wifi-wlan0]
1172 match-device=interface-name:wlan0
1173 ipv4.route-metric=50
1174
1175 [connection-wifi-other]
1176 match-device=type:wifi
1177 ipv4.route-metric=55
1178 ipv6.ip6-privacy=1
1179 </programlisting>
1180 </para>
1181
1182 <para>
1183 The sections within one file are considered in order of appearance, with the
1184 exception that the <literal>[connection]</literal> section is always
1185 considered last. In the example above, this order is <literal>[connection-wifi-wlan0]</literal>,
1186 <literal>[connection-wlan-other]</literal>, and <literal>[connection]</literal>.
1187 When checking for a default configuration value, the sections are searched until
1188 the requested value is found.
1189 In the example above, "ipv4.route-metric" for wlan0 interface is set to 50,
1190 and for all other Wi-Fi typed interfaces to 55. Also, Wi-Fi devices would have
1191 IPv6 private addresses enabled by default, but other devices would have it disabled.
1192 Note that also "wlan0" gets "ipv6.ip6-privacy=1", because although the section
1193 "[connection-wifi-wlan0]" matches the device, it does not contain that property
1194 and the search continues.
1195 </para>
1196 <para>
1197 When having different sections in multiple files, sections from files that are read
1198 later have higher priority. So within one file the priority of the sections is
1199 top-to-bottom. Across multiple files later definitions take precedence.
1200 </para>
1201
1202 <para>
1203 The following properties further control how a connection section applies.
1204 <variablelist>
1205 <varlistentry>
1206 <term><varname>match-device</varname></term>
1207 <listitem><para>An optional device spec that restricts
1208 when the section applies. See <xref linkend="device-spec"/>
1209 for the possible values.
1210 </para></listitem>
1211 </varlistentry>
1212 <varlistentry>
1213 <term><varname>stop-match</varname></term>
1214 <listitem><para>An optional boolean value which defaults to
1215 <literal>no</literal>. If the section matches (based on
1216 <literal>match-device</literal>), further sections will not be
1217 considered even if the property in question is not present. In
1218 the example above, if <literal>[connection-wifi-wlan0]</literal> would
1219 have <literal>stop-match</literal> set to <literal>yes</literal>,
1220 the device <literal>wlan0</literal> would have <literal>ipv6.ip6-privacy</literal>
1221 property unspecified. That is, the search for the property would not continue
1222 in the connection sections <literal>[connection-wifi-other]</literal>
1223 or <literal>[connection]</literal>.
1224 </para></listitem>
1225 </varlistentry>
1226 </variablelist>
1227 </para>
1228 </refsect2>
1229 </refsect1>
1230
1231 <refsect1>
1232 <title><literal>device</literal> section</title>
1233 <para>Contains per-device persistent configuration.
1234 </para>
1235 <para>
1236 Example:
1237 <programlisting>
1238 [device]
1239 match-device=interface-name:eth3
1240 managed=1
1241 </programlisting>
1242 </para>
1243 <refsect2>
1244 <title>Supported Properties</title>
1245 <para>
1246 The following properties can be configured per-device.
1247 <variablelist>
1248 <varlistentry id="managed">
1249 <term><varname>managed</varname></term>
1250 <listitem>
1251 <para>
1252 Whether the device is managed or not. A device can be
1253 marked as managed via udev rules (ENV{NM_UNMANAGED}),
1254 or via setting plugins (keyfile.unmanaged-devices).
1255 This is yet another way. Note that this configuration
1256 can be overruled at runtime via D-Bus. Also, it has
1257 higher priority then udev rules.
1258 </para>
1259 </listitem>
1260 </varlistentry>
1261 <varlistentry id="carrier-wait-timeout">
1262 <term><varname>carrier-wait-timeout</varname></term>
1263 <listitem>
1264 <para>
1265 Specify the timeout for waiting for carrier in milliseconds.
1266 The default is 6000 milliseconds.
1267 This setting exists because certain drivers/hardware can take
1268 a long time to detect whether the cable is plugged in.
1269 </para>
1270 <para>
1271 When the device loses carrier, NetworkManager does not react
1272 immediately. Instead, it waits for this timeout before considering
1273 the link lost.
1274 </para>
1275 <para>
1276 Also, on startup, NetworkManager considers the
1277 device as busy for this time, as long as the device has no carrier.
1278 This delays startup-complete signal and NetworkManager-wait-online.
1279 Configuring this too high means to block NetworkManager-wait-online
1280 longer than necessary when booting with cable unplugged. Configuring
1281 it too low, means that NetworkManager will declare startup-complete too
1282 soon, although carrier is about to come and auto-activation to kick in.
1283 Note that if a profile only has static IP configuration or Layer 3 configuration
1284 disabled, then it can already autoconnect without carrier on the device.
1285 Once such a profile reaches full activated state, startup-complete
1286 is considered as reached even if the device has no carrier yet.
1287 </para>
1288 </listitem>
1289 </varlistentry>
1290 <varlistentry id="ignore-carrier">
1291 <term><varname>ignore-carrier</varname></term>
1292 <listitem>
1293 <para>
1294 Specify devices for which NetworkManager will (partially)
1295 ignore the carrier state. Normally, for
1296 device types that support carrier-detect, such as Ethernet
1297 and InfiniBand, NetworkManager will only allow a
1298 connection to be activated on the device if carrier is
1299 present (ie, a cable is plugged in), and it will
1300 deactivate the device if carrier drops for more than a few
1301 seconds.
1302 </para>
1303 <para>
1304 A device with carrier ignored will allow activating connections on
1305 that device even when it does not have carrier, provided
1306 that the connection uses only statically-configured IP
1307 addresses. Additionally, it will allow any active
1308 connection (whether static or dynamic) to remain active on
1309 the device when carrier is lost.
1310 </para>
1311 <para>
1312 Note that the "carrier" property of NMDevices and device D-Bus
1313 interfaces will still reflect the actual device state; it's just
1314 that NetworkManager will not make use of that information.
1315 </para>
1316 <para>
1317 Master types like bond, bridge and team ignore carrier by default,
1318 while other device types react on carrier changes by default.
1319 </para>
1320 <para>
1321 This setting overwrites the deprecated <literal>main.ignore-carrier</literal>
1322 setting above.
1323 </para>
1324 </listitem>
1325 </varlistentry>
1326 <varlistentry id="keep-configuration">
1327 <term><varname>keep-configuration</varname></term>
1328 <listitem>
1329 <para>
1330 On startup, NetworkManager tries to not interfere with
1331 interfaces that are already configured. It does so by
1332 generating a in-memory connection based on the interface
1333 current configuration.
1334 </para>
1335 <para>
1336 If this generated connection matches one of the existing
1337 persistent connections, the persistent connection gets
1338 activated. If there is no match, the generated
1339 connection gets activated as "external", which means
1340 that the connection is considered as active, but
1341 NetworkManager doesn't actually touch the interface.
1342 </para>
1343 <para>
1344 It is possible to disable this behavior by setting
1345 <literal>keep-configuration</literal> to
1346 <literal>no</literal>. In this way, on startup
1347 NetworkManager always tries to activate the most
1348 suitable persistent connection (the one with highest
1349 autoconnect-priority or, in case of a tie, the one
1350 activated most recently).
1351 </para>
1352 <para>
1353 Note that when NetworkManager gets restarted, it stores
1354 the previous state in
1355 <filename>/run/NetworkManager</filename>; in particular
1356 it saves the UUID of the connection that was previously
1357 active so that it can be activated again after the
1358 restart. Therefore,
1359 <literal>keep-configuration</literal> does not have
1360 any effect on service restart.
1361 </para>
1362 </listitem>
1363 </varlistentry>
1364 <varlistentry id="allowed-connections">
1365 <term><varname>allowed-connections</varname></term>
1366 <listitem>
1367 <para>
1368 A list of connections that can be activated on the
1369 device. See <xref linkend="connection-spec"/> for the
1370 syntax to specify a connection. If this option is not
1371 specified, all connections can be potentially activated
1372 on the device, provided that the connection type and
1373 other settings match.
1374 </para>
1375 <para>
1376 A notable use case for this is to filter which
1377 connections can be activated based on how they were
1378 created; see the <literal>origin</literal> keyword in
1379 <xref linkend="connection-spec"/>.
1380 </para>
1381 </listitem>
1382 </varlistentry>
1383 <varlistentry>
1384 <term><varname>wifi.scan-rand-mac-address</varname></term>
1385 <listitem>
1386 <para>
1387 Configures MAC address randomization of a Wi-Fi device during
1388 scanning. This defaults to <literal>yes</literal> in which case
1389 a random, locally-administered MAC address will be used.
1390 The setting <literal>wifi.scan-generate-mac-address-mask</literal>
1391 can be used to influence the generated MAC address to use certain vendor
1392 OUIs.
1393 If disabled, the MAC address during scanning is left unchanged to
1394 whatever is configured.
1395 For the configured MAC address while the device is associated, see instead
1396 the per-connection setting <literal>wifi.cloned-mac-address</literal>.
1397 </para>
1398 </listitem>
1399 </varlistentry>
1400 <varlistentry id="wifi.backend">
1401 <term><varname>wifi.backend</varname></term>
1402 <listitem>
1403 <para>
1404 Specify the Wi-Fi backend used for the device. Currently, supported
1405 are <literal>wpa_supplicant</literal> and <literal>iwd</literal> (experimental).
1406 If unspecified, the default is "<literal>&NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT;</literal>".
1407 </para>
1408 </listitem>
1409 </varlistentry>
1410 <varlistentry>
1411 <term><varname>wifi.scan-generate-mac-address-mask</varname></term>
1412 <listitem>
1413 <para>
1414 Like the per-connection settings <literal>ethernet.generate-mac-address-mask</literal>
1415 and <literal>wifi.generate-mac-address-mask</literal>, this can be used to configure the
1416 generated MAC addresses during scanning. See <citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1417 for details.
1418 </para>
1419 </listitem>
1420 </varlistentry>
1421 <varlistentry>
1422 <term><varname>wifi.iwd.autoconnect</varname></term>
1423 <listitem>
1424 <para>
1425 If <literal>wifi.backend</literal> is <literal>iwd</literal>, setting this to
1426 <literal>false</literal> forces IWD's autoconnect mechanism to be disabled for
1427 this device and connections will only be initiated by NetworkManager whether
1428 commanded by a client or automatically. Leaving it <literal>true</literal> (default)
1429 stops NetworkManager from automatically initiating connections and allows
1430 IWD to use its network ranking and scanning logic to decide the best networks
1431 to autoconnect to next. Connections' <literal>autoconnect-priority</literal>,
1432 <literal>autoconnect-retries</literal> settings will be ignored. Other settings
1433 like <literal>permissions</literal> or <literal>multi-connect</literal> may interfere
1434 with IWD connection attempts.
1435 </para>
1436 </listitem>
1437 </varlistentry>
1438 <varlistentry id="sriov-num-vfs">
1439 <term><varname>sriov-num-vfs</varname></term>
1440 <listitem>
1441 <para>
1442 Specify the number of virtual functions (VF) to enable
1443 for a PCI physical device that supports single-root I/O
1444 virtualization (SR-IOV).
1445 </para>
1446 </listitem>
1447 </varlistentry>
1448 </variablelist>
1449 </para>
1450 </refsect2>
1451
1452 <refsect2>
1453 <title>Sections</title>
1454 <para>
1455 The <literal>[device]</literal> section works the same as the <literal>[connection]</literal> section.
1456 That is, multiple sections that all start with the prefix "device" can be specified.
1457 The settings "match-device" and "stop-match" are available to match a device section
1458 on a device. The order of multiple sections is also top-down within the file and
1459 later files overwrite previous settings. See <xref linkend="connection-sections"/>
1460 for details.
1461 </para>
1462 </refsect2>
1463 </refsect1>
1464
1465 <refsect1>
1466 <title><literal>connectivity</literal> section</title>
1467
1468 <para>This section controls NetworkManager's optional connectivity
1469 checking functionality. This allows NetworkManager to detect
1470 whether or not the system can actually access the internet or
1471 whether it is behind a captive portal.</para>
1472
1473 <para>Connectivity checking serves two purposes. For one, it exposes
1474 a connectivity state on D-Bus, which other applications may use. For example,
1475 Gnome's portal helper uses this as signal to show a captive portal login
1476 page.
1477 The other use is that default-route of devices without global connectivity
1478 get a penalty of +20000 to the route-metric. This has the purpose to give a
1479 better default-route to devices that have global connectivity. For example,
1480 when being connected to WWAN and to a Wi-Fi network which is behind a captive
1481 portal, WWAN still gets preferred until login.</para>
1482
1483 <para>Note that your distribution might set <literal>/proc/sys/net/ipv4/conf/*/rp_filter</literal> to
1484 strict filtering. That works badly with per-device connectivity checking,
1485 which uses SO_BINDDEVICE to send requests on all devices. A strict rp_filter
1486 setting will reject any response and the connectivity check on all but the
1487 best route will fail.</para>
1488
1489 <para>
1490 <variablelist>
1491 <varlistentry>
1492 <term><varname>enabled</varname></term>
1493 <listitem><para>Whether connectivity check is enabled.
1494 Note that to enable connectivity check, a valid uri must
1495 also be configured. The value defaults to true, but since
1496 the uri is unset by default, connectivity check may be disabled.
1497 The main purpose of this option is to have a single flag
1498 to disable connectivity check. Note that this setting can
1499 also be set via D-Bus API at runtime. In that case, the value gets
1500 stored in <filename>/var/lib/NetworkManager/NetworkManager-intern.conf</filename>
1501 file.
1502 </para></listitem>
1503 </varlistentry>
1504 <varlistentry>
1505 <term><varname>uri</varname></term>
1506 <listitem><para>The URI of a web page to periodically
1507 request when connectivity is being checked. This page
1508 should return the header "X-NetworkManager-Status" with a
1509 value of "online". Alternatively, its body content should
1510 be set to "NetworkManager is online". The body content
1511 check can be controlled by the <literal>response</literal>
1512 option. If this option is blank or missing, connectivity
1513 checking is disabled.
1514 </para></listitem>
1515 </varlistentry>
1516 <varlistentry>
1517 <term><varname>interval</varname></term>
1518 <listitem><para>Specified in seconds; controls how often
1519 connectivity is checked when a network connection exists. If
1520 set to 0 connectivity checking is disabled. If missing, the
1521 default is 300 seconds.</para></listitem>
1522 </varlistentry>
1523 <varlistentry>
1524 <term><varname>timeout</varname></term>
1525 <listitem><para>Specified in seconds; controls how long
1526 to wait for a response before connectivity is marked as
1527 limited. If missing, the default is 20 seconds.</para></listitem>
1528 </varlistentry>
1529 <varlistentry>
1530 <term><varname>response</varname></term>
1531 <listitem><para>If set, controls what body content
1532 NetworkManager checks for when requesting the URI for
1533 connectivity checking. Note that this only compares
1534 that the HTTP response starts with the specified text,
1535 it does not compare the exact string. This behavior
1536 might change in the future, so avoid relying on it.
1537 If missing, the response defaults to "NetworkManager is online".
1538 If set to empty, the HTTP server is expected to answer with
1539 status code 204 or send no data.</para></listitem>
1540 </varlistentry>
1541 </variablelist>
1542 </para>
1543 </refsect1>
1544
1545 <refsect1>
1546 <title><literal>global-dns</literal> section</title>
1547 <para>This section specifies DNS settings that are applied globally. They
1548 override the equivalent options defined in individual connections, making
1549 them to be ignored. If a [global-dns-domain-*] section is defined, but this
1550 section isn't, an empty [global-dns] section is assumed, thus overwriting
1551 connection specific configurations too.
1552 </para>
1553 <para>
1554 <variablelist>
1555 <varlistentry>
1556 <term><varname>searches</varname></term>
1557 <listitem>
1558 <para>
1559 A list of search domains to be used during hostname lookup.
1560 </para>
1561 </listitem>
1562 </varlistentry>
1563 <varlistentry>
1564 <term><varname>options</varname></term>
1565 <listitem>
1566 <para>
1567 A list of options to be passed to the hostname resolver.
1568 </para>
1569 </listitem>
1570 </varlistentry>
1571 <varlistentry>
1572 <term><varname>resolve-mode</varname></term>
1573 <listitem>
1574 <para>
1575 String indicating how DNS servers retrieved from global configuration and connections
1576 should be used. <literal>backup</literal> - Indicates that they can be freely merged
1577 and used for the same purposes. <literal>prefer</literal> - Forbids DNS servers
1578 retrieved from connections to be used for general queries that are not subdomains of
1579 domains set by connection. <literal>exclusive</literal> - Forbids use of connection
1580 DNS servers for any query. Currently relevant only for Dnsconfd plugin.
1581 </para>
1582 </listitem>
1583 </varlistentry>
1584 <varlistentry>
1585 <term><varname>certification-authority</varname></term>
1586 <listitem>
1587 <para>
1588 String specifying absolute path to bundle of CA certificates that must be used for
1589 validation of certificates presented by DNS servers when encrypted DNS is used.
1590 Currently relevant only for Dnsconfd plugin.
1591 </para>
1592 </listitem>
1593 </varlistentry>
1594 </variablelist>
1595 </para>
1596 </refsect1>
1597
1598 <refsect1>
1599 <title><literal>global-dns-domain</literal> sections</title>
1600 <para>Sections with a name starting with the "global-dns-domain-"
1601 prefix allow one to define global DNS configuration for specific
1602 domains. The part of section name after "global-dns-domain-"
1603 specifies the domain name a section applies to (for example, a
1604 section could be named "global-dns-domain-foobar.com"). More
1605 specific domains have the precedence over less specific ones and
1606 the default domain is represented by the wildcard "*".
1607
1608 To be valid, global DNS domains must include a section for the
1609 default domain "*". When the global DNS domains are valid, the
1610 name servers and domains defined globally override the ones from
1611 active connections.
1612
1613 If any global DNS domain is defined but a [global-dns] section isn't,
1614 an empty [global-dns] section is assumed, thus overwriting its
1615 connection specific configurations too.
1616 </para>
1617 <para>
1618 <variablelist>
1619 <varlistentry>
1620 <term><varname>servers</varname></term>
1621 <listitem>
1622 <para>
1623 A list of addresses of DNS servers to be used for the
1624 given domain. Each server can be specified either as a
1625 plain IP address or with a URI syntax. When it is
1626 specified as an URI, the following forms are supported:
1627 </para>
1628 <para>
1629 <simplelist type="horiz" columns="1">
1630 <member>dns+udp://<varname>ADDRESS</varname>[:<varname>PORT</varname>] : DNS</member>
1631 <member>dns+tls://<varname>ADDRESS</varname>[:<varname>PORT</varname>][#<varname>SERVERNAME]</varname> : DNS over TLS</member>
1632 </simplelist>
1633 </para>
1634 <para>
1635 <varname>ADDRESS</varname> is an IPv4 or IPv6
1636 address. When it is IPv6, it must be enclosed in square
1637 brackets ('[' and ']'). When it is a IPv6 link-local
1638 address, the address should be followed by a percent
1639 sign ('%') and an interface name.
1640 </para>
1641 </listitem>
1642 </varlistentry>
1643 <varlistentry>
1644 <term><varname>options</varname></term>
1645 <listitem>
1646 <para>
1647 A list of domain-specific DNS options. Not used at the moment.
1648 </para>
1649 </listitem>
1650 </varlistentry>
1651 </variablelist>
1652 </para>
1653 </refsect1>
1654
1655 <refsect1>
1656 <title><literal>.config</literal> sections</title>
1657 <para>This is a special section that contains options which apply
1658 to the configuration file that contains the option.
1659 </para>
1660 <para>
1661 <variablelist>
1662 <varlistentry>
1663 <term><varname>enable</varname></term>
1664 <listitem>
1665 <para>
1666 Defaults to "<literal>true</literal>". If "<literal>false</literal>",
1667 the configuration file will be skipped during loading.
1668 Note that the main configuration file <literal>NetworkManager.conf</literal>
1669 cannot be disabled.
1670 <programlisting>
1671 # always skip loading the config file
1672 [.config]
1673 enable=false
1674 </programlisting>
1675 </para>
1676 <para>
1677 You can also match against the version of NetworkManager. For example
1678 the following are valid configurations:
1679 <programlisting>
1680 # only load on version 1.0.6
1681 [.config]
1682 enable=nm-version:1.0.6
1683
1684 # load on all versions 1.0.x, but not 1.2.x
1685 [.config]
1686 enable=nm-version:1.0
1687
1688 # only load on versions &gt;= 1.1.6. This does not match
1689 # with version 1.2.0 or 1.4.4. Only the last digit is considered.
1690 [.config]
1691 enable=nm-version-min:1.1.6
1692
1693 # only load on versions &gt;= 1.2. Contrary to the previous
1694 # example, this also matches with 1.2.0, 1.2.10, 1.4.4, etc.
1695 [.config]
1696 enable=nm-version-min:1.2
1697
1698 # Match against the maximum allowed version. The example matches
1699 # versions 1.2.0, 1.2.2, 1.2.4. Again, only the last version digit
1700 # is allowed to be smaller. So this would not match on 1.1.10.
1701 [.config]
1702 enable=nm-version-max:1.2.6
1703 </programlisting>
1704 </para>
1705 <para>
1706 You can also match against the value of the environment variable
1707 <literal>NM_CONFIG_ENABLE_TAG</literal>, like:
1708 <programlisting>
1709 # only load the file when running NetworkManager with
1710 # environment variable "NM_CONFIG_ENABLE_TAG=TAG1"
1711 [.config]
1712 enable=env:TAG1
1713 </programlisting>
1714 </para>
1715 <para>
1716 More then one match can be specified. The configuration will be
1717 enabled if one of the predicates matches ("or"). The special prefix "except:" can
1718 be used to negate the match. Note that if one except-predicate
1719 matches, the entire configuration will be disabled.
1720 In other words, a except predicate always wins over other predicates.
1721 If the setting only consists of "except:" matches and none of the
1722 negative conditions are satisfied, the configuration is still enabled.
1723 <programlisting>
1724 # enable the configuration either when the environment variable
1725 # is present or the version is at least 1.2.0.
1726 [.config]
1727 enable=env:TAG2,nm-version-min:1.2
1728
1729 # enable the configuration for version &gt;= 1.2.0, but disable
1730 # it when the environment variable is set to "TAG3"
1731 [.config]
1732 enable=except:env:TAG3,nm-version-min:1.2
1733
1734 # enable the configuration on &gt;= 1.3, &gt;= 1.2.6, and &gt;= 1.0.16.
1735 # Useful if a certain feature is only present since those releases.
1736 [.config]
1737 enable=nm-version-min:1.3,nm-version-min:1.2.6,nm-version-min:1.0.16
1738 </programlisting>
1739 </para>
1740 </listitem>
1741 </varlistentry>
1742 </variablelist>
1743 </para>
1744 </refsect1>
1745
1746 <refsect1 id="settings-plugins">
1747 <title>Plugins</title>
1748
1749 <para>
1750 Settings plugins for reading and writing connection profiles. The number of
1751 available plugins is distribution specific.
1752 </para>
1753
1754 <variablelist>
1755 <varlistentry>
1756 <term><varname>keyfile</varname></term>
1757 <listitem>
1758 <para>
1759 The <literal>keyfile</literal> plugin is the generic
1760 plugin that supports all the connection types and
1761 capabilities that NetworkManager has. It writes files out
1762 in an .ini-style format in
1763 <filename>/etc/NetworkManager/system-connections</filename>.
1764 See <link linkend='nm-settings-keyfile'><citerefentry><refentrytitle>nm-settings-keyfile</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>
1765 for details about the file format.
1766 </para>
1767 <para>
1768 The stored connection file may contain passwords, secrets and
1769 private keys in plain text, so it will be made readable only to
1770 root, and the plugin will ignore files that are readable or
1771 writable by any user or group other than root. See "Secret flag types"
1772 in <link linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>
1773 for how to avoid storing passwords in plain text.
1774 </para>
1775 <para>
1776 This plugin is always active, and will automatically be
1777 used to store any connections that aren't supported by any
1778 other active plugin.
1779 </para>
1780 </listitem>
1781 </varlistentry>
1782
1783 <varlistentry>
1784 <term><varname>ifcfg-rh</varname></term>
1785 <listitem>
1786 <para>
1787 This plugin is now deprecated; it can be used on the
1788 Fedora and Red Hat Enterprise Linux distributions to read
1789 and write configuration from the standard
1790 <filename>/etc/sysconfig/network-scripts/ifcfg-*</filename>
1791 files. It currently supports reading Ethernet, Wi-Fi,
1792 InfiniBand, VLAN, Bond, Bridge, and Team connections.
1793 Enabling <literal>ifcfg-rh</literal> implicitly enables
1794 <literal>ibft</literal> plugin, if it is available.
1795 This can be disabled by adding <literal>no-ibft</literal>.
1796 See <filename>/usr/share/doc/initscripts/sysconfig.txt</filename>
1797 and <link linkend='nm-settings-ifcfg-rh'><citerefentry><refentrytitle>nm-settings-ifcfg-rh</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>
1798 for more information about the ifcfg file format.
1799 </para>
1800 </listitem>
1801 </varlistentry>
1802
1803 <varlistentry>
1804 <term><varname>ifupdown</varname></term>
1805 <listitem>
1806 <para>
1807 This plugin is used on the Debian and Ubuntu
1808 distributions, and reads Ethernet and Wi-Fi connections
1809 from <filename>/etc/network/interfaces</filename>.
1810 </para>
1811 <para>
1812 This plugin is read-only; any connections (of any type)
1813 added from within NetworkManager when you are using this
1814 plugin will be saved using the <literal>keyfile</literal>
1815 plugin instead.
1816 </para>
1817 </listitem>
1818 </varlistentry>
1819
1820 <varlistentry>
1821 <term><varname>ibft</varname>, <varname>no-ibft</varname></term>
1822 <listitem>
1823 <para>
1824 These plugins are deprecated and their selection has no effect.
1825 This is now handled by nm-initrd-generator.
1826 </para>
1827 </listitem>
1828 </varlistentry>
1829
1830 <varlistentry>
1831 <term><varname>ifcfg-suse</varname>, <varname>ifnet</varname></term>
1832 <listitem>
1833 <para>
1834 These plugins are deprecated and their selection has no effect.
1835 The <literal>keyfile</literal> plugin should be used
1836 instead.
1837 </para>
1838 </listitem>
1839 </varlistentry>
1840
1841 </variablelist>
1842 </refsect1>
1843
1844 <refsect1>
1845 <title>Appendix</title>
1846 <refsect2 id="device-spec">
1847 <title>Device List Format</title>
1848 <para>
1849 The configuration options <literal>main.no-auto-default</literal>, <literal>main.ignore-carrier</literal>,
1850 <literal>keyfile.unmanaged-devices</literal>, <literal>connection*.match-device</literal> and
1851 <literal>device*.match-device</literal> select devices based on a list of matchings.
1852 Devices can be specified using the following format:
1853 </para>
1854 <para>
1855 <variablelist>
1856 <varlistentry>
1857 <term>*</term>
1858 <listitem><para>Matches every device.</para></listitem>
1859 </varlistentry>
1860 <varlistentry>
1861 <term>IFNAME</term>
1862 <listitem><para>Case sensitive match of interface name of the device. Globbing is not supported.</para></listitem>
1863 </varlistentry>
1864 <varlistentry>
1865 <term>HWADDR</term>
1866 <listitem><para>Match the permanent MAC address of the device. Globbing is not supported</para></listitem>
1867 </varlistentry>
1868 <varlistentry>
1869 <term>interface-name:IFNAME</term>
1870 <term>interface-name:~IFNAME</term>
1871 <listitem><para>Case sensitive match of interface name of the device. Simple globbing is supported with
1872 <literal>*</literal> and <literal>?</literal>. Ranges and escaping is not supported.</para></listitem>
1873 </varlistentry>
1874 <varlistentry>
1875 <term>interface-name:=IFNAME</term>
1876 <listitem><para>Case sensitive match of interface name of the device. Globbing is disabled and <literal>IFNAME</literal>
1877 is taken literally.</para></listitem>
1878 </varlistentry>
1879 <varlistentry>
1880 <term>mac:HWADDR</term>
1881 <listitem><para>Match the permanent MAC address of the device. Globbing is not supported</para></listitem>
1882 </varlistentry>
1883 <varlistentry>
1884 <term>s390-subchannels:HWADDR</term>
1885 <listitem><para>Match the device based on the subchannel address. Globbing is not supported</para></listitem>
1886 </varlistentry>
1887 <varlistentry>
1888 <term>type:TYPE</term>
1889 <listitem><para>Match the device type. Valid type names are as reported by "<literal>nmcli -f GENERAL.TYPE device show</literal>".
1890 Globbing is not supported.</para></listitem>
1891 </varlistentry>
1892 <varlistentry>
1893 <term>driver:DRIVER</term>
1894 <listitem><para>Match the device driver as reported by "<literal>nmcli -f GENERAL.DRIVER,GENERAL.DRIVER-VERSION device show</literal>".
1895 "<literal>DRIVER</literal>" must match the driver name exactly and does not support globbing.
1896 Optionally, a driver version may be specified separated by '/'. Globbing is supported for the version.
1897 </para></listitem>
1898 </varlistentry>
1899 <varlistentry>
1900 <term>dhcp-plugin:DHCP</term>
1901 <listitem><para>Match the configured DHCP plugin "<literal>main.dhcp</literal>".
1902 </para></listitem>
1903 </varlistentry>
1904 <varlistentry>
1905 <term>except:SPEC</term>
1906 <listitem><para>Negative match of a device. <literal>SPEC</literal> must be explicitly qualified with
1907 a prefix such as <literal>interface-name:</literal>. A negative match has higher priority then the positive
1908 matches above.</para>
1909 <para>If there is a list consisting only of negative matches, the behavior is the same as if there
1910 is also match-all. That means, if none of all the negative matches is satisfied, the overall result is
1911 still a positive match. That means, <literal>"except:interface-name:eth0"</literal> is the same as
1912 <literal>"*,except:interface-name:eth0"</literal>.</para></listitem>
1913 </varlistentry>
1914 <varlistentry>
1915 <term>SPEC[,;]SPEC</term>
1916 <listitem><para>Multiple specs can be concatenated with commas or semicolons. The order does not matter as
1917 matches are either inclusive or negative (<literal>except:</literal>), with negative matches having higher
1918 priority.
1919 </para>
1920 <para>Backslash is supported to escape the separators ';' and ',', and to express special
1921 characters such as newline ('\n'), tabulator ('\t'), whitespace ('\s') and backslash ('\\'). The globbing of
1922 interface names cannot be escaped. Whitespace is not a separator but will be trimmed between
1923 two specs (unless escaped as '\s').
1924 </para>
1925 </listitem>
1926 </varlistentry>
1927 </variablelist>
1928 </para>
1929 <para>
1930 Example:
1931 <programlisting>
1932 interface-name:em4
1933 mac:00:22:68:1c:59:b1;mac:00:1E:65:30:D1:C4;interface-name:eth2
1934 interface-name:vboxnet*,except:interface-name:vboxnet2
1935 *,except:mac:00:22:68:1c:59:b1
1936 </programlisting>
1937 </para>
1938 </refsect2>
1939
1940 <refsect2 id="connection-spec">
1941 <title>Connection List Format</title>
1942 <para>
1943 Connections can be specified using the following format:
1944 </para>
1945 <para>
1946 <variablelist>
1947 <varlistentry>
1948 <term>*</term>
1949 <listitem><para>Matches every connection.</para></listitem>
1950 </varlistentry>
1951 <varlistentry>
1952 <term>uuid:UUID</term>
1953 <listitem><para>Match the connection by UUID, for example
1954 <literal>"uuid:83037490-1d17-4986-a397-01f1db3a7fc2"</literal></para></listitem>
1955 </varlistentry>
1956 <varlistentry>
1957 <term>id:ID</term>
1958 <listitem><para>Match the connection by name.</para></listitem>
1959 </varlistentry>
1960 <varlistentry>
1961 <term>origin:ORIGIN</term>
1962 <listitem><para>Match the connection by origin, stored in the
1963 <literal>org.freedesktop.NetworkManager.origin</literal> tag of the user setting. For example, use
1964 <literal>"except:origin:nm-initrd-generator"</literal> to forbid activation of connections created by the
1965 initrd generator.</para></listitem>
1966 </varlistentry>
1967 <varlistentry>
1968 <term>except:SPEC</term>
1969 <listitem><para>Negative match of a connection. A negative match has higher priority then the positive
1970 matches above.</para>
1971 <para>If there is a list consisting only of negative matches, the behavior is the same as if there is also
1972 match-all. That means, if none of all the negative matches is satisfied, the overall result is still a
1973 positive match.</para></listitem>
1974 </varlistentry>
1975 <varlistentry>
1976 <term>SPEC[,;]SPEC</term>
1977 <listitem><para>Multiple specs can be concatenated with commas or semicolons. The order does not matter as
1978 matches are either inclusive or negative (<literal>except:</literal>), with negative matches having higher
1979 priority.</para>
1980 <para>Backslash is supported to escape the separators ';' and ',', and to express special characters such as
1981 newline ('\n'), tabulator ('\t'), whitespace ('\s') and backslash ('\\'). Whitespace is not a separator but
1982 will be trimmed between two specs (unless escaped as '\s').</para></listitem>
1983 </varlistentry>
1984 </variablelist>
1985 </para>
1986 </refsect2>
1987
1988 </refsect1>
1989
1990 <refsect1>
1991 <title>See Also</title>
1992 <para>
1993 <link linkend='NetworkManager'><citerefentry><refentrytitle>NetworkManager</refentrytitle><manvolnum>8</manvolnum></citerefentry></link>,
1994 <link linkend='nmcli'><citerefentry><refentrytitle>nmcli</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>,
1995 <link linkend='nmcli-examples'><citerefentry><refentrytitle>nmcli-examples</refentrytitle><manvolnum>7</manvolnum></citerefentry></link>,
1996 <link linkend='nm-online'><citerefentry><refentrytitle>nm-online</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>,
1997 <link linkend='nm-settings-nmcli'><citerefentry><refentrytitle>nm-settings-nmcli</refentrytitle><manvolnum>5</manvolnum></citerefentry></link>,
1998 <citerefentry><refentrytitle>nm-applet</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1999 <citerefentry><refentrytitle>nm-connection-editor</refentrytitle><manvolnum>1</manvolnum></citerefentry>
2000 </para>
2001 </refsect1>
2002 </refentry>