Last active
October 29, 2018 10:01
-
-
Save alyssais/57b7cf8a6850ce313f4f7176c9042810 to your computer and use it in GitHub Desktop.
Featuring DNS over HTTPS and plausible MAC randomisation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
networking.networkmanager.enable = true; | |
networking.networkmanager.ethernet.macAddress = "random"; | |
networking.networkmanager.wifi.macAddress = "random"; | |
networking.networkmanager.extraConfig = '' | |
[connection-extra] | |
ethernet.generate-mac-address-mask=FE:FF:FF:00:00:00 | |
wifi.generate-mac-address-mask=FE:FF:FF:00:00:00 | |
''; | |
networking.nameservers = [ "::1" ]; | |
networking.networkmanager.dispatcherScripts = [ | |
{ source = pkgs.writeText "doh-stub" '' | |
if [ "$2" = up ] | |
then systemctl start doh-stub.service | |
fi | |
''; | |
type = "basic"; | |
} | |
]; | |
systemd.services.doh-stub = { | |
script = '' | |
exec ${pkgs.doh-proxy}/bin/doh-stub \ | |
--level INFO \ | |
--domain qyliss.net \ | |
--remote-address 85.119.82.108 | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment