<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>安全 on bugwang</title>
    <link>https://bugwang.cn/tags/%E5%AE%89%E5%85%A8/</link>
    <description>Recent content in 安全 on bugwang</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-ch</language>
    <lastBuildDate>Tue, 04 Jun 2024 12:15:23 +0800</lastBuildDate><atom:link href="https://bugwang.cn/tags/%E5%AE%89%E5%85%A8/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH登录安全与Fail2ban加固</title>
      <link>https://bugwang.cn/posts/ssh%E7%99%BB%E5%BD%95%E5%AE%89%E5%85%A8%E4%B8%8Efail2ban%E5%8A%A0%E5%9B%BA/</link>
      <pubDate>Tue, 04 Jun 2024 12:15:23 +0800</pubDate>
      
      <guid>https://bugwang.cn/posts/ssh%E7%99%BB%E5%BD%95%E5%AE%89%E5%85%A8%E4%B8%8Efail2ban%E5%8A%A0%E5%9B%BA/</guid>
      <description>SSH登录安全与Fail2ban加固 查看：SSH暴力破解/爆破次数 RedHat 和 CentOS 存储在 /var/log/secure 1.查看 root 用户登录成功的IP及次数看看是否有不熟悉的 IP 地址 grep &amp;#34;Accepted password for root&amp;#34; /var/log/secure | awk &amp;#39;{print $11}&amp;#39; | sort | uniq -c | sort -nr | more 2.查看尝试暴力破解 root 账户的IP及次数 grep &amp;#34;Failed password for root&amp;#34; /var/log/secure | awk &amp;#39;{print $11}&amp;#39; | sort | uniq -c | sort -nr | more 3.查看尝试暴力破解用户名的IP及次数 grep &amp;#34;Failed password for invalid user&amp;#34; /var/log/secure | awk &amp;#39;{print $13}&amp;#39; | sort | uniq -c | sort -nr | more Debian 和 Ubuntu 存储在 /var/log/auth.</description>
    </item>
    
  </channel>
</rss>
