44 lines
522 B
Nix
44 lines
522 B
Nix
{ pkgs, config, ... }: {
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
22 #ssh
|
|
|
|
# pihole
|
|
53
|
|
1444
|
|
|
|
# prometheus
|
|
9090
|
|
8080
|
|
|
|
config.services.i2pd.port
|
|
|
|
8422 # csengoclient
|
|
5333 # csengoserver
|
|
5432
|
|
|
|
];
|
|
allowedUDPPorts = [
|
|
22 # ssh
|
|
|
|
# pihole
|
|
53
|
|
1444
|
|
|
|
# prometheus
|
|
9090
|
|
8080
|
|
|
|
8422 # csengoclient
|
|
5333 # csengoserver
|
|
5432
|
|
|
|
config.services.i2pd.port
|
|
];
|
|
};
|
|
|
|
}
|
|
|