mirror of
https://github.com/blahai/nyx.git
synced 2025-06-08 23:33:03 -04:00
Networking: add ssh and more firewall rules
This commit is contained in:
parent
6fc5cef4cb
commit
2a57b163e6
3 changed files with 25 additions and 3 deletions
|
@ -1,5 +1,30 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
imports = [
|
||||
./fail2ban.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
package = pkgs.iptables;
|
||||
|
||||
allowedTCPPorts = [
|
||||
443
|
||||
80
|
||||
];
|
||||
allowedUDPPorts = [];
|
||||
|
||||
# make a much smaller and easier to read log
|
||||
logReversePathDrops = true;
|
||||
logRefusedConnections = false;
|
||||
|
||||
checkReversePath = mkForce false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue