Updated firewall settings

This commit is contained in:
Serĉanto de Scio 2019-07-03 22:59:30 +10:00
parent b6c40babfb
commit 4c7b90f0f1
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -5,7 +5,10 @@
description = "Linode servers"; description = "Linode servers";
}; };
defaults = { defaults =
{ config, pkgs, lib, ... }:
{
imports = imports =
[ [
../Hardware/linode_vm.nix ../Hardware/linode_vm.nix
@ -28,13 +31,15 @@
# Configure firewall defaults: # Configure firewall defaults:
networking = { networking = {
usePredictableInterfaces = false; # As per Linode's networking guidlines usePredictableInterfaceNames = false; # As per Linode's networking guidlines
domain = "mcwhirter.io";
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [ 22 ]; allowedTCPPorts = [ ];
trustedInterfaces = [ "lo" ]; trustedInterfaces = [ "lo" ];
}; };
}; };
};
cuallaidh = cuallaidh =
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }: