Skip to content

Commit

Permalink
Update articles
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Apr 9, 2024
1 parent 36ade40 commit a8fdd14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
9 changes: 2 additions & 7 deletions source/_posts/1panel-installation-and-usage-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,11 @@ date: 2023-12-28 15:54:04

![1panel 的官网简介](1panel-profile.webp)

<p style="text-align:center">
1Panel 是一个现代化、开源的 Linux 服务器运维管理面板。<br>
Github 仓库:<a href="https://github.com/1Panel-dev/1Panel">https://github.com/1Panel-dev/1Panel</a>
</p>

<br>

众所周知,服务器运维要在 Linux 命令行下进行各种操作,但 ~~人总会想着偷懒~~而服务器管理面板封装了大量操作的实现,我们在浏览器中点击即可使用,大大提高了运维效率。
众所周知,服务器运维要在 Linux 命令行下进行各种操作,但 ~~人总会想着偷懒~~**服务器管理面板** 封装了大量操作的实现,我们在浏览器中点击即可使用,大大提高了运维效率。

而 1Panel 是一个现代化、开源的服务器管理面板,封装了很多常用的操作,比如安装软件、配置反向代理、申请 SSL 证书等等。UI 界面好看,操作也很简单。是宝塔面板的一个很好的替代品。
而 1Panel 是一个现代化、开源的 **服务器管理面板**,封装了很多常用的操作,比如安装软件、配置反向代理、申请 SSL 证书等等。UI 界面好看,操作也很简单。是宝塔面板的一个很好的替代品。Github 仓库:https://github.com/1Panel-dev/1Panel

1Panel 在线体验:[https://demo.1panel.cn](https://demo.1panel.cn)

Expand Down
15 changes: 10 additions & 5 deletions source/_posts/Fail2ban-installation-and-usage-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sudo apt install fail2ban
```bash
sudo apt install rsyslog
```
原因见:https://github.com/fail2ban/fail2ban/issues/3292
原因见:[Github Issue](https://github.com/fail2ban/fail2ban/issues/3292)

## 2. 启动 Fail2ban

Expand Down Expand Up @@ -70,7 +70,7 @@ port = 22
logpath = /var/log/auth.log
```

可以根据自己的需求进行修改。
[DEFAULT] 部分是全局配置,[sshd] 部分是针对 SSH 服务的配置,可以根据自己的需求进行修改。
其中:
- `bantime`:封禁时间,单位为秒。-1 表示永久封禁。
- `findtime`:检测时间,单位为秒。如果在这个时间内有超过 `maxretry` 次的尝试,就会被封禁,如 300 秒内有 5 次尝试失败就会被封禁。
Expand All @@ -85,12 +85,17 @@ sudo systemctl restart fail2ban

## 6. 常用命令

- 查看所有被封禁的 IP 地址:
- 查看 sshd 所有被封禁的 IP 地址:
```bash
sudo fail2ban-client status
sudo fail2ban-client status sshd
```

- 解封 IP 地址:
- 手动封禁 IP 地址:
```bash
sudo fail2ban-client set sshd banip 6.6.6.6
```

- 手动解封 IP 地址:
```bash
sudo fail2ban-client set sshd unbanip 6.6.6.6
```
Expand Down

0 comments on commit a8fdd14

Please sign in to comment.