fix firewall issues with oracle

This commit is contained in:
Noah Masur
2022-10-03 12:19:29 +00:00
parent a0089e28ae
commit 31f3cfe77c
5 changed files with 4 additions and 13 deletions

View File

@ -25,6 +25,9 @@ in {
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedUDPPorts = [ 443 ];
};
}

View File

@ -37,8 +37,6 @@ in {
}];
}];
networking.firewall.interfaces.calibre = { allowedTCPPorts = [ 80 443 ]; };
# Create directory and set permissions
system.activationScripts.calibreLibrary.text = ''
if [ ! -d "${libraryPath}" ]; then

View File

@ -1,9 +0,0 @@
{ pkgs, ... }: {
# Needs to be run at boot for Oracle firewall
systemd.services.openIpTables = {
script = "${pkgs.iptables}/bin/iptables -I INPUT -j ACCEPT";
wantedBy = [ "multi-user.target" ];
};
}