1
0
mirror of synced 2025-01-31 12:32:20 +03:00

Minor corrections to docs

This commit is contained in:
hwdsl2 2016-05-11 00:26:25 -05:00
parent 83b279934d
commit d842888f69
2 changed files with 26 additions and 17 deletions

View File

@ -2,21 +2,21 @@
*Read this in other languages: [English](clients.md), [简体中文](clients-zh.md).* *Read this in other languages: [English](clients.md), [简体中文](clients-zh.md).*
注: 本说明是在 <a href="https://github.com/jlund/streisand" target="_blank">Streisand</a> 项目文档的基础上修改。该项目由 <a href="https://github.com/jlund" target="_blank">Joshua Lund</a> 和其他志愿者维护。 授权协议: GPLv3 注: 本说明是在 <a href="https://github.com/jlund/streisand" target="_blank">Streisand</a> 项目文档的基础上修改。该项目由 <a href="https://github.com/jlund" target="_blank">Joshua Lund</a> 和其他志愿者维护。 授权协议: [GPLv3](#授权协议)。
在成功<a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">搭建自己的VPN服务器</a>之后你可以按照下面的步骤来配置你的设备。IPsec/L2TP 在 Android, iOS, OS X 和 Windows 上均受支持,无需安装额外的软件。设置过程通常只需要几分钟。如果无法连接,请首先检查是否输入了正确的用户名和密码。 在成功<a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">搭建自己的VPN服务器</a>之后你可以按照下面的步骤来配置你的设备。IPsec/L2TP 在 Android, iOS, OS X 和 Windows 上均受支持,无需安装额外的软件。设置过程通常只需要几分钟。如果无法连接,请首先检查是否输入了正确的用户名和密码。
--- ---
* 平台名称 * 平台名称
* [Windows](#windows) * [Windows](#windows)
* [OS X](#osx) * [OS X](#os-x)
* [Android](#android) * [Android](#android)
* [iOS](#ios) * [iOS](#ios)
* [Chromebook](#chromebook) * [Chromebook](#chromebook)
<a name="windows"></a>
### Windows ### ### Windows ###
1. 单击开始菜单,进入控制面板。 1. 单击开始菜单,选择控制面板。
1. 进入 **网络和Internet** 部分。
1. 单击 **网络与共享中心** 1. 单击 **网络与共享中心**
1. 单击 **设置新的连接或网络** 1. 单击 **设置新的连接或网络**
1. 选择 **连接到工作区**,然后单击**下一步**。 1. 选择 **连接到工作区**,然后单击**下一步**。
@ -41,7 +41,6 @@
要连接到 VPN只需在系统托盘中的无线/网络图标上单击右键,选择新的 VPN 连接,然后单击 **连接** 要连接到 VPN只需在系统托盘中的无线/网络图标上单击右键,选择新的 VPN 连接,然后单击 **连接**
<a name="osx"></a>
### OS X ### ### OS X ###
1. 打开系统偏好设置并转到网络部分。 1. 打开系统偏好设置并转到网络部分。
1. 在窗口左下角单击 **+** 按钮。 1. 在窗口左下角单击 **+** 按钮。
@ -62,7 +61,6 @@
要连接到 VPN你可以使用菜单栏中的 VPN 图标,或者在系统偏好设置的网络部分选择 VPN并单击 **连接** 要连接到 VPN你可以使用菜单栏中的 VPN 图标,或者在系统偏好设置的网络部分选择 VPN并单击 **连接**
<a name="android"></a>
### Android ### ### Android ###
1. 启动 **设置** 应用程序。 1. 启动 **设置** 应用程序。
1. 在 **无线和网络** 部分单击 **更多...** 1. 在 **无线和网络** 部分单击 **更多...**
@ -83,7 +81,6 @@ Android 6 (Marshmallow) 用户需要编辑 VPN 服务器上的 `/etc/ipsec.conf`
VPN 连接成功后,会在通知栏显示图标。 VPN 连接成功后,会在通知栏显示图标。
<a name="ios"></a>
### iOS ### ### iOS ###
1. 进入设置 -> 通用 -> VPN。 1. 进入设置 -> 通用 -> VPN。
1. 单击 **添加VPN配置...** 1. 单击 **添加VPN配置...**
@ -99,12 +96,11 @@ VPN 连接成功后,会在通知栏显示图标。
VPN 连接成功后,会在通知栏显示图标。 VPN 连接成功后,会在通知栏显示图标。
<a name="chromebook"></a>
### Chromebook ### ### Chromebook ###
1. 如果你尚未登录 Chromebook请先登录。 1. 如果你尚未登录 Chromebook请先登录。
1. 单击状态区(其中显示帐户头像)。 1. 单击状态区(其中显示帐户头像)。
1. 单击 **设置** 1. 单击 **设置**
1. 在 **互联网连接** 部分,单击**添加连接**。 1. 在 **互联网连接** 部分,单击 **添加连接**
1. 单击 **添加 OpenVPN / L2TP** 1. 单击 **添加 OpenVPN / L2TP**
1. 在 **服务器主机名** 字段中输入`你的 VPN 服务器 IP` 1. 在 **服务器主机名** 字段中输入`你的 VPN 服务器 IP`
1. 在 **服务名称** 字段中输入任意内容。 1. 在 **服务名称** 字段中输入任意内容。
@ -115,3 +111,12 @@ VPN 连接成功后,会在通知栏显示图标。
1. 单击 **连接** 1. 单击 **连接**
VPN 连接成功后,你会看到网络状态图标被 VPN 图标覆盖。 VPN 连接成功后,你会看到网络状态图标被 VPN 图标覆盖。
## 授权协议
版权所有 (C) 2016 Lin Song
基于 <a href="https://github.com/jlund/streisand/blob/master/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2" target="_blank">Joshua Lund 的工作</a> (版权所有 2014-2016)
本程序为自由软件,在自由软件联盟发布的<a href="https://www.gnu.org/licenses/gpl.html" target="_blank"> GNU 通用公共许可协议</a>的约束下,你可以对其进行再发布及修改。协议版本为第三版或(随你)更新的版本。
我们希望发布的这款程序有用但不保证甚至不保证它有经济价值和适合特定用途。详情参见GNU通用公共许可协议。

View File

@ -2,23 +2,22 @@
*Read this in other languages: [English](clients.md), [简体中文](clients-zh.md).* *Read this in other languages: [English](clients.md), [简体中文](clients-zh.md).*
Note: These instructions were adapted from the <a href="https://github.com/jlund/streisand" target="_blank">Streisand</a> project by <a href="https://github.com/jlund" target="_blank">Joshua Lund</a> and contributors. License: GPLv3 Note: These instructions were adapted from the <a href="https://github.com/jlund/streisand" target="_blank">Streisand</a> project by <a href="https://github.com/jlund" target="_blank">Joshua Lund</a> and contributors. License: [GPLv3](#license).
After <a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">setting up your own VPN server</a>, follow these steps to configure your devices. IPsec/L2TP is natively supported by Android, iOS, OS X, and Windows. There is no additional software to install. Setup should only take a few minutes. In case you are unable to connect, first check to make sure the VPN credentials were entered correctly. After <a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">setting up your own VPN server</a>, follow these steps to configure your devices. IPsec/L2TP is natively supported by Android, iOS, OS X, and Windows. There is no additional software to install. Setup should only take a few minutes. In case you are unable to connect, first check to make sure the VPN credentials were entered correctly.
--- ---
* Platforms * Platforms
* [Windows](#windows) * [Windows](#windows)
* [OS X](#osx) * [OS X](#os-x)
* [Android](#android) * [Android](#android)
* [iOS](#ios) * [iOS](#ios)
* [Chromebook](#chromebook) * [Chromebook](#chromebook)
<a name="windows"></a>
### Windows ### ### Windows ###
1. Click on the Start Menu and go to the Control Panel. 1. Click on the Start Menu and go to the Control Panel.
1. Go to the **Network and Internet** section. 1. Go to the **Network and Internet** section.
1. Click **View network status and tasks**. 1. Click **Network and Sharing Center**.
1. Click **Set up a new connection or network**. 1. Click **Set up a new connection or network**.
1. Select **Connect to a workplace** and click **Next**. 1. Select **Connect to a workplace** and click **Next**.
1. Click **Use my Internet connection (VPN)**. 1. Click **Use my Internet connection (VPN)**.
@ -42,7 +41,6 @@ After <a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">settin
To connect to the VPN, simply right-click on the wireless/network icon in your system tray, select the new VPN connection, and click **Connect**. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`". To connect to the VPN, simply right-click on the wireless/network icon in your system tray, select the new VPN connection, and click **Connect**. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
<a name="osx"></a>
### OS X ### ### OS X ###
1. Open System Preferences and go to the Network section. 1. Open System Preferences and go to the Network section.
1. Click the **+** button in the lower-left corner of the window. 1. Click the **+** button in the lower-left corner of the window.
@ -63,7 +61,6 @@ To connect to the VPN, simply right-click on the wireless/network icon in your s
You can connect to the VPN using the VPN icon in the menu bar, or by selecting the VPN in the Network section of System Preferences and choosing **Connect**. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`". You can connect to the VPN using the VPN icon in the menu bar, or by selecting the VPN in the Network section of System Preferences and choosing **Connect**. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
<a name="android"></a>
### Android ### ### Android ###
1. Launch the **Settings** application. 1. Launch the **Settings** application.
1. Tap **More...** in the **Wireless & Networks** section. 1. Tap **More...** in the **Wireless & Networks** section.
@ -84,7 +81,6 @@ Note for Android 6 (Marshmallow) users: On the VPN server, edit the file `/etc/i
Once connected, you will see a VPN icon in the notification bar. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`". Once connected, you will see a VPN icon in the notification bar. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
<a name="ios"></a>
### iOS ### ### iOS ###
1. Go to Settings -> General -> VPN. 1. Go to Settings -> General -> VPN.
1. Tap **Add VPN Configuration...**. 1. Tap **Add VPN Configuration...**.
@ -100,7 +96,6 @@ Once connected, you will see a VPN icon in the notification bar. You can verify
Once connected, you will see a VPN icon in the status bar. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`". Once connected, you will see a VPN icon in the status bar. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
<a name="chromebook"></a>
### Chromebook ### ### Chromebook ###
1. If you haven't already, sign in to your Chromebook. 1. If you haven't already, sign in to your Chromebook.
1. Click the status area, where your account picture appears. 1. Click the status area, where your account picture appears.
@ -116,3 +111,12 @@ Once connected, you will see a VPN icon in the status bar. You can verify that y
1. Click **Connect**. 1. Click **Connect**.
Once connected, you will see a VPN icon overlay on the network status icon. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`". Once connected, you will see a VPN icon overlay on the network status icon. You can verify that your traffic is being routed properly by <a href="https://encrypted.google.com/search?q=my+ip" target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
## License
Copyright (C) 2016 Lin Song
Based on <a href="https://github.com/jlund/streisand/blob/master/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2" target="_blank">the work of Joshua Lund</a> (Copyright 2014-2016)
This program is free software: you can redistribute it and/or modify it under the terms of the <a href="https://www.gnu.org/licenses/gpl.html" target="_blank">GNU General Public License</a> as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.