2017-03-19 22:10:49 -05:00
# 在 Microsoft Azure 上部署
2016-08-10 22:15:11 -05:00
2022-05-21 21:59:03 -05:00
*其他语言版本: [English ](README.md ), [中文 ](README-zh.md )。*
2016-08-10 22:15:11 -05:00
2021-06-04 17:27:21 -05:00
使用这个模板,你可以在 Microsoft Azure Cloud 上快速搭建一个 VPN 服务器 ( [定价细节 ](https://azure.microsoft.com/zh-cn/pricing/details/virtual-machines/ ))。
2016-08-10 22:15:11 -05:00
2017-06-12 02:29:53 -05:00
可根据偏好设置以下选项:
2016-08-10 22:15:11 -05:00
2020-05-03 22:12:17 -05:00
- Username for VPN **and** SSH (用户名)
- Password for VPN **and** SSH (密码)
2017-05-31 14:13:54 -05:00
- IPsec Pre-Shared Key for VPN ( IPsec 预共享密钥)
2022-05-03 22:28:04 -05:00
- Operating System Image ( 操作系统镜像, Ubuntu 22.04/20.04/18.04 或 Debian 9)
2018-05-10 02:57:08 -05:00
- Virtual Machine Size (虚拟机大小,默认值: Standard_B1s)
2016-08-10 22:15:11 -05:00
2019-11-01 21:34:56 -07:00
**注:** \*不要\* 在值中使用这些字符: `\ " '`
2016-09-09 16:45:39 -05:00
请单击以下按钮开始:
2016-08-10 22:15:11 -05:00
2021-06-04 17:27:21 -05:00
[![Deploy to Azure ](../docs/images/azure-deploy-button.png )](https://portal.azure.com/#create/Microsoft .Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fhwdsl2%2Fsetup-ipsec-vpn%2Fmaster%2Fazure%2Fazuredeploy.json)
2017-06-12 02:29:53 -05:00
2020-08-29 00:01:05 -05:00
在完成部署之后, Azure 会有提示。下一步:[配置 VPN 客户端 ](../README-zh.md#下一步 )。
2016-08-10 22:15:11 -05:00
2022-04-05 23:06:01 -05:00
**注:** 在使用 SSH 连接到服务器时,请使用你在部署模板中指定的用户名和密码。如果要添加或者导出 IKEv2 客户端,运行 `sudo ikev2.sh` 。如果你在输入正确的登录凭证后仍然无法使用 SSH 连接到服务器,请参见 [解决与 Azure Linux VM 的 SSH 连接失败、出错或被拒绝的问题 ](https://docs.microsoft.com/zh-cn/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection ) 和/或 [无法 SSH 到 Azure Linux VM, 因为权限太开放 ](https://docs.microsoft.com/zh-cn/troubleshoot/azure/virtual-machines/troubleshoot-ssh-permissions-too-open )。
2022-02-26 18:12:47 -06:00
2016-08-10 22:15:11 -05:00
## 作者
2017-06-12 02:29:53 -05:00
版权所有 (C) 2016 [Daniel Falkner ](https://github.com/derdanu )
2022-01-02 00:09:03 -06:00
版权所有 (C) 2017-2022 [Lin Song ](https://github.com/hwdsl2 )
2016-12-22 10:27:56 -06:00
## 屏幕截图
2022-05-03 22:28:04 -05:00
< details >
< summary >
单击查看屏幕截图。
< / summary >
2016-12-22 10:27:56 -06:00
![Azure Custom Deployment ](custom_deployment_screenshot.png )
2022-05-03 22:28:04 -05:00
< / details >