setup open firewall ports
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
open_firewall_ports = [
|
||||
80 # http
|
||||
443 # https
|
||||
25152 # ssh
|
||||
49494 # gerbera
|
||||
];
|
||||
open_firewall_port_ranges = [
|
||||
{ from = 1714; to = 1764; } # kdeconnect
|
||||
];
|
||||
VERSION = "23.05";
|
||||
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
unstable_tarball = builtins.fetchTarball
|
||||
@@ -694,8 +703,10 @@ systemd.user.services = {
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 25152 80 443 ];
|
||||
networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
|
||||
networking.firewall.allowedTCPPorts = open_firewall_ports;
|
||||
networking.firewall.allowedUDPPorts = open_firewall_ports;
|
||||
networking.firewall.allowedTCPPortRanges = open_firewall_port_ranges;
|
||||
networking.firewall.allowedUDPPortRanges = open_firewall_port_ranges;
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
system = {
|
||||
|
||||
Reference in New Issue
Block a user