Skip to content

Commit

Permalink
chore(firewall): update
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Oct 23, 2023
1 parent b5e388b commit e9cac04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/common/core/system/os/network/firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
config,
...
}: let
inherit (lib) mkDefault mkForce;
inherit (lib) mkDefault mkForce mkIf;
inherit (config.modules) device;
in {
environment.etc."fail2ban/filter.d/vaultwarden.conf" = {
enable = config.services.vaultwarden.enable;
inherit (config.services.vaultwarden) enable;
text = ''
[INCLUDES]
before = common.conf
Expand All @@ -19,7 +19,7 @@ in {
};

environment.etc."fail2ban/filter.d/vaultwarden-admin.conf" = {
enable = config.services.vaultwarden.enable;
inherit (config.services.vaultwarden) enable;
text = ''
[INCLUDES]
before = common.conf
Expand Down Expand Up @@ -93,13 +93,13 @@ in {
8080
];
allowedUDPPorts = [];
allowedTCPPortRanges = [
allowedTCPPortRanges = mkIf (device.type != "server") [
{
from = 1714;
to = 1764;
} #KDEconnect
];
allowedUDPPortRanges = [
allowedUDPPortRanges = mkIf (device.type != "server") [
{
from = 1714;
to = 1764;
Expand Down

0 comments on commit e9cac04

Please sign in to comment.