diff --git a/README-zh.md b/README-zh.md index 0353b43..4f41c65 100644 --- a/README-zh.md +++ b/README-zh.md @@ -121,6 +121,8 @@ DigitalOcean 用户可以参考这个故障排除。 同一个 VPN 账户可以在你的多个设备上使用。但是由于 IPsec 协议的局限性,如果这些设备在同一个 NAT 后面(比如家用路由器),它们无法同时连接到 VPN 服务器。 diff --git a/README.md b/README.md index 12332e3..2dbe8d3 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ Enjoy your very own VPN! :sparkles::tada::rocket::sparkles: ## Important notes +*Read this in other languages: [English](README.md#important-notes), [简体中文](README-zh.md#重要提示).* + **Windows and Android users**: If you get an error when trying to connect, see Troubleshooting. The same VPN account can be used by your multiple devices. However, due to a limitation of the IPsec protocol, if these devices are behind the same NAT (e.g. home router), they cannot simultaneously connect to the VPN server. diff --git a/docs/clients-zh.md b/docs/clients-zh.md index 4333fb1..b79a71a 100644 --- a/docs/clients-zh.md +++ b/docs/clients-zh.md @@ -265,7 +265,7 @@ ipsec up myvpn 开始 L2TP 连接 (替换为你自己的 VPN 用户名和密码): ``` -echo "c myvpn " > /var/run/xl2tpd/l2tp-control +echo "c myvpn YOUR_USERNAME YOUR_PASSWORD" > /var/run/xl2tpd/l2tp-control ``` 运行 `ifconfig` 并且检查输出。现在你应该看到一个新的网络接口 `ppp0`。 @@ -275,14 +275,14 @@ echo "c myvpn " > /var/run/xl2tpd/l2tp-control ip route ``` -在输出中查找以下行: `default via X.X.X.X ...`。记下这个网关 IP,并且在下面的命令中使用。 +在输出中查找以下行: `default via X.X.X.X ...`。记下这个网关 IP,并且在下面的两个命令中使用。 从新的默认路由中排除你的 VPN 服务器 IP (替换为你自己的值): ``` route add YOUR_VPN_SERVER_IP gw X.X.X.X ``` -如果你的 VPN 客户端是一个远程服务器,则必须从新的默认路由中排除你本地电脑的公有 IP,以避免 SSH 会话被断开 (替换为你自己的值,可以在 https://www.ipchicken.com 获取): +如果你的 VPN 客户端是一个远程服务器,则必须从新的默认路由中排除你本地电脑的公有 IP,以避免 SSH 会话被断开 (替换为你自己的公有 IP,可在 这里 查看): ``` route add YOUR_LOCAL_PC_PUBLIC_IP gw X.X.X.X ``` @@ -325,6 +325,8 @@ ipsec down myvpn ## 故障排除 +*其他语言版本: [English](clients.md#troubleshooting), [简体中文](clients-zh.md#故障排除).* + ### Windows 错误 809 > 无法建立计算机与 VPN 服务器之间的网络连接,因为远程服务器未响应。 diff --git a/docs/clients.md b/docs/clients.md index 44ef7e1..b991939 100644 --- a/docs/clients.md +++ b/docs/clients.md @@ -265,7 +265,7 @@ ipsec up myvpn Start the L2TP connection (replace with your actual VPN username and password): ``` -echo "c myvpn " > /var/run/xl2tpd/l2tp-control +echo "c myvpn YOUR_USERNAME YOUR_PASSWORD" > /var/run/xl2tpd/l2tp-control ``` Run `ifconfig` and check the output. You should now see a new interface `ppp0`. @@ -275,14 +275,14 @@ Check your existing default route: ip route ``` -Find this line in the output: `default via X.X.X.X ...`. Write down this gateway IP for use in the commands below. +Find this line in the output: `default via X.X.X.X ...`. Write down this gateway IP for use in the two commands below. Exclude your VPN server's IP from the new default route (replace with actual value): ``` route add YOUR_VPN_SERVER_IP gw X.X.X.X ``` -If your VPN client is a remote server, you must also exclude your Local PC's public IP from the new default route, to prevent your SSH session from being disconnected (replace with actual value, found by searching "my ip" on Google): +If your VPN client is a remote server, you must also exclude your Local PC's public IP from the new default route, to prevent your SSH session from being disconnected (replace with your actual public IP from here): ``` route add YOUR_LOCAL_PC_PUBLIC_IP gw X.X.X.X ``` @@ -324,6 +324,8 @@ If your system provides the `strongswan` package, refer to the two sections abov ## Troubleshooting +*Read this in other languages: [English](clients.md#troubleshooting), [简体中文](clients-zh.md#故障排除).* + ### Windows Error 809 > The network connection between your computer and the VPN server could not be established because the remote server is not responding.