mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-22 10:22:27 +00:00
Leave dhcpcd and NetworkManager host identity out of captures
dhcpcd, present on Ubuntu 24.04 and later and on EL10, keeps its leases, DUID and secret in /var/lib/dhcpcd, and NetworkManager keeps a secret in secret_key. Copied into an image, every clone would use the same DHCPv6 DUID and derive the same stable privacy IPv6 addresses. Both regenerate them when missing.
This commit is contained in:
@@ -168,6 +168,11 @@ CAPTURE_DROP_FILES = (
|
||||
'/var/lib/NetworkManager/*.lease', '/var/lib/dhclient/*.lease*',
|
||||
# dhclient on Debian and Ubuntu, unlike dhcpd.leases of a DHCP server
|
||||
'/var/lib/dhcp/dhclient*.leases',
|
||||
# dhcpcd (Ubuntu 24.04 and later, EL10) and NetworkManager keep a per host
|
||||
# DUID and secret, shared ones would give every clone the same DHCPv6
|
||||
# identity and stable privacy IPv6 addresses
|
||||
'/var/lib/dhcpcd/*.lease*', '/var/lib/dhcpcd/duid', '/var/lib/dhcpcd/secret',
|
||||
'/var/lib/NetworkManager/secret_key',
|
||||
'/root/.*_history', '/root/.lesshst', '/root/.viminfo',
|
||||
'/etc/NetworkManager/system-connections/*',
|
||||
'/etc/sysconfig/network-scripts/ifcfg-*')
|
||||
|
||||
Reference in New Issue
Block a user