fix(oracle): correct syntax and open firewall

This commit is contained in:
Michael Thomas 2024-04-16 13:33:45 +00:00
parent 0691019f49
commit 0ed08e8f0c

View File

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