nginx-ui icon indicating copy to clipboard operation
nginx-ui copied to clipboard

管理页面能够使用证书进行加密+Modsecurity支持

Open LReion opened this issue 4 months ago • 2 comments

  1. 管理页面能够使用添加的ssl证书来使用https,然后监听指定域名。
  2. 可以添加简单的防火墙Modsecurity,建议代码(我写的有点垃圾,勿喷。。。)
git clone https://github.com/coreruleset/coreruleset.git /etc/crs4
cd /etc/crs4
mv crs-setup.conf.example crs-setup.conf
# Include WAF Rules and Config
include modsecurity.conf
include /etc/crs4/crs-setup.conf
include /etc/crs4/plugins/*-config.conf
include /etc/crs4/plugins/*-before.conf
include /etc/crs4/rules/*.conf
include /etc/crs4/plugins/*-after.conf
  1. 如何可以的话可以看WAF的日志,来判断防护情况,从而修改WAF的拦截设置。
  2. 补充一个备份功能。

LReion avatar Oct 08 '24 10:10 LReion