summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-03-19 10:35:56 -0400
committerDan Winship <danw@gnome.org>2013-04-03 10:23:49 -0400
commit08e7fda63db16f9c6c97dc4bf1e966db738df607 (patch)
tree35623eed5faecb78082a94b6d21ff4c0a05a066c /data
parent282a9720ab4432b919e0fa57a9b71dfe87ee8ac1 (diff)
downloadNetworkManager-08e7fda63db16f9c6c97dc4bf1e966db738df607.tar.gz
data: add a server.conf example file
Add a server.conf example file, and install it to $(docdir)/examples.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am6
-rw-r--r--data/server.conf.in53
2 files changed, 59 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 2a1d1cf4f8..4e48cf1c6a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,6 +18,12 @@ $(service_DATA): $(service_in_files) Makefile
$(edit) $< >$@
endif
+examplesdir = $(docdir)/examples
+examples_DATA = server.conf
+
+server.conf: server.conf.in
+ $(edit) $< >$@
+
edit = sed \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@sbindir[@]|$(sbindir)|g' \
diff --git a/data/server.conf.in b/data/server.conf.in
new file mode 100644
index 0000000000..757636389b
--- /dev/null
+++ b/data/server.conf.in
@@ -0,0 +1,53 @@
+# This is a sample configuration file that could be edited and
+# dropped into @sysconfdir@/NetworkManager/conf.d to disable certain
+# bits of automatic behavior that might not be wanted on servers.
+
+[main]
+
+# Normally, if there is an ethernet device that is not matched by any
+# existing configured connection, NetworkManager will create a
+# "default" connection for that device, using automatic (DHCP/SLAAC)
+# IP configuration. You can use no-auto-default to disable this
+# behavior for individual devices or for all devices on the system
+#
+# Note that if you delete an existing "default" connection, NM will
+# remember this by adding the device's hardware address to
+# @localstatedir@/run/NetworkManager/no-auto-default.state; the devices
+# indicated in this file will be appended to the value of the
+# no-auto-default key.
+
+#no-auto-default=eth0,eth1
+#no-auto-default=11:22:33:44:55:66
+#no-auto-default=*
+
+
+# Normally, for device types that support carrier-detect, such as
+# Ethernet and InfiniBand, NetworkManager will only allow a connection
+# to be activated on the device if carrier is present (ie, a cable is
+# plugged in). You can set ignore-carrier to disable this behavior,
+# for individual devices or for all devices on the system.
+#
+# Note that the "carrier" property of NMDevices and device D-Bus
+# interfaces will still reflect the actual device state; it's just
+# that NetworkManager will not make use of that information.
+#
+# You should probably not set this to apply to devices where you are
+# doing automatic IP config, since they will eventually fail if there
+# is no actual network connectivity, and NetworkManager won't retry
+# them right away when carrier comes back up (since it's ignoring it).
+
+#ignore-carrier=eth0,ib0
+#ignore-carrier=aa:bb:cc:dd:ee:ff
+#ignore-carrier=*
+
+
+# Normally, NetworkManager adjusts /etc/resolv.conf to point to the
+# name servers associated with currently-active connections (either
+# manually-configured servers, or ones received via DHCP, etc).
+# Setting "dns=none" will turn off this behavior, and NetworkManager
+# will leave /etc/resolv.conf untouched. See NetworkManager.conf.5 for
+# more information about other values you can set this to.
+
+#dns=none
+
+