mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
fix firewall issues with oracle
This commit is contained in:
parent
a0089e28ae
commit
31f3cfe77c
@ -1,4 +1,4 @@
|
||||
{ globals, pkgs, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
|
||||
type = "app";
|
||||
|
||||
|
@ -27,7 +27,6 @@ nixpkgs.lib.nixosSystem {
|
||||
../common.nix
|
||||
../../modules/nixos
|
||||
../../modules/hardware/server.nix
|
||||
../../modules/services/oracle.nix
|
||||
../../modules/services/sshd.nix
|
||||
../../modules/services/calibre.nix
|
||||
../../modules/services/jellyfin.nix
|
||||
|
@ -25,6 +25,9 @@ in {
|
||||
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.firewall.allowedUDPPorts = [ 443 ];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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" ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user