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