为了能快速了解并处理您的问题,请提供以下基础信息: 系统版本:CentOS 7.9.2009 x86_64(Py3.7.9) 问题描述:是这样,在安装面板后有一个【安全风险监测提醒】,其中有一条是这样的:【检查是否开启TCP-SYNcookie保护缓解syn flood攻击】
检测类型:TCP-SYNcookie保护检测
风险等级:低危
风险描述:未开启TCP-SYNcookie保护
解决方案:1、在【/etc/sysctl.conf】文件中添加net.ipv4.tcp_syncookies=1
2、然后执行命令sysctl -p生效配置
温馨提示:此方案可以缓解网络洪水攻击,增强服务器运行的稳定性。
如上所示,我进入了【/etc/sysctl.conf】文件,但是不知道这个"net.ipv4.tcp_syncookies=1"应该添加在具体的哪里呢?
不知道我这样添加是否正确?
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
# net.ipv4.tcp_syncookies=1
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
然后我添加并且保存后,进行方案的第二步执行命令:sysctl -p 生效配置(请问这个sysctl -p是否是在ssh链接成功后,直接执行该命令呢?我执行了,但是重新监测后,那个风险提示仍然在,不知道哪里出问题了,请大佬解答,多谢多谢)
|
|