警告
NOTICE: THIS DOCUMENTATION SITE HAS BEEN SUPERSEDED.
For the current documentation site goto: http://docs.cloudstack.apache.org
CloudStack account owners can create virtual private networks (VPN) to access their virtual machines. If the guest network is instantiated from a network offering that offers the Remote Access VPN service, the virtual router (based on the System VM) is used to provide the service. CloudStack provides a L2TP-over-IPsec-based remote access VPN service to guest virtual networks. Since each network gets its own virtual router, VPNs are not shared across the networks. VPN clients native to Windows, Mac OS X and iOS can be used to connect to the guest networks. The account owner can create and manage users for their VPN. CloudStack does not use its account database for this purpose but uses a separate table. The VPN user database is shared across all the VPNs created by the account owner. All VPN users get access to all VPNs created by the account owner.
注解
确保不是所有的网络流量走VPN。也就是说,用于配置VPN的route不是唯一用于该guest network,也不承担全部的网络流量。
为云设置VPN:
为特定的网络启用VPN:
使用用户或管理员身份登录到CloudStack用户界面。
在左边导航栏,点击网络。
选择你要操作的网络名称
点击查看IP地址。
点击一个显示的IP地址名称。
点击启用VPN按钮。|vpn-icon.png|
IPsec密钥将显示在弹出的窗口中。
在VPC中启用远程访问VPN,任何VPC以外的VPN客户端都可以使用远程VPN连接访问VPC中的VM。VPN客户端可以在除了用户启用了远程访问VPN服务的VPC中的任何位置。
为VPC开启VPN:
使用用户或管理员身份登录到CloudStack用户界面。
在左边导航栏,点击网络。
在选择视图中,选择VPC。
此帐号创建的所有VPC将显示在页面中。
点击VPC的配置按钮。
对于每一个层,会显示以下选项。
显示以下路由器信息:
在路由器节点中,选择公共IP地址。
系统显示IP地址页面。
点击源NAT IP地址。
点击启用VPN按钮。|vpn-icon.png|
点击OK确认。IPsec密钥将显示在弹出的窗口中。
现在,需要添加VPN用户。