From: Roy Marples Date: Wed, 27 May 2020 22:34:16 +0000 (+0100) Subject: dhcpcd.conf: harden default options X-Git-Tag: v9.1.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a52d7b81b3bc29885b93ea234ad2932adf65125;p=thirdparty%2Fdhcpcd.git dhcpcd.conf: harden default options Don't send the current hostname. Don't send the default vendorclassid. Slight re-org while here. --- diff --git a/src/dhcpcd.conf b/src/dhcpcd.conf index 537ed77b..916e82da 100644 --- a/src/dhcpcd.conf +++ b/src/dhcpcd.conf @@ -5,7 +5,7 @@ #controlgroup wheel # Inform the DHCP server of our hostname for DDNS. -hostname +#hostname # Use the hardware address of the interface for the Client ID. #clientid @@ -18,20 +18,27 @@ duid # Persist interface configuration when dhcpcd exits. persistent -# Rapid commit support. -# Safe to enable by default because it requires the equivalent option set -# on the server to actually work. -option rapid_commit +# vendorclassid is set to blank to avoid sending the default of +# dhcpcd-::: +vendorclassid # A list of options to request from the DHCP server. -option domain_name_servers, domain_name, domain_search, host_name +option domain_name_servers, domain_name, domain_search option classless_static_routes # Respect the network MTU. This is applied to DHCP routes. option interface_mtu +# Request a hostname from the network +option host_name + # Most distributions have NTP support. #option ntp_servers +# Rapid commit support. +# Safe to enable by default because it requires the equivalent option set +# on the server to actually work. +option rapid_commit + # A ServerID is required by RFC2131. require dhcp_server_identifier