linux网络安全知识 linux网络安全技术与实现
创始人
2024-07-24 01:40:30
0

Linux网络安全技巧之别名文件aliases

编辑别名文件/etc/aliases(也可能是/etc/mail/aliases),移走/注释掉下面的行。

  1. # Basic system aliases -- these MUST be present.  
  2.  
  3. MAILER-DAEMON: postmaster  
  4.  
  5. postmaster: root  
  6.  
  7. # General redirections for pseudo accounts.  
  8.  
  9. bin: root  
  10.  
  11. daemon: root  
  12.  
  13. #games: root ?remove or comment out.  
  14.  
  15. #ingres: root ?remove or comment out.  
  16.  
  17. nobody: root  
  18.  
  19. #system: root ?remove or comment out.  
  20.  
  21. #toor: root ?remove or comment out.  
  22.  
  23. #uucp: root ?remove or comment out.  
  24.  
  25. # Well-known aliases.  
  26.  
  27. #manager: root ?remove or comment out.  
  28.  
  29. #dumper: root ?remove or comment out.  
  30.  
  31. #operator: root ?remove or comment out.  
  32.  
  33. # trap decode to catch security attacks  
  34.  
  35. #decode: root  
  36.  
  37. # Person who should get roots mail  
  38.  
  39. #root: marc 

 

最后更新后不要忘记运行/usr/bin/newaliases,使改变生效。

Linux网络安全技巧之阻止你的系统响应任何从外部/内部来的ping请求。

既然没有人能ping通你的机器并收到响应,你可以大大增强你的站点的安全性。你可以加下面的一行命令到/etc/rc.d/rc.local,以使每次启动后自动运行。

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

Linux网络安全技巧之不要显示出操作系统和版本信息。

如果你希望某个人远程登录到你的服务器时不要显示操作系统和版本信息,你能改变

/etc/inetd.conf中的一行象下面这样:

telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd -h

加-h标志在最后使得telnet后台不要显示系统信息,而仅仅显示login:

Linux网络安全技巧之The /etc/host.conf file

编辑host.conf文件(vi /etc/host.conf)且加下面的行:

  1. # Lookup names via DNS first then fall back to /etc/hosts.  
  2.  
  3. order bind,hosts  
  4.  
  5. # We don have machines with multiple IP addresses on the same card  
  6.  
  7. (like virtual server,IP Aliasing).  
  8.  
  9. multi off  
  10.  
  11. # Check for IP address spoofing.  
  12.  
  13. nospoof on  
  14.  
  15. IP Spoofing: IP-Spoofing is a security exploit that works by tricking  
  16.  
  17. computers in a trust relationship that you are someone that you really aren . 

 

Linux网络安全技巧之The /etc/securetty file

该文件指定了允许root登录的tty设备,/etc/securetty被/bin/login程序读取,它的格式是一行一个被允许的名字列表,如你可以编辑/etc/securetty且注释出下面的行。

  1. tty1  
  2.  
  3. #tty2  
  4.  
  5. #tty3  
  6.  
  7. #tty4  
  8.  
  9. #tty5  
  10.  
  11. #tty6  
  12.  
  13. #tty7  
  14.  
  15. #tty8 

 

-意味着root仅仅被允许在tty1终端登录。

Linux网络安全技巧还有很多,它们都可以有效的保护Linux网络的安全,我们会在以后的文章中为大家介绍,大家也结合以前的文章多多了解吧。

【编辑推荐】

  1. Linux网络安全技巧(1)
  2. 如何加强企业Linux系统安全
  3. 从堵住系统漏洞开始 保护Linux系统安全
  4. 从堵住系统漏洞开始 保护Linux系统安全 续

 

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...