ma 1 dartH: fix nat from tinc
This commit is contained in:
parent
204c89131c
commit
c9a8bdf50f
@ -17,19 +17,37 @@ in {
|
|||||||
../2configs/exim-retiolum.nix
|
../2configs/exim-retiolum.nix
|
||||||
../2configs/virtualization.nix
|
../2configs/virtualization.nix
|
||||||
];
|
];
|
||||||
|
services.tinc.networks.siem = {
|
||||||
networking.firewall.allowedUDPPorts = [ 80 655 67 ];
|
name = "sdarth";
|
||||||
networking.firewall.allowedTCPPorts = [ 80 655 ];
|
extraConfig = "ConnectTo = sjump";
|
||||||
networking.firewall.checkReversePath = false;
|
};
|
||||||
#networking.firewall.enable = false;
|
#networking.firewall.enable = false;
|
||||||
# virtualisation.nova.enableSingleNode = true;
|
|
||||||
krebs.retiolum.enable = true;
|
krebs.retiolum.enable = true;
|
||||||
|
|
||||||
boot.kernelModules = [ "coretemp" "f71882fg" ];
|
boot.kernelModules = [ "coretemp" "f71882fg" ];
|
||||||
|
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
networking.wireless.enable = true;
|
networking = {
|
||||||
|
wireless.enable = true;
|
||||||
|
firewall = {
|
||||||
|
allowPing = true;
|
||||||
|
logRefusedConnections = false;
|
||||||
|
allowedUDPPorts = [ 80 655 67 ];
|
||||||
|
allowedTCPPorts = [ 80 655 ];
|
||||||
|
};
|
||||||
|
nat = {
|
||||||
|
enable = true;
|
||||||
|
internalIPs = [ "10.8.10.0/24" ];
|
||||||
|
#internalInterfaces = [ "tinc.siem" ];
|
||||||
|
externalIP = "10.8.8.2";
|
||||||
|
externalInterface = "virbr3";
|
||||||
|
};
|
||||||
|
interfaces.virbr3.ip4 = [{
|
||||||
|
address = "10.8.8.2";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
# TODO smartd omo darth gum all-in-one
|
# TODO smartd omo darth gum all-in-one
|
||||||
services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
|
services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
|
||||||
|
Loading…
Reference in New Issue
Block a user