Small wireguard changes

This commit is contained in:
Jimbo 2024-10-20 15:39:00 -04:00
parent 986ff8c3d1
commit c188a30dc2
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,9 @@
{ config, ... }: { config, ... }:
{ {
networking.firewall = {
allowedUDPPorts = [ 51820 ];
};
networking.wireguard.interfaces = { networking.wireguard.interfaces = {
"${config.ips.wgInt}" = { "${config.ips.wgInt}" = {
# Define IP of client in per device config # Define IP of client in per device config

View file

@ -21,10 +21,6 @@
publicKey = config.secrets.wgPixel9Pub; publicKey = config.secrets.wgPixel9Pub;
allowedIPs = [ "${config.ips.wgSpan}.2/32" ]; allowedIPs = [ "${config.ips.wgSpan}.2/32" ];
} }
{ # Oracle VM
publicKey = config.secrets.wgOraclePub;
allowedIPs = [ "${config.ips.wgSpan}.3/32" ];
}
{ # General Nix { # General Nix
publicKey = config.secrets.wgClientPub; publicKey = config.secrets.wgClientPub;
allowedIPs = [ "${config.ips.wgSpan}.16/28" ]; allowedIPs = [ "${config.ips.wgSpan}.16/28" ];