You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>.
150
+
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>:
151
+
152
+
```bash
153
+
sudo bash /opt/src/ikev2.sh --auto
154
+
```
157
155
158
156
**Option 2:** Edit the script and provide your own VPN credentials:
159
157
@@ -199,7 +197,11 @@ sudo sh vpn.sh
199
197
200
198
**Note:** A secure IPsec PSK should consist of at least 20 random characters.
201
199
202
-
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>.
200
+
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>:
201
+
202
+
```bash
203
+
sudo bash /opt/src/ikev2.sh --auto
204
+
```
203
205
204
206
**Option 3:** Define your VPN credentials as environment variables:
205
207
@@ -252,7 +254,11 @@ sh vpn.sh
252
254
```
253
255
</details>
254
256
255
-
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>.
257
+
After successful installation, it is recommended to <ahref="docs/ikev2-howto.md"target="_blank">set up IKEv2</a>:
258
+
259
+
```bash
260
+
sudo bash /opt/src/ikev2.sh --auto
261
+
```
256
262
257
263
**Note:** If unable to download via `wget`, you may also open <ahref="vpnsetup.sh"target="_blank">vpnsetup.sh</a>, <ahref="vpnsetup_centos.sh"target="_blank">vpnsetup_centos.sh</a> or <ahref="vpnsetup_amzn.sh"target="_blank">vpnsetup_amzn.sh</a>, and click the **`Raw`** button on the right. Press `Ctrl-A` to select all, `Ctrl-C` to copy, then paste into your favorite editor.
258
264
@@ -364,6 +370,13 @@ When connecting using `IPsec/XAuth ("Cisco IPsec")` or `IKEv2` mode, the VPN ser
364
370
365
371
You may use these internal VPN IPs for communication. However, note that the IPs assigned to VPN clients are dynamic, and firewalls on client devices may block such traffic.
366
372
373
+
Client-to-client traffic is allowed by default. If you want to \*disallow\* client-to-client traffic, run the following commands on the VPN server. Add them to `/etc/rc.local` to persist after reboot.
iptables -I FORWARD 3 -s 192.168.43.0/24 -d 192.168.43.0/24 -j DROP
378
+
```
379
+
367
380
### Modify IPTables rules
368
381
369
382
If you want to modify the IPTables rules after install, edit `/etc/iptables.rules` and/or `/etc/iptables/rules.v4` (Ubuntu/Debian), or `/etc/sysconfig/iptables` (CentOS/RHEL). Then reboot your server.
Copy file name to clipboardExpand all lines: docs/clients-xauth.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
*Read this in other languages: [English](clients-xauth.md), [简体中文](clients-xauth-zh.md).*
4
4
5
-
**Note:** You may also [set up IKEv2](ikev2-howto.md) (recommended), or connect using [IPsec/L2TP mode](clients.md).
5
+
**Note:** You may also connect using [IKEv2](ikev2-howto.md) (recommended) or [IPsec/L2TP](clients.md) mode.
6
6
7
7
After <ahref="https://github.com/hwdsl2/setup-ipsec-vpn"target="_blank">setting up your own VPN server</a>, follow these steps to configure your devices. IPsec/XAuth ("Cisco IPsec") is natively supported by Android, iOS and OS X. There is no additional software to install. Windows users can use the free <ahref="https://www.shrew.net/download/vpn"target="_blank">Shrew Soft client</a>. In case you are unable to connect, first check to make sure the VPN credentials were entered correctly.
8
8
@@ -18,7 +18,7 @@ IPsec/XAuth mode is also called "Cisco IPsec". This mode is generally **faster t
18
18
19
19
## Windows
20
20
21
-
**Note:** You may also [set up IKEv2](ikev2-howto.md) (recommended), or connect using [IPsec/L2TP mode](clients.md). No additional software is required.
21
+
**Note:** You may also connect using [IKEv2](ikev2-howto.md) (recommended) or [IPsec/L2TP](clients.md) mode. No additional software is required.
22
22
23
23
1. Download and install the free <ahref="https://www.shrew.net/download/vpn"target="_blank">Shrew Soft VPN client</a>. When prompted during install, select **Standard Edition**.
24
24
**Note:** This VPN client does NOT support Windows 10.
在成功 <ahref="../README-zh.md"target="_blank">搭建自己的 VPN 服务器</a> 之后,按照下面的步骤来配置你的设备。IPsec/L2TP 在 Android, iOS, OS X 和 Windows 上均受支持,无需安装额外的软件。设置过程通常只需要几分钟。如果无法连接,请首先检查是否输入了正确的 VPN 登录凭证。
0 commit comments