new wireguard
This commit is contained in:
parent
6344364fa1
commit
d765f30354
|
@ -35,13 +35,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 51821 ];
|
networking.firewall.allowedUDPPorts = [ 51821 51820 ];
|
||||||
networking.wireguard = {
|
networking.wireguard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces.wg0 = {
|
interfaces.wg0 = {
|
||||||
ips = [ "192.168.69.254/32" ];
|
ips = [ "192.168.69.254/32" ];
|
||||||
listenPort = 51821;
|
listenPort = 51821;
|
||||||
privateKeyFile = "/home/xenia/wireguard-keys/private";
|
privateKeyFile = "/home/xenia/wireguard-keys/eta.private";
|
||||||
peers = [ {
|
peers = [ {
|
||||||
publicKey = "XfHU29ij76y4TB8P/QJyn1JnTl9tvxO77IGVmM6p+ic=";
|
publicKey = "XfHU29ij76y4TB8P/QJyn1JnTl9tvxO77IGVmM6p+ic=";
|
||||||
allowedIPs = [ "10.30.0.0/16" "10.250.0.0/16" "10.254.0.0/16" "192.168.30.0/24" "192.168.40.0/24" "192.168.50.0/24" "192.168.51.0/24" "192.168.250.0/24" ];
|
allowedIPs = [ "10.30.0.0/16" "10.250.0.0/16" "10.254.0.0/16" "192.168.30.0/24" "192.168.40.0/24" "192.168.50.0/24" "192.168.51.0/24" "192.168.250.0/24" ];
|
||||||
|
@ -49,7 +49,19 @@
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
} ];
|
} ];
|
||||||
};
|
};
|
||||||
|
interfaces.wg-bnuy = {
|
||||||
|
ips = [ "10.100.1.1/16" ];
|
||||||
|
listenPort = 51820;
|
||||||
|
privateKeyFile = "/home/xenia/wireguard-keys/local-network.private";
|
||||||
|
peers = [ {
|
||||||
|
publicKey = "Qa3saFnPTlGbxLnoyhsczczBMUGA8F/tlGsH8wnMTWY="; # https://github.com/xeniagda/cluster-config/tree/main/keys/catboy-cafe.public
|
||||||
|
allowedIPs = [ "10.100.0.0/16" ];
|
||||||
|
endpoint = "95.80.26.48:51820";
|
||||||
|
persistentKeepalive = 25;
|
||||||
|
} ];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
services.pipewire.wireplumber.extraConfig."10-bluez" = {
|
services.pipewire.wireplumber.extraConfig."10-bluez" = {
|
||||||
"monitor.bluez.properties" = {
|
"monitor.bluez.properties" = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user