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