本指南演示了如何配置多服务器Crowdsec安全引擎,从而增强了网络的集体安全性。 一台服务器充当父(Server-1),从子日志处理器(Server-2和Server-3)接收警报。该体系结构允许分布式威胁检测和修复。
> server-1,父母,托管HTTP REST API(LAPI)并管理信号存储和分发。 Server-2和Server-3(儿童)正面向Internet,将警报转发到Server-1。 通过补救组件管理的补救措施独立于检测,依赖于Server-1的LAPI。 儿童日志处理器的LAPI残疾以节省资源。
关键因素:
>设置步骤:
1。父级服务器(server-1):
安装crowdsec:遵循安装指南并使用提供的命令:
curl -s https:/packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash sudo apt install crowdsec
(可选)PostgreSQL设置:sudo apt install postgresql
部分。 再生证书并重新启动crowdsec。crowdsec
/etc/crowdsec/config.yaml
db_config
sudo -i -u postgres psql # ... PostgreSQL commands ... sudo cscli machines add -a –force sudo systemctl restart crowdsec
露出LAPI端口(例如,)。
/etc/crowdsec/config.yaml
10.0.0.1:8080
api: server: listen_uri: 10.0.0.1:8080
安装crowdsec:
>用LAPI注册:
sudo cscli lapi register -u http://10.0.0.1:8080
/etc/crowdsec/config.yaml
api: server: enable: false
>。。
cscli machines list
cscli machines validate <machine_id></machine_id>
3。修复(Server-2&Server-3):
生成API密钥:
cscli bouncers add <bouncer_name></bouncer_name>
安装补救组件:
配置修复组件:与API URL和键。
/etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml
重新启动 crowdsec-firewall-bouncer
重要说明:
以上是设置多服务器安全引擎安装的详细内容。更多信息请关注PHP中文网其他相关文章!