Compare commits
No commits in common. "e23dee31ca7676b15ca87beb74078503647b30ee" and "a52a02cf92555e34278dbdf96abaf3e84c603f04" have entirely different histories.
e23dee31ca
...
a52a02cf92
6
.github/workflows/test_set_2.yml
vendored
6
.github/workflows/test_set_2.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
if: github.repository_owner == 'hwdsl2'
|
if: github.repository_owner == 'hwdsl2'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os_version: ["ubuntu:22.04", "ubuntu:20.04", "ubuntu:18.04", "debian:11", "debian:10", "debian:9", "alpine:3.14", "alpine:3.15"]
|
os_version: ["ubuntu:20.04", "ubuntu:18.04", "debian:11", "debian:10", "debian:9", "alpine:3.14", "alpine:3.15"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.os_version }}
|
image: ${{ matrix.os_version }}
|
||||||
@ -84,12 +84,8 @@ jobs:
|
|||||||
apt-get -yqq update
|
apt-get -yqq update
|
||||||
apt-get -yqq dist-upgrade
|
apt-get -yqq dist-upgrade
|
||||||
apt-get -yqq install wget rsyslog
|
apt-get -yqq install wget rsyslog
|
||||||
if grep -qs bookworm /etc/debian_version; then
|
|
||||||
rsyslogd
|
|
||||||
else
|
|
||||||
service rsyslog start
|
service rsyslog start
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
cp -f "$GITHUB_WORKSPACE"/vpnsetup.sh .
|
cp -f "$GITHUB_WORKSPACE"/vpnsetup.sh .
|
||||||
cp -f "$GITHUB_WORKSPACE"/extras/quickstart.sh .
|
cp -f "$GITHUB_WORKSPACE"/extras/quickstart.sh .
|
||||||
|
@ -80,7 +80,7 @@ curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o
|
|||||||
|
|
||||||
一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器,全新安装以下操作系统之一:
|
一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器,全新安装以下操作系统之一:
|
||||||
|
|
||||||
- Ubuntu 22.04, 20.04 或者 18.04
|
- Ubuntu 20.04 或者 18.04
|
||||||
- Debian 11[\*](#debian-10-note), 10[\*](#debian-10-note) 或者 9
|
- Debian 11[\*](#debian-10-note), 10[\*](#debian-10-note) 或者 9
|
||||||
- CentOS 7 或者 CentOS Stream 8[\*\*](#centos-8-note)
|
- CentOS 7 或者 CentOS Stream 8[\*\*](#centos-8-note)
|
||||||
- Rocky Linux 或者 AlmaLinux 8
|
- Rocky Linux 或者 AlmaLinux 8
|
||||||
|
@ -80,7 +80,7 @@ A pre-built [Docker image](https://github.com/hwdsl2/docker-ipsec-vpn-server) is
|
|||||||
|
|
||||||
A cloud server, virtual private server (VPS) or dedicated server, freshly installed with one of the following OS:
|
A cloud server, virtual private server (VPS) or dedicated server, freshly installed with one of the following OS:
|
||||||
|
|
||||||
- Ubuntu 22.04, 20.04 or 18.04
|
- Ubuntu 20.04 or 18.04
|
||||||
- Debian 11[\*](#debian-10-note), 10[\*](#debian-10-note) or 9
|
- Debian 11[\*](#debian-10-note), 10[\*](#debian-10-note) or 9
|
||||||
- CentOS 7 or CentOS Stream 8[\*\*](#centos-8-note)
|
- CentOS 7 or CentOS Stream 8[\*\*](#centos-8-note)
|
||||||
- Rocky Linux or AlmaLinux 8
|
- Rocky Linux or AlmaLinux 8
|
||||||
|
@ -498,24 +498,13 @@ start_services() {
|
|||||||
bigecho "Starting services..."
|
bigecho "Starting services..."
|
||||||
sysctl -e -q -p
|
sysctl -e -q -p
|
||||||
|
|
||||||
|
chmod +x /etc/rc.local
|
||||||
chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
|
chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
|
||||||
|
|
||||||
mkdir -p /run/pluto
|
mkdir -p /run/pluto
|
||||||
service fail2ban restart >/dev/null 2>&1
|
service fail2ban restart >/dev/null 2>&1
|
||||||
service ipsec restart >/dev/null 2>&1
|
service ipsec restart >/dev/null 2>&1
|
||||||
service xl2tpd restart >/dev/null 2>&1
|
service xl2tpd restart >/dev/null 2>&1
|
||||||
|
|
||||||
mkdir -p /etc/crontabs
|
|
||||||
cron_cmd="rc-service -c ipsec zap start"
|
|
||||||
if ! grep -qs "$cron_cmd" /etc/crontabs/root; then
|
|
||||||
cat >> /etc/crontabs/root <<EOF
|
|
||||||
* * * * * $cron_cmd
|
|
||||||
* * * * * sleep 15; $cron_cmd
|
|
||||||
* * * * * sleep 30; $cron_cmd
|
|
||||||
* * * * * sleep 45; $cron_cmd
|
|
||||||
EOF
|
|
||||||
touch /etc/crontabs/cron.update
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_vpn_info() {
|
show_vpn_info() {
|
||||||
|
Loading…
Reference in New Issue
Block a user