linux 系统安全 步骤

作者: SkTj | 来源:发表于2019-11-24 16:55 被阅读0次

服务器安全运维
网络安全运维
数据安全运维
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端口扫描

相关文章

  • linux 系统安全 步骤

    服务器安全运维网络安全运维数据安全运维1、账号安全删除特殊的用户和组:adm,lp,sync,shutdown,h...

  • Linux下逻辑卷LVM的管理和RAID磁盘阵列

    Linux系统安全 | Linux下逻辑卷LVM的管理和RAID磁盘阵列 原创 谢公子 [谢公子学安全](java...

  • Linux系统安全

    1、SELinux设置为enforcing; 2、AIDE,Advanced intrution detect e...

  • Linux

    1、Linux特点 1)系统开源并且免费 2)对硬件要求很低 3)系统稳定性强 4)系统安全性更好 2、Linux...

  • Linux系统安全加固

    系统更新安全 账号的基本安全

  • Linux 系统安全加固

    Linux 安全加固 这里使用Cent OS 7.5 版本 一、系统安装 系统镜像尽量从官网下载,下载完成后要与官...

  • linux系统中用户权限设置大全

    linux是多用户系统,不同用户不同权限。为了保护系统安全,linux对不同用户访问同一文件的权限做了不同的规定。...

  • linux系统安全事件诊断

    lsof -p 1144 查看1144打开文件信息,显示进程打开文件列表,包括文件名称、类型、打开方式、读写位置等...

  • linux 日志定时轮询流程详解

    logrotate介绍 对于Linux系统安全来说,日志文件是极其重要的工具。日志文件包含了关于系统中发生的事件的...

  • linux root用户无法远程telnet登录原因-day40

    2019-05-27 由于telnet远程登录是明文登陆,容易造成密码泄露,所以为了保护linux系统安全,所以禁...

网友评论

    本文标题:linux 系统安全 步骤

    本文链接:https://www.haomeiwen.com/subject/iwblwctx.html