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
这也包括各种云计算服务中的 Linux 虚拟机,比如 Google Compute Engine, Amazon EC2, Microsoft Azure, IBM SoftLayer, VMware vCloud Air, Rackspace, DigitalOcean, Vultr 和 Linode。
51
53
54
+
<ahref="azure/README-zh.md"target="_blank"><imgsrc="docs/images/azure-deploy-button.png"alt="Deploy to Azure" /></a> <ahref="http://dovpn.carlfriess.com/"target="_blank"><imgsrc="docs/images/do-install-button.png"alt="Install on DigitalOcean" /></a> <ahref="https://www.linode.com/stackscripts/view/37239"target="_blank"><imgsrc="docs/images/linode-deploy-button.png"alt="Deploy to Linode" /></a>
Copy file name to clipboardExpand all lines: README.md
+10-26Lines changed: 10 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# IPsec VPN Server Auto Setup Scripts [](https://travis-ci.org/hwdsl2/setup-ipsec-vpn)
1
+
# IPsec VPN Server Auto Setup Scripts [](https://travis-ci.org/hwdsl2/setup-ipsec-vpn)
2
2
3
3
*Read this in other languages: [English](README.md), [简体中文](README-zh.md).*
4
4
@@ -37,39 +37,22 @@ We will use <a href="https://libreswan.org/" target="_blank">Libreswan</a> as th
The Template will create a fully working VPN server on the Microsoft Azure Cloud. <ahref="https://azure.microsoft.com/en-us/pricing/details/virtual-machines/"target="_blank">Pricing details</a>
45
-
46
-
Customizable with the following options:
47
-
48
-
- Username
49
-
- Password
50
-
- Pre-Shared Key
51
-
- Operating System Image (Debian 8 or Ubuntu 16.04 LTS)
52
-
- The size of the virtual machine. Default: Standard_A0
A newly created <ahref="https://aws.amazon.com/ec2/"target="_blank">Amazon EC2</a> instance, using these AMIs: (See <ahref="https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/#vpnsetup"target="_blank">instructions</a>)
40
+
A newly created <ahref="https://aws.amazon.com/ec2/"target="_blank">Amazon EC2</a> instance, using one of these AMIs:
62
41
- <ahref="https://cloud-images.ubuntu.com/locator/"target="_blank">Ubuntu 16.04 (Xenial), 14.04 (Trusty) or 12.04 (Precise)</a>
- <ahref="https://aws.amazon.com/marketplace/pp/B00O7WM7QW"target="_blank">CentOS 7 (x86_64) with Updates</a>
65
44
- <ahref="https://aws.amazon.com/marketplace/pp/B00NQAYLWO"target="_blank">CentOS 6 (x86_64) with Updates</a>
66
45
46
+
Please refer to <ahref="https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/#vpnsetup"target="_blank">detailed instructions</a> and <ahref="https://aws.amazon.com/ec2/pricing/"target="_blank">EC2 pricing</a>.
47
+
67
48
**-OR-**
68
49
69
-
A dedicated server or Virtual Private Server (VPS), freshly installed with one of the above OS. In addition, Debian 7 (Wheezy) can also be used with <ahref="extras/vpnsetup-debian-7-workaround.sh"target="_blank">this workaround</a>. OpenVZ VPS is not supported, users could instead try <ahref="https://github.com/Nyr/openvpn-install"target="_blank">OpenVPN</a>.
50
+
A dedicated server or Virtual Private Server (VPS), freshly installed with one of the above OS. In addition, Debian 7 (Wheezy) can also be used with <ahref="extras/vpnsetup-debian-7-workaround.sh"target="_blank">this workaround</a>. OpenVZ VPS is NOT supported, users could instead try <ahref="https://github.com/Nyr/openvpn-install"target="_blank">OpenVPN</a>.
70
51
71
52
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.
72
53
54
+
<ahref="azure/README.md"target="_blank"><imgsrc="docs/images/azure-deploy-button.png"alt="Deploy to Azure" /></a> <ahref="http://dovpn.carlfriess.com/"target="_blank"><imgsrc="docs/images/do-install-button.png"alt="Install on DigitalOcean" /></a> <ahref="https://www.linode.com/stackscripts/view/37239"target="_blank"><imgsrc="docs/images/linode-deploy-button.png"alt="Deploy to Linode" /></a>
55
+
73
56
<ahref="https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/#gettingavps"target="_blank">**» I want to run my own VPN but don't have a server for that**</a>
74
57
75
58
:warning:**DO NOT** run these scripts on your PC or Mac! They should only be used on a server!
@@ -108,7 +91,7 @@ VPN_USER='your_vpn_username' \
108
91
VPN_PASSWORD='your_vpn_password' sh vpnsetup.sh
109
92
```
110
93
111
-
For installation on DigitalOcean, check out this <ahref="https://usefulpcguide.com/17318/create-your-own-vpn/"target="_blank">step-by-step guide</a> by Tony Tran.
94
+
DigitalOcean users may refer to this <ahref="https://usefulpcguide.com/17318/create-your-own-vpn/"target="_blank">step-by-step guide</a> by Tony Tran.
112
95
113
96
**Note:** If unable to download via `wget`, you may also open <ahref="vpnsetup.sh"target="_blank">vpnsetup.sh</a> (or <ahref="vpnsetup_centos.sh"target="_blank">vpnsetup_centos.sh</a>) and click the **`Raw`** button. Press `Ctrl-A` to select all, `Ctrl-C` to copy, then paste into your favorite editor.
114
97
@@ -152,7 +135,7 @@ The additional scripts <a href="extras/vpnupgrade.sh" target="_blank">vpnupgrade
152
135
## Bugs & Questions
153
136
154
137
- Got a question? Please first search other people's comments <ahref="https://gist.github.com/hwdsl2/9030462#comments"target="_blank">in this Gist</a> and <ahref="https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/#disqus_thread"target="_blank">on my blog</a>.
155
-
- Ask Libreswan (IPsec) related questions <ahref="https://lists.libreswan.org/mailman/listinfo/swan"target="_blank">on the mailing list</a>, or read these articles: <ahref="https://libreswan.org/wiki/Main_Page"target="_blank">[1]</a> <ahref="https://wiki.gentoo.org/wiki/IPsec_L2TP_VPN_server"target="_blank">[2]</a><ahref="https://wiki.archlinux.org/index.php/L2TP/IPsec_VPN_client_setup"target="_blank">[3]</a> <ahref="https://help.ubuntu.com/community/L2TPServer"target="_blank">[4]</a> <ahref="https://libreswan.org/man/ipsec.conf.5.html"target="_blank">[5]</a>.
138
+
- Ask VPN related questions on these mailing lists: <ahref="https://lists.libreswan.org/mailman/listinfo/swan"target="_blank">[1]</a> <ahref="https://lists.strongswan.org/mailman/listinfo/users"target="_blank">[2]</a>, or read related articles: <ahref="https://libreswan.org/wiki/Main_Page"target="_blank">[1]</a> <ahref="https://wiki.gentoo.org/wiki/IPsec_L2TP_VPN_server"target="_blank">[2]</a> <ahref="https://wiki.archlinux.org/index.php/L2TP/IPsec_VPN_client_setup"target="_blank">[3]</a>.
156
139
- If you found a reproducible bug, open a <ahref="https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue"target="_blank">GitHub Issue</a> to submit a bug report.
157
140
158
141
## Uninstallation
@@ -169,6 +152,7 @@ Please refer to <a href="docs/uninstall.md" target="_blank">Uninstall the VPN</a
*Read this in other languages: [English](README.md), [简体中文](README-zh.md).*
4
+
5
+
This template will create a fully working VPN server on the Microsoft Azure Cloud (<ahref="https://azure.microsoft.com/en-us/pricing/details/virtual-machines/"target="_blank">pricing details</a>).
6
+
7
+
Customizable with the following options:
8
+
9
+
- Username for VPN and SSH
10
+
- Password for VPN and SSH
11
+
- IPsec Pre-Shared Key
12
+
- Operating System Image (Debian 8 or Ubuntu 16.04 LTS)
Copy file name to clipboardExpand all lines: docs/clients-xauth.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,10 @@ To connect to the VPN: Use the menu bar icon, or go to the Network section of Sy
81
81
1. Check the **Save account information** checkbox.
82
82
1. Tap **Connect**.
83
83
84
-
**Note:** Android 6 (Marshmallow) users should edit `/etc/ipsec.conf` on the VPN server and append `,aes256-sha2_256` to both `ike=` and `phase2alg=` lines. Then add a new line `sha2-truncbug=yes` immediately after those. Indent lines with two spaces. When finished, run `service ipsec restart`. (<ahref="https://libreswan.org/wiki/FAQ#Android_6.0_connection_comes_up_but_no_packet_flow"target="_blank">Reference</a>)
84
+
**Note:** If you are using Android 6 (Marshmallow) and unable to connect, try these workarounds:
85
+
86
+
1. Click the settings icon next to your VPN profile. Select "Show Advanced Options" and scroll down to the bottom. If the option "Backwards-compatible mode" exists, enable it and reconnect the VPN. If not, skip to the next step.
87
+
1. Edit `/etc/ipsec.conf` on the VPN server and append `,aes256-sha2_256` to both `ike=` and `phase2alg=` lines. Then add a new line `sha2-truncbug=yes`. Indent lines with two spaces. Save the file and run `service ipsec restart`. (<ahref="https://libreswan.org/wiki/FAQ#Android_6.0_connection_comes_up_but_no_packet_flow"target="_blank">Ref</a>)
85
88
86
89
Once connected, you will see a VPN icon in the notification bar. You can verify that your traffic is being routed properly by <ahref="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`".
0 commit comments