Update hosts/server/configuration.nix
This commit is contained in:
@@ -84,19 +84,19 @@ services.nfs.server = {
|
|||||||
# };
|
# };
|
||||||
#};
|
#};
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
# networking.wireguard.enable = true;
|
||||||
networking.wireguard.interfaces.wg0 = {
|
# networking.wireguard.interfaces.wg0 = {
|
||||||
ips = [ "10.100.0.254/24" ];
|
# ips = [ "10.100.0.254/24" ];
|
||||||
listenPort = 51820;
|
# listenPort = 51820;
|
||||||
privateKeyFile = "/etc/wireguard/server.key";
|
# privateKeyFile = "/etc/wireguard/server.key";
|
||||||
|
|
||||||
peers = [
|
# peers = [
|
||||||
{
|
# {
|
||||||
publicKey = "cA30PTE/2gMbIhtAXaRPJkQeDc7/UWoA6eK3K+Xpsww=";
|
# publicKey = "cA30PTE/2gMbIhtAXaRPJkQeDc7/UWoA6eK3K+Xpsww=";
|
||||||
allowedIPs = [ "10.100.0.2/32" ];
|
# allowedIPs = [ "10.100.0.2/32" ];
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Allow WireGuard UDP port in firewall
|
# Allow WireGuard UDP port in firewall
|
||||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||||
|
|||||||
Reference in New Issue
Block a user