mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-02-23 05:58:36 -05:00
just push
This commit is contained in:
parent
78523b36ee
commit
0a44d36ab3
@ -350,4 +350,31 @@ sudo systemctl enable fail2ban
|
|||||||
sudo systemctl status fail2ban
|
sudo systemctl status fail2ban
|
||||||
````
|
````
|
||||||
|
|
||||||
## 待续
|
## Ban IPv6
|
||||||
|
|
||||||
|
手动 禁用 VPS 的 IPv6 命令:
|
||||||
|
```
|
||||||
|
sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
||||||
|
sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
||||||
|
```
|
||||||
|
如果想重启系统也生效, 执行:
|
||||||
|
```
|
||||||
|
echo 'net.ipv6.conf.all.disable_ipv6=1' >> /etc/sysctl.conf
|
||||||
|
echo 'net.ipv6.conf.default.disable_ipv6=1' >> /etc/sysctl.conf
|
||||||
|
```
|
||||||
|
手动 启用 VPS 的 IPv6 命令:
|
||||||
|
```
|
||||||
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
||||||
|
```
|
||||||
|
重新载入 sysctl 配置
|
||||||
|
```
|
||||||
|
sysctl --system # reload sysctl
|
||||||
|
```
|
||||||
|
如果重载, 还无效果, 可能要 reboot 重启下.
|
||||||
|
查看 VPS 的 IPv6 信息
|
||||||
|
```
|
||||||
|
ip -6 addr show scope global
|
||||||
|
|
||||||
|
或者 curl ipv6.ip.sb
|
||||||
|
```
|
BIN
public/pagefind/fragment/en_40a8c6d.pf_fragment
Normal file
BIN
public/pagefind/fragment/en_40a8c6d.pf_fragment
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_283abec.pf_index
Normal file
BIN
public/pagefind/index/en_283abec.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_3fb5489.pf_index
Normal file
BIN
public/pagefind/index/en_3fb5489.pf_index
Normal file
Binary file not shown.
BIN
public/pagefind/index/en_c0c8993.pf_index
Normal file
BIN
public/pagefind/index/en_c0c8993.pf_index
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
{"version":"1.3.0","languages":{"en":{"hash":"en_d76ad53f2d","wasm":"en","page_count":84}}}
|
{"version":"1.3.0","languages":{"en":{"hash":"en_84da4c7281","wasm":"en","page_count":84}}}
|
BIN
public/pagefind/pagefind.en_84da4c7281.pf_meta
Normal file
BIN
public/pagefind/pagefind.en_84da4c7281.pf_meta
Normal file
Binary file not shown.
Binary file not shown.
@ -294,7 +294,28 @@
|
|||||||
<p><strong>5、查看 Fail2ban 服务状态。</strong></p>
|
<p><strong>5、查看 Fail2ban 服务状态。</strong></p>
|
||||||
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sudo systemctl status fail2ban
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sudo systemctl status fail2ban
|
||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
<h2 id="dai-xu">待续</h2>
|
<h2 id="ban-ipv6">Ban IPv6</h2>
|
||||||
|
<p>手动 禁用 VPS 的 IPv6 命令:</p>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
||||||
|
</span><span>sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
||||||
|
</span></code></pre>
|
||||||
|
<p>如果想重启系统也生效, 执行:</p>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>echo 'net.ipv6.conf.all.disable_ipv6=1' >> /etc/sysctl.conf
|
||||||
|
</span><span>echo 'net.ipv6.conf.default.disable_ipv6=1' >> /etc/sysctl.conf
|
||||||
|
</span></code></pre>
|
||||||
|
<p>手动 启用 VPS 的 IPv6 命令:</p>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
</span><span>sysctl -w net.ipv6.conf.default.disable_ipv6=0
|
||||||
|
</span></code></pre>
|
||||||
|
<p>重新载入 sysctl 配置</p>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sysctl --system # reload sysctl
|
||||||
|
</span></code></pre>
|
||||||
|
<p>如果重载, 还无效果, 可能要 reboot 重启下.
|
||||||
|
查看 VPS 的 IPv6 信息</p>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>ip -6 addr show scope global
|
||||||
|
</span><span>
|
||||||
|
</span><span>或者 curl ipv6.ip.sb
|
||||||
|
</span></code></pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user