Updated firewall settings
This commit is contained in:
parent
b6c40babfb
commit
4c7b90f0f1
|
@ -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, ... }:
|
||||||
|
|
Loading…
Reference in a new issue