shell-things/etc/iwd/main.conf

27 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-01-06 13:50:14 +01:00
[General]
# Request setting regulatory domain (ISO-Alpha-2). Check with `iw reg get`.
# Location-Aided Routing (LAR) or self-managed devices will just set
# the country by nearby APs and for some reason a stock configuration by a
# local ISP in my neighbourhood is incorrectly advertising DE rathar than FI
# so Lumina gets it wrong. Luckily FI and DE share regulation judging by
# https://archive.softwareheritage.org/swh:1:cnt:3f74194de9b0bdcf6052b505067363f17427c28f;origin=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git;visit=swh:1:snp:1b8d84b34965cbea94ad57200121527c5ad51616;anchor=swh:1:rev:fe05cc94e070c71486047002fc2edf68f5f2a07a;path=/db.txt
# To check/refresh regdomain, `iw wlan0 scan | egrep -e "SSID:|Country:"`
Country=FI
2023-01-06 13:50:14 +01:00
# legacy compatibility, at least on Lumina?
use_default_interface=true
# build-in network configuration including DHCP client
2023-01-06 13:50:14 +01:00
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
# Randomize only 3 last octets of MAC. Reveals the manufacturer, but doesn't
# set locally administered bit. However the range is 00:00:01 to 00:00:FE
# (254 possible addresses!)
#AddressRandomizationRange=nic
[Network]
2023-01-06 13:50:14 +01:00
EnableIPv6=true
# resolvconf/systemd/none. I prefer configuring resolv.conf/unbound by
# myself.
NameResolvingService=none