feat: add infrastructure automation and diagnostic scripts for Zabbix, Nginx, and Authentik

This commit is contained in:
2026-11-12 20:18:37 -05:00
parent 68c108cfe8
commit 336b7759d0
25 changed files with 472 additions and 41 deletions

20
scripts/check_nat.py Normal file
View File

@@ -0,0 +1,20 @@
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('140.44.4.71', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
def run(cmd):
print(f">>> {cmd}")
_, o, e = ssh.exec_command(cmd)
print(o.read().decode().strip())
err = e.read().decode().strip()
if err:
print("[stderr]", err)
run("iptables -t nat -L PREROUTING -n -v")
run("iptables -t nat -L POSTROUTING -n -v")
run("sysctl net.ipv4.ip_forward")
ssh.close()