User Tools

Site Tools


addressrandomization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
addressrandomization [2020/03/27 15:54]
Denis Kenzior created
addressrandomization [2020/03/27 16:22]
James Prestwood
Line 1: Line 1:
-empty+====== MAC Address Randomization ====== 
 + 
 +IWD has supported randomizing the adapters MAC address on startup for quite some time, but this only randomizes the address once for the lifetime of IWD. In the 1.6 release address randomization on a per-network basis was added. Enabling this can be done inside IWD's main config file (default ''/​etc/​iwd/​main.conf''​):​ 
 + 
 +<​code>​ 
 +# main.conf 
 +[General] 
 +AddressRandomization=network 
 +</​code>​ 
 + 
 +This option was added to ''​AddressRandomization''​ but truthfully this is not random. The MAC address is generated using a SHA256 digest from the permanent adapters address and the SSID being connected to. This is a deterministic operation which will allow the same MAC to be used on every connection to a given SSID. Generally this is the behavior the average user wants. For fully randomized MAC addresses see [[#​AlwaysRandomizeAddress]]. 
 + 
 +===== AlwaysRandomizeAddress ===== 
 +The ([[https://​iwd.wiki.kernel.org/​networkconfigurationsettings#​general_network_configuration_settings|AlwaysRandomizeAddress]]) option was added to network provisioning files. Its value only takes effect when ''​AddressRandomization''​ is set to ''​network''​. When enabled the MAC address is randomized on each connection to a network in a non-deterministic fashion. To the access point it will appear as if a brand new client is connecting every time. 
 + 
 +===== AddressOverride ===== 
 +The ([[https://​iwd.wiki.kernel.org/​networkconfigurationsettings#​general_network_configuration_settings|AddressOverride]]) option was added to network provisioning files. Its value only takes effect when ''​AddressRandomization''​ is set to ''​network''​. When enabled the MAC address will be set to this value when connecting to the network that the provisioning file dictates, and only for this network. 
 + 
 +<​code>​ 
 +# /​var/​lib/​MySSID.psk 
 +[Settings] 
 +AddressOverride=11:​22:​33:​44:​55:​66 
 +</​code>​
addressrandomization.txt · Last modified: 2020/03/27 17:18 by James Prestwood