From 90bc2ecd49f0e3f7a77aaf9a46b9aac108a4488b Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 2 Oct 2022 15:09:54 +0000 Subject: [PATCH] add iptables settings for oracle reboot --- hosts/oracle/default.nix | 1 + modules/services/oracle.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 modules/services/oracle.nix diff --git a/hosts/oracle/default.nix b/hosts/oracle/default.nix index b267dc2..e8dd31f 100644 --- a/hosts/oracle/default.nix +++ b/hosts/oracle/default.nix @@ -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 ]; diff --git a/modules/services/oracle.nix b/modules/services/oracle.nix new file mode 100644 index 0000000..99cee98 --- /dev/null +++ b/modules/services/oracle.nix @@ -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" ]; + }; + +}