Testing IP whitelist
This commit is contained in:
parent
df915bf261
commit
c21a76cca5
2 changed files with 19 additions and 20 deletions
nixos/hosts
|
@ -1,9 +1,4 @@
|
|||
{ inputs, lib, modulesPath, hostname, ... }:
|
||||
let
|
||||
# ipOffice = "";
|
||||
ipIfargle = "97.71.91.121";
|
||||
ipSysctl = "172.185.76.221";
|
||||
in {
|
||||
{ inputs, lib, modulesPath, hostname, ... }: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
inputs.ip-whitelist.nixosModules.default
|
||||
|
@ -14,18 +9,6 @@ in {
|
|||
./wireguard.nix
|
||||
];
|
||||
|
||||
# SSH Whitelist for certain IP's
|
||||
networking.firewall.ipBasedAllowedTCPPorts = [
|
||||
{
|
||||
port = 22;
|
||||
ips = [
|
||||
# ipOffice
|
||||
ipIfargle
|
||||
ipSysctl
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ hostname, lib, modulesPath, ... }: {
|
||||
{ hostname, lib, modulesPath, ... }: let
|
||||
# ipOffice = "";
|
||||
ipIfargle = "97.71.91.121";
|
||||
ipSysctl = "172.185.76.221";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
(import ../../common/containers/derp.nix { domainName = "milan.sysctl.io"; })
|
||||
|
@ -6,7 +10,19 @@
|
|||
../../common/services/podman.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
||||
# SSH Whitelist for certain IP's
|
||||
networking.firewall.ipBasedAllowedTCPPorts = [
|
||||
{
|
||||
port = 22;
|
||||
ips = [
|
||||
# ipOffice
|
||||
ipIfargle
|
||||
ipSysctl
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
|
Loading…
Add table
Reference in a new issue