1
0
mirror of synced 2024-11-22 13:06:02 +03:00

Update docs

This commit is contained in:
hwdsl2 2022-09-09 23:53:53 -05:00
parent c5df950ea2
commit 4202a88804
2 changed files with 36 additions and 4 deletions

View File

@ -115,10 +115,26 @@ rm -f /etc/ipsec.conf* /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ppp/optio
rm -rf /etc/ipsec.d /etc/xl2tpd rm -rf /etc/ipsec.d /etc/xl2tpd
``` ```
删除 IKEv2 脚本: 删除辅助脚本:
```bash ```bash
rm -f /usr/bin/ikev2.sh /opt/src/ikev2.sh rm -f /usr/bin/ikev2.sh /opt/src/ikev2.sh \
/usr/bin/addvpnuser.sh /opt/src/addvpnuser.sh \
/usr/bin/delvpnuser.sh /opt/src/delvpnuser.sh
```
删除 fail2ban
**注:** 这是可选的。Fail2ban 可以帮助保护你的服务器上的 SSH。\*不推荐\*删除它。
```bash
service fail2ban stop
# Ubuntu & Debian
apt-get purge fail2ban
# CentOS/RHEL, Rocky Linux, AlmaLinux, Oracle Linux & Amazon Linux 2
yum remove fail2ban
# Alpine Linux
apk del fail2ban
``` ```
### 完成后 ### 完成后

View File

@ -115,10 +115,26 @@ rm -f /etc/ipsec.conf* /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ppp/optio
rm -rf /etc/ipsec.d /etc/xl2tpd rm -rf /etc/ipsec.d /etc/xl2tpd
``` ```
Remove IKEv2 script: Remove helper scripts:
```bash ```bash
rm -f /usr/bin/ikev2.sh /opt/src/ikev2.sh rm -f /usr/bin/ikev2.sh /opt/src/ikev2.sh \
/usr/bin/addvpnuser.sh /opt/src/addvpnuser.sh \
/usr/bin/delvpnuser.sh /opt/src/delvpnuser.sh
```
Remove fail2ban:
**Note:** This is optional. Fail2ban can help protect SSH on your server. Removing it is NOT recommended.
```bash
service fail2ban stop
# Ubuntu & Debian
apt-get purge fail2ban
# CentOS/RHEL, Rocky Linux, AlmaLinux, Oracle Linux & Amazon Linux 2
yum remove fail2ban
# Alpine Linux
apk del fail2ban
``` ```
### When finished ### When finished