OpenClaw 安全配置,5 分钟搞定。
刚装好的话,做完这几步再用。
1. 开防火墙 系统设置 → 网络 → 防火墙 → 开启 → 阻止所有传入连接
2. 检查 Gateway 绑定
openclaw status | grep Gateway
确保是 127.0.0.1,不是 0.0.0.0
3. 关闭共享服务 系统设置 → 共享 → 全部关掉,SSH、屏幕共享都关
4. 跑一遍安全审计
openclaw security audit
5. 工作目录别放敏感信息 密码密钥用环境变量或钥匙串,别让 AI 能直接读到
完事。
为什么这么配?
防火墙挡外部入侵,不影响正常使用。Gateway 绑本地意味着只有这台机器能访问。关共享是减少攻击面。审计是发现潜在问题。敏感数据隔离是防止 AI 看到不该看的。
定期检查:
openclaw security audit --deep
跑 AI Agent 的机器,安全配置不是可选项。
From X
Disclaimer: The above content reflects only the author's opinion and does not represent any stance of CoinNX, nor does it constitute any investment advice related to CoinNX.

