#关闭ipv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1避免放大攻击
net.ipv4.icmp_echo_ignore_broadcasts = 1开启恶意icmp错误消息保护
net.ipv4.icmp_ignore_bogus_error_responses = 1 #关闭路由转发 net.ipv4.ip_forward = 0 开起路由转发将0改为1即可 net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0 #开启反向路径过滤 net.ipv4.conf.all.rp_filter = 1 net.ipv4.conf.default.rp_filter = 1 #处理无源路由的包 net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0 #关闭sysrq功能 kernel.sysrq = 0 #core文件名中添加pid作为扩展名 kernel.core_uses_pid = 1开启SYN洪水攻击保护
net.ipv4.tcp_syncookies = 1 表示开启SYN Cookies。当出现SYN等待队列溢出时,启用cookies来处理,可防范少量SYN攻击,默认为1,表示开启的; 表示SYN队列的长度,默认为1024,加大队列长度为8192,可以容纳更多等待连接的网络连接数 net.ipv4.tcp_max_syn_backlog = 262144 #修改消息队列长度 kernel.msgmnb = 65536 kernel.msgmax = 65536 #设置最大内存共享段大
详细解决方案
centos7内核参数优化配置详解
热度:83 发布时间:2024-01-18 00:46:12.0
相关解决方案
- CentOS7 最小安装命令详解
- 黑猴子的家:Centos7 修改网卡名称
- centos7—日志文件
- centos7—计划任务(at、cron)
- centos7—LVM逻辑卷
- centos7—交换分区
- centos7—关于软链接和硬链接
- centos7.3关于进程
- centos7.3虚拟机挂载光盘以及配置yum源
- centos7:mysql数据库(基本SQL语句---记录操作)
- centos7:mysql数据库(基本SQL语句---库操作)
- centos7:mysql数据库(基本SQL语句---字段操作)
- centos7:mysql数据库(基本SQL语句---函数)
- centos7:mysql数据库(基本SQL语句---表操作)
- centos7:mysql数据库(关于修改密码)
- centos7:mysql数据库(关于登录)
- 笔记:Centos7 文件操作相关指令
- 笔记:Centos7.4网络相关配置
- 笔记:Centos7.4 安装 配置更仔细
- 笔记一 Centos7 安装详细说明
- Centos7 增加swap分区
- centos7 linux系统如何安装zip/unzip
- Centos7 yum 出现could not retrieve mirrorlist 最终解决方案
- centos7 批量杀死进程
- centos7 常用服务操作命令
- ubuntu/centos7.5安装python3.6
- Centos7 修改网卡名称(ens33/em1----->eth0)
- CentOS7 防火墙操作
- 设置nginx开机自启动(centos7.x)
- Centos7 tomcat做服务,并开机启动(亲测可用)