You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
security: restrict localhost firewall β allowlist specific ports only
Previously the firewall allowed ALL localhost traffic (-o lo ACCEPT),
meaning hornet_agent could reach every local service: Steam, CUPS,
Tailscale admin UI, and unknown HTTP servers.
Now localhost is restricted to:
- 7890 (Slack bridge)
- 11434 (Ollama)
- 53 (DNS)
Everything else on localhost is blocked and logged.
Security audit now checks for blanket localhost access.
# Allow localhost (bridge API, postgres, ollama, pi sockets)
40
-
iptables -A "$CHAIN" -o lo -j ACCEPT
44
+
# ββ Localhost: allow only specific services ββββββββββββββββββββββββββββββββββ
45
+
46
+
# Allow Slack bridge (outbound API)
47
+
iptables -A "$CHAIN" -o lo -p tcp --dport 7890 -j ACCEPT
48
+
49
+
# Allow Ollama (local LLM inference)
50
+
iptables -A "$CHAIN" -o lo -p tcp --dport 11434 -j ACCEPT
51
+
52
+
# Allow DNS on localhost
53
+
iptables -A "$CHAIN" -o lo -p udp --dport 53 -j ACCEPT
54
+
iptables -A "$CHAIN" -o lo -p tcp --dport 53 -j ACCEPT
55
+
56
+
# Allow localhost responses (established connections back to us)
57
+
iptables -A "$CHAIN" -o lo -m state --state ESTABLISHED,RELATED -j ACCEPT
58
+
59
+
# Block everything else on localhost
60
+
iptables -A "$CHAIN" -o lo -j LOG --log-prefix "HORNET_LOCAL_BLOCKED: " --log-level 4
61
+
iptables -A "$CHAIN" -o lo -j DROP
62
+
63
+
# ββ Internet: allow only standard ports ββββββββββββββββββββββββββββββββββββββ
0 commit comments