Audit first, then harden with explicit approval. Keep this file short; read the references when needed.
Run:
bash
uname -a
cat /etc/os-release
id
ss -ltnup 2>/dev/null || ss -ltnp 2>/dev/null
openclaw security audit --deep
openclaw update status
openclaw status --deep
If firewall state matters, also run:
bash
ufw status verbose || true
firewall-cmd --state 2>/dev/null || true
nft list ruleset 2>/dev/null || true
Check for these first:
tools.elevated.allowFrom.*gateway.nodes.denyCommandsRead these only when relevant:
references/ufw-playbook.mdreferences/openclaw-fix-patterns.mdWhen the user wants generated files, create:
firewall-rules.mdapply-firewall.shscripts/rollback-firewall.shscripts/verify-firewall.shufw status verbose and ss -ltnp.After fixes, verify with:
bash
openclaw security audit --deep
openclaw gateway status
python3 -m json.tool ~/.openclaw/openclaw.json >/dev/null
sudo ufw status verbose
ss -ltnp
Success means: