⚡️ route all traffic through wireguard
This commit is contained in:
parent
102d5058b5
commit
e3d3d9faa8
|
@ -16,11 +16,11 @@
|
||||||
networking.wg-quick.interfaces = {
|
networking.wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
privateKeyFile = "/root/wireguard-keys/private";
|
privateKeyFile = "/root/wireguard-keys/private";
|
||||||
address = [ "10.0.0.3/32" ];
|
address = [ "10.0.0.3/24" ];
|
||||||
dns = [ "10.0.0.1" ];
|
dns = [ "10.0.0.1" ];
|
||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws=";
|
publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws=";
|
||||||
allowedIPs = [ "10.0.0.1/24" ];
|
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
||||||
endpoint = "fainsin.bzh:5553";
|
endpoint = "fainsin.bzh:5553";
|
||||||
persistentKeepalive = 30;
|
persistentKeepalive = 30;
|
||||||
}];
|
}];
|
||||||
|
@ -89,6 +89,8 @@
|
||||||
|
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
|
|
||||||
|
# programs.regreet = { enable = true; };
|
||||||
|
|
||||||
# internationalisation
|
# internationalisation
|
||||||
time.timeZone = "Europe/Paris";
|
time.timeZone = "Europe/Paris";
|
||||||
i18n.defaultLocale = "en_DK.UTF-8";
|
i18n.defaultLocale = "en_DK.UTF-8";
|
||||||
|
|
Loading…
Reference in a new issue