ma 1 shoney: enable tinc_graphs for siem tinc
This commit is contained in:
parent
db15ab89e7
commit
b3fe2098a7
|
@ -1,5 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
tinc-siem-ip = "10.8.10.1";
|
||||||
|
|
||||||
ip = "64.137.234.215";
|
ip = "64.137.234.215";
|
||||||
alt-ip = "64.137.234.210";
|
alt-ip = "64.137.234.210";
|
||||||
extra-ip = "64.137.234.114"; #currently unused
|
extra-ip = "64.137.234.114"; #currently unused
|
||||||
|
@ -7,32 +9,46 @@ let
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
|
../2configs/save-diskspace.nix
|
||||||
../2configs/hw/CAC.nix
|
../2configs/hw/CAC.nix
|
||||||
../2configs/fs/CAC-CentOS-7-64bit.nix
|
../2configs/fs/CAC-CentOS-7-64bit.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
services.tinc.networks.siem.name = "sjump";
|
|
||||||
|
|
||||||
# minimal resources
|
services.tinc.networks.siem.name = "sjump";
|
||||||
services.nixosManual.enable = false;
|
|
||||||
programs.man.enable = false;
|
|
||||||
nix.gc.automatic = true;
|
|
||||||
nix.gc.dates = "03:10";
|
|
||||||
|
|
||||||
krebs = {
|
krebs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
retiolum.enable = true;
|
retiolum.enable = true;
|
||||||
build.host = config.krebs.hosts.shoney;
|
build.host = config.krebs.hosts.shoney;
|
||||||
|
nginx.enable = true;
|
||||||
|
tinc_graphs = {
|
||||||
|
enable = true;
|
||||||
|
network = "siem";
|
||||||
|
hostsPath = "/etc/tinc/siem/hosts";
|
||||||
|
nginx = {
|
||||||
|
enable = true;
|
||||||
|
# TODO: remove hard-coded hostname
|
||||||
|
complete = {
|
||||||
|
listen = [ "${tinc-siem-ip}:80" ];
|
||||||
|
server-names = [ "graphs.siem" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
networking.interfaces.enp2s1.ip4 = [
|
networking = {
|
||||||
{ address = ip; prefixLength = 24; }
|
interfaces.enp2s1.ip4 = [
|
||||||
{ address = alt-ip; prefixLength = 24; }
|
{ address = ip; prefixLength = 24; }
|
||||||
];
|
{ address = alt-ip; prefixLength = 24; }
|
||||||
|
];
|
||||||
|
|
||||||
networking.defaultGateway = gw;
|
defaultGateway = gw;
|
||||||
networking.nameservers = [ "8.8.8.8" ];
|
nameservers = [ "8.8.8.8" ];
|
||||||
networking.firewall.allowedUDPPorts = [ 655 1655 ];
|
firewall = {
|
||||||
networking.firewall.allowedTCPPorts = [ 655 1655 ];
|
trustedInterfaces = [ "tinc.siem" ];
|
||||||
|
allowedUDPPorts = [ 655 1655 ];
|
||||||
|
allowedTCPPorts = [ 655 1655 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue