前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux 系统安全 步骤

linux 系统安全 步骤

作者头像
用户5760343
发布2019-11-27 17:35:25
1.3K0
发布2019-11-27 17:35:25
举报
文章被收录于专栏:sktj

服务器安全运维 网络安全运维 数据安全运维 1、账号安全 删除特殊的用户和组:adm,lp,sync,shutdown,halt,news,uucp,operator,games,gopher adm,lp,news,uucp,games,dip,pppusers,popusers,slipusers userdel x groupdel x usermod -s /sbin/nologin nagios 2、关闭不需要的服务 anacron,auditd,autofs,

image.png

chkconfig --level 345 bluetooth off 需要开启的服务: acpid,apmd,kudzu,crond,atd,keytables,iptables,xinetd,xfs,network,sshd,syslog 3、密码安全策略(堡垒机替代) 秘钥认证 密码认证 vi /etc/ssh/sshd_config

image.png

4、su sudo

image.png

xx ALL = NOPASSWD: /etc/init.d/nagios restart

超级用户

user02 ALL=(ALL) NOPASSWD: ALL 5、删减登陆信息 6、禁用 alt+control+delete 7、SSH配置修改 更改默认端口 使用协议2 Protocol 2 ListenAddress 0.0.0.0 + allow deny PermitRootLogin no MaxAuthTries 3 AllowUsers x y AllowGroups x y DenyUsers DenyGroups x 8、记录详细指令历史:bashrc

image.png

把历史记录保存到特定文件供审计用,\

/etc/profile

image.png

image.png


image.png

9、tcp_wrappers /etc/hosts.allow /etc/hosts.deny sshd,portmap,sendmail,xinetd,vsftpd,tcpd sshd:xxx sshd:ip

image.png

sshd:ALL

image.png

10 文件系统安全

chattr +i xxx

image.png

image.png

11 文件权限检查和修改

image.png

image.png

12 定期升级软件 yum check-update 13 每天定时执行rootkit检查 使用RKHunter

image.png

14 服务器遭受攻击后处理方法

切断网络

查找攻击源

分析入侵原因

备份数据

修复漏洞

恢复连接

15、网络安全

NTOP检测网络

iperf检查网络性能

nmap端口扫描

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 超级用户
  • 把历史记录保存到特定文件供审计用,\
  • /etc/profile
相关产品与服务
运维安全中心(堡垒机)
腾讯云运维安全中心(堡垒机)(Operation and Maintenance Security Center (Bastion Host))可为您的 IT 资产提供代理访问以及智能操作审计服务,为客户构建一套完善的事前预防、事中监控、事后审计安全管理体系,助力企业顺利通过等保测评。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档