Updated firewall settings
This commit is contained in:
parent
b6c40babfb
commit
4c7b90f0f1
|
@ -5,34 +5,39 @@
|
||||||
description = "Linode servers";
|
description = "Linode servers";
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults =
|
||||||
imports =
|
{ config, pkgs, lib, ... }:
|
||||||
[
|
|
||||||
../Hardware/linode_vm.nix
|
{
|
||||||
../Deployments/host_common.nix
|
imports =
|
||||||
|
[
|
||||||
|
../Hardware/linode_vm.nix
|
||||||
|
../Deployments/host_common.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Ensure the right package architecture is used
|
||||||
|
nixpkgs.localSystem = {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
config = "x86_64-unknown-linux-gnu";
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Tools that Linode support like to have install if you need them.
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
inetutils
|
||||||
|
mtr
|
||||||
|
sysstat
|
||||||
];
|
];
|
||||||
|
|
||||||
# Ensure the right package architecture is used
|
# Configure firewall defaults:
|
||||||
nixpkgs.localSystem = {
|
networking = {
|
||||||
system = "x86_64-linux";
|
usePredictableInterfaceNames = false; # As per Linode's networking guidlines
|
||||||
config = "x86_64-unknown-linux-gnu";
|
domain = "mcwhirter.io";
|
||||||
allowUnfree = true;
|
firewall = {
|
||||||
};
|
enable = true;
|
||||||
|
allowedTCPPorts = [ ];
|
||||||
# Tools that Linode support like to have install if you need them.
|
trustedInterfaces = [ "lo" ];
|
||||||
environment.systemPackages = with pkgs; [
|
};
|
||||||
inetutils
|
|
||||||
mtr
|
|
||||||
sysstat
|
|
||||||
];
|
|
||||||
|
|
||||||
# Configure firewall defaults:
|
|
||||||
networking = {
|
|
||||||
usePredictableInterfaces = false; # As per Linode's networking guidlines
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 22 ];
|
|
||||||
trustedInterfaces = [ "lo" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue