Add independent one-second host WAN telemetry MIT source; preserve existing platform/history

This commit is contained in:
2026-11-06 13:09:12 +00:00
parent 7f7d4f6d35
commit 23a87387b8
21 changed files with 2064 additions and 0 deletions
@@ -0,0 +1,38 @@
[Unit]
Description=TopLC VPN physical WAN one-second traffic sampler
Documentation=file:/opt/toplc-vpn-host-traffic/README.md
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/toplc-vpn-host-traffic
ExecStart=/usr/bin/python3 -B /opt/toplc-vpn-host-traffic/host_traffic_sampler.py --node-env /opt/toplc-vpn-node/node.env
Restart=on-failure
RestartSec=10
TimeoutStopSec=12
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
CapabilityBoundingSet=
AmbientCapabilities=
SystemCallArchitectures=native
UMask=0077
MemoryMax=64M
TasksMax=8
CPUQuota=10%
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target