{etc,var/lib/}iwd/: read manual, adjust accordingly

This commit is contained in:
Aminda Suomalainen 2023-01-27 10:51:51 +02:00
parent fbb74df04f
commit ebc01c16eb
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
12 changed files with 51 additions and 7 deletions

View File

@ -9,6 +9,14 @@
Country=FI
# legacy compatibility, at least on Lumina?
use_default_interface=true
# build-in DHCP client
# build-in network configuration including DHCP client
EnableNetworkConfiguration=true
# Generate a different spoofed MAC address for every SSID. Some networks
# configured in /var/lib/iwd/ have a new MAC address for every connection.
AddressRandomization=network
[Network]
EnableIPv6=true
# resolvconf/systemd/none. I prefer configuring resolv.conf/unbound by
# myself.
NameResolvingService=none

View File

@ -1,3 +1,4 @@
*.psk
*.8021x
!private-wifi-sample.psk
!private-cafe-sample.psk
!private-home-sample.psk

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -11,3 +11,9 @@ Notes:
* `Settings.AutoConnect=true` is unnecessary as it defaults to true
according to `man iwd.network`.
* `IPv6.Enabled=true` defauls to true being also unnecessary.
* `private-home-sample.psk` has a comment on MAC address override and sends
hostname with IPv4 DHCP. `private-cafe-sample.psk` always randomizes MAC
address and doesn't send hostname.
* The `.open` networks always randomize MAC address too. If a network is
private and needs MAC address for captive portal override or something,
`private-home-sample.psk` should be adjusted from.

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true

View File

@ -1,9 +1,9 @@
# This SSID is "private-wifi-sample", it comes from the filename
# This SSID is "private-cafe-sample", it comes from the filename
[Settings]
AutoConnect=true
[IPv6]
Enabled=true
AlwaysRandomizeAddress=true
[Security]
Passphrase=MySuperSecretPassphraseThatDoesNotReadHere
[IPv6]
Enabled=true

View File

@ -0,0 +1,15 @@
# This SSID is "private-home-sample", it comes from the filename
[Settings]
AutoConnect=true
# MAC address override. Takes priority over AlwaysRandomizeAddress
#AddressOverride=
[Security]
Passphrase=MySuperSecretPassphraseThatDoesNotReadHere
[IPv4]
# In home network recognising the device may be a quality of life feature
SendHostname=true
[IPv6]
Enabled=true

View File

@ -0,0 +1,2 @@
[Settings]
AlwaysRandomizeAddress=true