1
0
mirror of synced 2024-11-22 04:56:03 +03:00

Update docs

This commit is contained in:
hwdsl2 2021-07-31 15:32:02 -05:00
parent c928068a20
commit 6aa15b8a21
6 changed files with 20 additions and 18 deletions

View File

@ -43,7 +43,7 @@ wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -93,6 +93,7 @@ wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh -
- Debian 10 (Buster)[\*](#debian-10-note) 或者 9 (Stretch)
- CentOS 8[\*\*](#centos-8-note) 或者 7
- Rocky Linux 8
- AlmaLinux OS 8
- Red Hat Enterprise Linux (RHEL) 8 或者 7
- Amazon Linux 2
@ -131,7 +132,7 @@ wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -173,7 +174,7 @@ sudo sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -226,7 +227,7 @@ sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -315,7 +316,7 @@ wget https://git.io/vpnupgrade -O vpnup.sh && sudo sh vpnup.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash

View File

@ -43,7 +43,7 @@ wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -93,6 +93,7 @@ A dedicated server or virtual private server (VPS), freshly installed with one o
- Debian 10 (Buster)[\*](#debian-10-note) or 9 (Stretch)
- CentOS 8[\*\*](#centos-8-note) or 7
- Rocky Linux 8
- AlmaLinux OS 8
- Red Hat Enterprise Linux (RHEL) 8 or 7
- Amazon Linux 2
@ -131,7 +132,7 @@ wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -173,7 +174,7 @@ sudo sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -226,7 +227,7 @@ sh vpn.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
@ -315,7 +316,7 @@ wget https://git.io/vpnupgrade -O vpnup.sh && sudo sh vpnup.sh
<details>
<summary>
CentOS/RHEL & Rocky Linux
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash

View File

@ -400,7 +400,7 @@ service xl2tpd restart
grep pluto /var/log/auth.log
grep xl2tpd /var/log/syslog
# CentOS/RHEL, Rocky Linux & Amazon Linux 2
# CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
grep pluto /var/log/secure
grep xl2tpd /var/log/messages
```

View File

@ -399,7 +399,7 @@ Check the Libreswan (IPsec) and xl2tpd logs for errors:
grep pluto /var/log/auth.log
grep xl2tpd /var/log/syslog
# CentOS/RHEL, Rocky Linux & Amazon Linux 2
# CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
grep pluto /var/log/secure
grep xl2tpd /var/log/messages
```

View File

@ -29,7 +29,7 @@ rm -f /etc/init/ipsec.conf /lib/systemd/system/ipsec.service \
`apt-get purge xl2tpd`
### CentOS/RHEL, Rocky Linux & Amazon Linux 2
### CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
`yum remove xl2tpd`
@ -39,11 +39,11 @@ rm -f /etc/init/ipsec.conf /lib/systemd/system/ipsec.service \
编辑 `/etc/iptables.rules` 并删除不需要的规则。你之前的防火墙规则(如果有)备份在 `/etc/iptables.rules.old-日期-时间`。另外如果文件 `/etc/iptables/rules.v4` 存在,请编辑它。
### CentOS/RHEL, Rocky Linux & Amazon Linux 2
### CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
编辑 `/etc/sysconfig/iptables` 并删除不需要的规则。你之前的防火墙规则(如果有)备份在 `/etc/sysconfig/iptables.old-日期-时间`
**注:** 如果使用 Rocky Linux 或者 CentOS/RHEL 8 并且在安装 VPN 时 firewalld 正在运行,则可能已配置 nftables。编辑 `/etc/sysconfig/nftables.conf` 并删除不需要的规则。你之前的防火墙规则备份在 `/etc/sysconfig/nftables.conf.old-日期-时间`
**注:** 如果使用 Rocky Linux, AlmaLinux 或者 CentOS/RHEL 8 并且在安装 VPN 时 firewalld 正在运行,则可能已配置 nftables。编辑 `/etc/sysconfig/nftables.conf` 并删除不需要的规则。你之前的防火墙规则备份在 `/etc/sysconfig/nftables.conf.old-日期-时间`
## 第四步

View File

@ -29,7 +29,7 @@ rm -f /etc/init/ipsec.conf /lib/systemd/system/ipsec.service \
`apt-get purge xl2tpd`
### CentOS/RHEL, Rocky Linux & Amazon Linux 2
### CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
`yum remove xl2tpd`
@ -39,11 +39,11 @@ rm -f /etc/init/ipsec.conf /lib/systemd/system/ipsec.service \
Edit `/etc/iptables.rules` and remove unneeded rules. Your original rules (if any) are backed up as `/etc/iptables.rules.old-date-time`. In addition, edit `/etc/iptables/rules.v4` if the file exists.
### CentOS/RHEL, Rocky Linux & Amazon Linux 2
### CentOS/RHEL, Rocky Linux, AlmaLinux & Amazon Linux 2
Edit `/etc/sysconfig/iptables` and remove unneeded rules. Your original rules (if any) are backed up as `/etc/sysconfig/iptables.old-date-time`.
**Note:** If using Rocky Linux or CentOS/RHEL 8 and firewalld was active during VPN setup, nftables may be configured. Edit `/etc/sysconfig/nftables.conf` and remove unneeded rules. Your original rules are backed up as `/etc/sysconfig/nftables.conf.old-date-time`.
**Note:** If using Rocky Linux, AlmaLinux or CentOS/RHEL 8 and firewalld was active during VPN setup, nftables may be configured. Edit `/etc/sysconfig/nftables.conf` and remove unneeded rules. Your original rules are backed up as `/etc/sysconfig/nftables.conf.old-date-time`.
## Fourth step