Skip to content

Commit 97a5cab

Browse files
committed
Update docs
1 parent 725b37b commit 97a5cab

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

README-zh.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,25 @@ docker image tag quay.io/hwdsl2/ipsec-vpn-server hwdsl2/ipsec-vpn-server
8181

8282
**注:** 要使用基于 Debian 的镜像,请将本自述文件中所有的 `hwdsl2/ipsec-vpn-server` 替换为 `hwdsl2/ipsec-vpn-server:debian`。这些镜像当前与 Synology NAS 系统不兼容。
8383

84+
<details>
85+
<summary>
86+
我需要使用较旧版本的 Libreswan 版本 4。
87+
</summary>
88+
89+
一般建议使用最新的 [Libreswan](https://libreswan.org/) 版本 5,它是本项目的默认版本。但是,如果你想要使用较旧版本的 Libreswan 版本 4,你可以从源代码构建 Docker 镜像:
90+
91+
```
92+
git clone https://github.com/hwdsl2/docker-ipsec-vpn-server
93+
cd docker-ipsec-vpn-server
94+
# Specify Libreswan version 4
95+
sed -i 's/SWAN_VER 5\.0/SWAN_VER 4.15/' Dockerfile Dockerfile.debian
96+
# To build Alpine-based image
97+
docker build -t hwdsl2/ipsec-vpn-server .
98+
# To build Debian-based image
99+
docker build -f Dockerfile.debian -t hwdsl2/ipsec-vpn-server:debian .
100+
```
101+
</details>
102+
84103
## 如何使用本镜像
85104

86105
### 环境变量

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,25 @@ Two pre-built images are available. The default Alpine-based image is only ~19MB
8181

8282
**Note:** To use the Debian-based image, replace every `hwdsl2/ipsec-vpn-server` with `hwdsl2/ipsec-vpn-server:debian` in this README. These images are not currently compatible with Synology NAS systems.
8383

84+
<details>
85+
<summary>
86+
I want to use the older Libreswan version 4.
87+
</summary>
88+
89+
It is generally recommended to use the latest [Libreswan](https://libreswan.org/) version 5, which is the default version in this project. However, if you want to use the older Libreswan version 4, you can build the Docker image from source code:
90+
91+
```
92+
git clone https://github.com/hwdsl2/docker-ipsec-vpn-server
93+
cd docker-ipsec-vpn-server
94+
# Specify Libreswan version 4
95+
sed -i 's/SWAN_VER 5\.0/SWAN_VER 4.15/' Dockerfile Dockerfile.debian
96+
# To build Alpine-based image
97+
docker build -t hwdsl2/ipsec-vpn-server .
98+
# To build Debian-based image
99+
docker build -f Dockerfile.debian -t hwdsl2/ipsec-vpn-server:debian .
100+
```
101+
</details>
102+
84103
## How to use this image
85104

86105
### Environment variables

0 commit comments

Comments
 (0)