add iptables settings for oracle reboot

This commit is contained in:
Noah Masur 2022-10-02 15:09:54 +00:00
parent 19de583433
commit 90bc2ecd49
2 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,7 @@ nixpkgs.lib.nixosSystem {
../common.nix
../../modules/nixos
../../modules/hardware/server.nix
../../modules/services/oracle.nix
../../modules/services/sshd.nix
../../modules/services/calibre.nix
];

View File

@ -0,0 +1,9 @@
{ 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" ];
};
}