feat(yate): add snmp monitoring
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
enable = true;
|
||||
ruleset = let
|
||||
tcpPorts = lib.concatStringsSep ", " (map toString config.networking.firewall.allowedTCPPorts);
|
||||
udpPorts = lib.concatStringsSep ", " (map toString config.networking.firewall.allowedUDPPorts);
|
||||
in ''
|
||||
table inet filter {
|
||||
chain input {
|
||||
@@ -112,6 +113,7 @@
|
||||
|
||||
tcp dport 22 accept
|
||||
tcp dport { ${tcpPorts} } accept
|
||||
udp dport { ${udpPorts} } accept
|
||||
|
||||
iif {vlan132, vlan133} accept
|
||||
|
||||
|
@@ -70,8 +70,14 @@
|
||||
# default = "yes";
|
||||
#};
|
||||
};
|
||||
ysnmpagent = {
|
||||
general.port = 161;
|
||||
snmp_v2.ro_community = "yate";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 161 ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(writers.makePythonWriter python39 python39.pkgs "/bin/dect_claim" { libraries = [ python39.pkgs.python-yate ]; } (builtins.readFile ./dect_claim.py))
|
||||
(runCommand "yintro.slin" {} ''
|
||||
|
Reference in New Issue
Block a user