summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2020-12-04 01:32:07 -0700
committerKenny Ballou <kballou@devnulllabs.io>2020-12-04 01:32:07 -0700
commitae9194440b3af0bc5ee8a67d0aa4d132c2bed1e7 (patch)
tree811ef1c3386abe2c894c4ec520620b82828ccc9c
parente23c4fc51cded5896c711acf47611456b7891e17 (diff)
downloadcfg.nix-ae9194440b3af0bc5ee8a67d0aa4d132c2bed1e7.tar.gz
cfg.nix-ae9194440b3af0bc5ee8a67d0aa4d132c2bed1e7.tar.xz
retire orobas
orobas is no longer with us, it has been sent to /dev/null for recycling. Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
-rw-r--r--orobas/configuration.nix65
-rw-r--r--orobas/nftables-rules.nft86
-rw-r--r--orobas/overrides/dnsmasq.nix7
-rw-r--r--orobas/packages.nix7
4 files changed, 0 insertions, 165 deletions
diff --git a/orobas/configuration.nix b/orobas/configuration.nix
deleted file mode 100644
index 54ba70b..0000000
--- a/orobas/configuration.nix
+++ /dev/null
@@ -1,65 +0,0 @@
-# Edit this configuration file to define what should be installed on
-# your system. Help is available in the configuration.nix(5) man page
-# and in the NixOS manual (accessible by running ‘nixos-help’).
-
-{ config, pkgs, ... }:
-
-{
- imports =
- [ ../hardware-configuration.nix
- ../secrets.nix
- ../overlays.nix
- ../services/clamav.nix
- ../services/firewall.nix
- ../services/dbus.nix
- ../services/docker.nix
- ../services/dnsmasq.nix
- ../services/sound.nix
- ../services/x11.nix
- ../services/x11-intel.nix
- ../services/x11-laptop.nix
- ../services/gnome.nix
- ../services/haveged.nix
- ../services/printing.nix
- ../system/bluetooth.nix
- ../system/ca.nix
- ../system/documentation.nix
- ../system/fonts.nix
- ../system/console.nix
- ../system/i18n.nix
- ../system/networking.nix
- ../system/packages.nix
- ../system/timezone.nix
- ../system/users.nix
- ../system/wireshark.nix
- ../system/yubikey-gpg.nix
- ../programs/mtr.nix
- ../system/nix.nix
- ./packages.nix
- ./overrides/dnsmasq.nix
- ];
-
- # Use the systemd-boot EFI boot loader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
-
- boot.initrd.luks.devices = {
- luks-9185ee93-a666-485c-a8c1-f96001a44ff9 = {
- device = "/dev/disk/by-uuid/9185ee93-a666-485c-a8c1-f96001a44ff9";
- };
- };
- boot.blacklistedKernelModules = [
- "ip_tables"
- ];
-
- boot.kernelPackages = pkgs.linuxPackages_latest;
-
- networking.hostName = "orobas"; # Define your hostname.
-
- # This value determines the NixOS release with which your system is to be
- # compatible, in order to avoid breaking some software such as database
- # servers. You should change this only after NixOS release notes say you
- # should.
- system.stateVersion = "19.03"; # Did you read the comment?
-
-}
diff --git a/orobas/nftables-rules.nft b/orobas/nftables-rules.nft
deleted file mode 100644
index 0057836..0000000
--- a/orobas/nftables-rules.nft
+++ /dev/null
@@ -1,86 +0,0 @@
-table inet filter {
- chain input {
- type filter hook input priority 0; policy drop;
- ct state invalid counter drop comment "drop invalid packets"
- ct state established,related counter accept comment "accept related connections"
- iif lo counter accept
- iif != lo ip daddr 127.0.0.1/8 counter drop
- iif != lo ip6 daddr ::1/128 counter drop
- ip protocol icmp counter accept
- ip6 nexthdr ipv6-icmp counter accept
- udp dport domain ip saddr 172.16.0.0/12 counter accept
- tcp dport 3000 ip saddr 127.0.0.1/8 counter accept
- tcp dport 8000 ip saddr 127.0.0.1/8 counter accept
- tcp dport http-alt ip saddr { 127.0.0.1/8, 10.100.0.0/8 } counter accept
- counter
- }
-
- chain forward {
- type filter hook forward priority 0; policy drop;
- ct state established,related counter accept
- ip saddr 172.16.0.0/12 ip daddr 0.0.0.0/8 counter accept
- ip saddr 172.16.0.0/12 ip daddr 172.16.0.0/12 counter accept
- iifname docker0 oifname != docker0 counter accept
- counter
- }
-
- chain output {
- type filter hook output priority 0; policy drop;
- ct state established,related counter accept
- icmp type echo-request counter accept
- icmp type echo-reply counter accept
- udp dport domain counter accept
- tcp dport http counter accept
- tcp dport https counter accept
- tcp dport ssh counter accept
- tcp dport bootps counter accept
- udp dport bootps counter accept
- tcp dport ntp counter accept
- udp dport ntp counter accept
- tcp dport nntps counter accept
- udp dport nntps counter accept
- tcp dport submission counter accept
- tcp dport imaps counter accept
- tcp dport 2222 counter accept
- tcp dport hkp counter accept
- udp dport hkp counter accept
- tcp dport 9100 counter accept
- tcp dport git counter accept
- udp dport git counter accept
- tcp dport rsync counter accept
- udp dport rsync counter accept
- tcp dport 8000 counter accept
- tcp dport http-alt counter accept
- udp dport openvpn counter accept
- tcp dport postgresql ip daddr { 127.0.0.1/8, 10.0.0.0/8 } counter accept
- tcp dport 5001 counter accept comment "3CX"
- ip daddr 127.0.0.0/8 counter accept
- counter
- }
-}
-
-table ip nat {
- chain prerouting {
- type nat hook prerouting priority 0;
- counter
- }
- chain postrouting {
- type nat hook postrouting priority 100;
- ip saddr 172.16.0.0/12 oifname ens8u2u1 counter masquerade
- ip saddr 172.16.0.0/12 oifname wlp2s0 counter masquerade
- counter
- }
-}
-
-table ip6 nat {
- chain prerouting {
- type nat hook prerouting priority 0;
- counter
- }
- chain postrouting {
- type nat hook postrouting priority 100;
- ip6 saddr fcdd::/48 oifname ens8u2u1 counter masquerade
- ip6 saddr fcdd::/48 oifname wlp2s0 counter masquerade
- counter
- }
-}
diff --git a/orobas/overrides/dnsmasq.nix b/orobas/overrides/dnsmasq.nix
deleted file mode 100644
index b496d10..0000000
--- a/orobas/overrides/dnsmasq.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-with builtins;
-{ config, ...}:
-{
- services.dnsmasq = {
- servers = ["10.100.1.1"];
- };
-}
diff --git a/orobas/packages.nix b/orobas/packages.nix
deleted file mode 100644
index d087503..0000000
--- a/orobas/packages.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{ config, pkgs, ... }:
-{
- # orobas packages
- environment.systemPackages = with pkgs; [
- gnome-applications
- ];
-}