diff --git a/machines/oracle/configuration.nix b/machines/oracle/configuration.nix index bd029fe..7258b2d 100644 --- a/machines/oracle/configuration.nix +++ b/machines/oracle/configuration.nix @@ -8,7 +8,10 @@ networking.hostName = "oracle"; networking.domain = "subnet08161027.vcn08161027.oraclevcn.com"; - networking.firewall.enable = true; + networking.firewall = { + enable = true; + allowedUDPPorts = [ 51820 ]; + }; services.openssh.enable = true; services.openssh.settings = { @@ -18,7 +21,7 @@ environment.systemPackages = with pkgs; [ wireguard-tools ]; # Wireguard tunnel - age.secrets.wireguardOracle.file = "../../secrets/wireguard-oracle.age"; + age.secrets.wireguardOracle.file = ../../secrets/wireguard-oracle.age; networking.wg-quick.interfaces = { wg0 = { address = [ "10.0.10.1/24" ]; @@ -28,8 +31,8 @@ peers = [ { publicKey = "iKJO9Q8LsdCdApapTX9CJmrtAKn1TYhg4YUiBUBPzmo="; - allowedIPs = "10.0.10.2/32"; - }; + allowedIPs = ["10.0.10.2/32"]; + } ]; }; };