diff --git a/README-zh.md b/README-zh.md index a03d3e2..b54dfe3 100644 --- a/README-zh.md +++ b/README-zh.md @@ -52,7 +52,9 @@ 这也包括各种云计算服务中的 Linux 虚拟机,比如 Google Compute Engine, Amazon EC2, Microsoft Azure, IBM SoftLayer, VMware vCloud Air, Rackspace, DigitalOcean, Vultr 和 Linode。 - Deploy to Azure + Deploy to Azure + + Install on DigitalOcean **» 我想建立并使用自己的 VPN ,但是没有可用的服务器** diff --git a/README.md b/README.md index 331101e..8a500c3 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,9 @@ A dedicated server or Virtual Private Server (VPS), freshly installed with one o This also includes Linux VMs in public clouds such as Google Compute Engine, Amazon EC2, Microsoft Azure, IBM SoftLayer, VMware vCloud Air, Rackspace, DigitalOcean, Vultr and Linode. - Deploy to Azure + Deploy to Azure + + Install on DigitalOcean **» I want to run my own VPN but don't have a server for that** @@ -93,7 +95,7 @@ VPN_USER='your_vpn_username' \ VPN_PASSWORD='your_vpn_password' sh vpnsetup.sh ``` -For installation on DigitalOcean, check out this step-by-step guide by Tony Tran. +For install on DigitalOcean, you may refer to this step-by-step guide by Tony Tran. **Note:** If unable to download via `wget`, you may also open vpnsetup.sh (or vpnsetup_centos.sh) and click the **`Raw`** button. Press `Ctrl-A` to select all, `Ctrl-C` to copy, then paste into your favorite editor. diff --git a/azure/README-zh.md b/azure/README-zh.md index e1eeeea..ee177f3 100644 --- a/azure/README-zh.md +++ b/azure/README-zh.md @@ -15,7 +15,7 @@ 请点击以下按钮开始: - Deploy to Azure + Deploy to Azure 屏幕截图: diff --git a/azure/README.md b/azure/README.md index 736022c..616206d 100644 --- a/azure/README.md +++ b/azure/README.md @@ -15,7 +15,7 @@ Customizable with the following options: Press this button to start: - Deploy to Azure + Deploy to Azure Screenshot: diff --git a/docs/clients-zh.md b/docs/clients-zh.md index 398aebf..788525e 100644 --- a/docs/clients-zh.md +++ b/docs/clients-zh.md @@ -160,10 +160,17 @@ VPN 连接成功后,网络状态图标上会出现 VPN 指示。最后你可 1. 在文件 `xl2tpd.conf` 中,删除这一行 `# your vpn server goes here`。 1. 在文件 `options.l2tpd.client` 中,将 `require-mschap-v2` 换成 `require-chap`。 +1. 替换 `sudo echo "c XXX-YOUR-CONNECTION-NAME-XXX " > /var/run/xl2tpd/l2tp-control` 为: + + ``` + echo "c XXX-YOUR-CONNECTION-NAME-XXX " | sudo tee /var/run/xl2tpd/l2tp-control + ``` + 1. 替换最后一个命令 `sudo route add -net default gw ` 为: -``` -sudo route add default dev ppp0 -``` + + ``` + sudo route add default dev ppp0 + ``` 如果遇到错误,请检查 `ifconfig` 的输出并将上面的 `ppp0` 换成 `ppp1`,等等。 @@ -211,7 +218,7 @@ sudo route del default dev ppp0 1. 单击 **允许使用这些协议**。选中 "质询握手身份验证协议 (CHAP)" 复选框,并且取消选中所有其它项。 1. 单击 **确定** 保存 VPN 连接的详细信息。 -![Select only CHAP in VPN connection properties-2](https://cloud.githubusercontent.com/assets/5104323/16026263/cbda945a-3192-11e6-96a6-ff18c5dd9a48.png) +![Select CHAP in VPN connection properties](images/vpn-properties-zh.png) ### 其它错误 diff --git a/docs/clients.md b/docs/clients.md index e0790d7..01b7de0 100644 --- a/docs/clients.md +++ b/docs/clients.md @@ -160,10 +160,17 @@ Follow the steps in " > /var/run/xl2tpd/l2tp-control` with: + + ``` + echo "c XXX-YOUR-CONNECTION-NAME-XXX " | sudo tee /var/run/xl2tpd/l2tp-control + ``` + 1. Replace the last command `sudo route add -net default gw ` with: -``` -sudo route add default dev ppp0 -``` + + ``` + sudo route add default dev ppp0 + ``` If there is an error, check the output of `ifconfig` and replace `ppp0` above with `ppp1`, etc. @@ -211,7 +218,7 @@ To fix this error, please follow these steps: 1. Click **Allow these protocols**. Check "Challenge Handshake Authentication Protocol (CHAP)" and uncheck all others. 1. Click **OK** to save the VPN connection details. -![Select only CHAP in VPN connection properties](https://cloud.githubusercontent.com/assets/5104323/16024310/b113e9b6-3186-11e6-9e03-12f5455487ba.png) +![Select CHAP in VPN connection properties](images/vpn-properties.png) ### Other Errors diff --git a/docs/images/azure-deploy-button.png b/docs/images/azure-deploy-button.png new file mode 100644 index 0000000..e81f2c1 Binary files /dev/null and b/docs/images/azure-deploy-button.png differ diff --git a/docs/images/do-install-button.png b/docs/images/do-install-button.png new file mode 100644 index 0000000..375959e Binary files /dev/null and b/docs/images/do-install-button.png differ diff --git a/docs/images/vpn-properties-zh.png b/docs/images/vpn-properties-zh.png new file mode 100644 index 0000000..d8e9cda Binary files /dev/null and b/docs/images/vpn-properties-zh.png differ diff --git a/docs/images/vpn-properties.png b/docs/images/vpn-properties.png new file mode 100644 index 0000000..31b3a68 Binary files /dev/null and b/docs/images/vpn-properties.png differ