listen on common DB ports

This commit is contained in:
nora 2024-08-10 14:31:41 +02:00
parent 7a0503a91c
commit f06354212d

View file

@ -44,12 +44,12 @@
ExecStart = "${lib.getExe (pretense {inherit pkgs;})}"; ExecStart = "${lib.getExe (pretense {inherit pkgs;})}";
AmbientCapabilities = "CAP_NET_BIND_SERVICE"; AmbientCapabilities = "CAP_NET_BIND_SERVICE";
Environment = [ Environment = [
"PRETENSE_PORTS=23" "PRETENSE_PORTS=23,3306,5432,1521" # telnet,mysql,postgres,oracle
"PRETENSE_METRICS_PORT=9150" "PRETENSE_METRICS_PORT=9150"
]; ];
}; };
}; };
networking.firewall.allowedTCPPorts = [ 23 ]; networking.firewall.allowedTCPPorts = [ 2 3306 5432 1521 ];
# monitoring # monitoring