Wpa supplicant: Difference between revisions
imported>Vater mNo edit summary |
imported>Rasmus-kirk Added info on how to change mac address using macchanger |
||
| Line 43: | Line 43: | ||
journalctl -u wpa_supplicant -f | journalctl -u wpa_supplicant -f | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Mac spoofing == | |||
Since there is no option to randomize your mac address for wpa supplicant, you can instead create your own service using GNU's macchanger: | |||
<syntaxHighlight lang=nix> | |||
systemd.services.macchanger = { | |||
enable = true; | |||
description = "macchanger on %I"; | |||
wants = [ "network-pre.target" ]; | |||
before = [ "network-pre.target" ]; | |||
bindsTo = [ "sys-subsystem-net-devices-%i.device" ]; | |||
after = [ "sys-subsystem-net-devices-%i.device" ]; | |||
wantedBy = [ "multi-user.target" ]; | |||
serviceConfig = { | |||
Type = "oneshot"; | |||
ExecStart = "${pkgs.macchanger}/bin/macchanger -r %I"; | |||
}; | |||
}; | |||
</syntaxHighlight> | |||
This obviously requires you to have the <code>macchanger</code> package installed. | |||
== External links == | == External links == | ||
[https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' (with configuration)] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]]) | [https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' (with configuration)] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]]) | ||