From da001bf87f4f08447e2e9bb4a0c53bbc477b930d Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 5 Feb 2017 15:40:18 -0600 Subject: [PATCH] Update docs --- README-zh.md | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README-zh.md b/README-zh.md index 166ab2a..6f8c6fe 100644 --- a/README-zh.md +++ b/README-zh.md @@ -126,9 +126,9 @@ docker exec -it ipsec-vpn-server ipsec whack --trafficstatus 在编辑任何 VPN 配置文件之前,你必须首先在正在运行的 Docker 容器中 [开始一个 Bash 会话](#在容器中运行-bash-shell)。 -如果需要添加,修改或者删除 VPN 用户账户,请参见 [管理 VPN 用户](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/manage-users-zh.md)。完成后重启 Docker 容器。 +如果需要添加,修改或者删除 VPN 用户账户,请参见 [管理 VPN 用户](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/manage-users-zh.md)。请注意:在编辑完 VPN 配置文件之后,你还必须注释掉脚本 `/opt/src/run.sh` 中的相应部分,以避免你的更改在容器重启后丢失。 -在 VPN 已连接时,客户端配置为使用 [Google Public DNS](https://developers.google.com/speed/public-dns/)。如果偏好其它的域名解析服务,请编辑 `/etc/ppp/options.xl2tpd` 和 `/etc/ipsec.conf` 并替换 `8.8.8.8` 和 `8.8.4.4`。然后重启 Docker 容器。 +在 VPN 已连接时,客户端配置为使用 [Google Public DNS](https://developers.google.com/speed/public-dns/)。如果偏好其它的域名解析服务,请编辑 `/opt/src/run.sh` 并将所有的 `8.8.8.8` 和 `8.8.4.4` 替换为你的新服务器。然后重启 Docker 容器。 ## 高级用法 diff --git a/README.md b/README.md index 1b3c5cb..e880f70 100644 --- a/README.md +++ b/README.md @@ -126,9 +126,9 @@ For servers with an external firewall (e.g. [EC2](https://docs.aws.amazon.com/AW Before editing any VPN config files, you must first [start a Bash session](https://github.com/hwdsl2/docker-ipsec-vpn-server#bash-shell-inside-container) in the running container. -If you wish to add, edit or remove VPN user accounts, see [Manage VPN Users](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/manage-users.md). When finished, restart the Docker container. +If you wish to add, edit or remove VPN user accounts, see [Manage VPN Users](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/manage-users.md). Please note: After editing the VPN config files, you must also comment out the relevant sections in `/opt/src/run.sh`, to avoid losing your changes on container restart. -Clients are set to use [Google Public DNS](https://developers.google.com/speed/public-dns/) when the VPN connection is active. If another DNS provider is preferred, replace `8.8.8.8` and `8.8.4.4` in both `/etc/ppp/options.xl2tpd` and `/etc/ipsec.conf`. Then restart the Docker container. +Clients are set to use [Google Public DNS](https://developers.google.com/speed/public-dns/) when the VPN connection is active. If another DNS provider is preferred, replace all `8.8.8.8` and `8.8.4.4` in `/opt/src/run.sh` with the new servers. Then restart the Docker container. ## Advanced usage @@ -142,7 +142,7 @@ cd docker-ipsec-vpn-server docker build -t hwdsl2/ipsec-vpn-server . ``` -or use this if not modifying the source code: +Or use this if not modifying the source code: ``` docker build -t hwdsl2/ipsec-vpn-server github.com/hwdsl2/docker-ipsec-vpn-server.git