Nobus VPN Configuration

Securely gain entry to your networks and onsite IT infrastructure from any place. nobus DaaS allows bridging with an onsite IT infrastructure with an encrypted VPN (MPLS or Internet) connection with Multiple ISPs locally with our Nobus Fast Transit (NFT) service.

You can get running with our custom vpn images available on linux distributions. See Nobus Cloud VPN for more information.

Creating a Site-to-Site connection in the Nobus Dashboard

A Site-to-Site VPN gateway connection is used to connect your on-premises network to a Nobus virtual network over an IPsec/IKE (IKEv1 or IKEv2) VPN tunnel. This type of connection requires a VPN device located on-premises that has an external public IP address assigned to it. See VPN gateway for more information.

You can go through the Nobus Dashboard to create a Site-to-Site VPN gateway connection from your on-premises network to the virtualNet.

Make sure that you have met the following requirement before starting your configuration:

  • Make sure you have a compatible VPN device and someone who is able to configure it. For more information about compatible VPN devices and device configuration, see About VPN Devices.
  • Ensure that an external public IPv4 address for your VPN device is also available.
  • You might need to partner with someone who can provide information about IP address ranges located in your on-premises network configuration if you are not conversant with it. and specify the IP address range prefixes that Nobus will route to your on-premises location during configuration.

Make sure that no subnets of your on-premises network are the same as the virtual network subnets that you are connecting to else traffic will route in a wrong way.

Example

The examples in this article use the following values. You can use these values to create a test environment, or refer to them to better understand the examples in this article.

  • Virtual network name: virtualNet1
  • Address Space: 10.10.10.0/16
  • Availability Zone:Az1
  • Subnet: : 10.10.10.0/24
  • Gateway subnet address range: 10.10.200.0/25
  • Virtual network gateway name: ExternalGW
  • Public IP address name: Pubnet1
  • VPN type: Route
  • Connection type: Site-to-site (IPsec)
  • Gateway type: VPN
  • Local network gateway name: Site1
  • Connection name: Conn1-Site1
  • Preshared key: We use "SecretValue" in this example but, you can use what suite your VPN hardware. Alternatively you can generate the key using openssl suite. which ever method you adopt, ensure that the values are the same on both sides of the connection.

Step 1: Create a virtual network

You can create a virtual network through the Nobus Dashboard.

  1. Sign in to the Nobus Dashboard.

  2. Log in to the dashboard.

  3. Select the appropriate project from the drop down menu at the top left.

  4. On the Project tab, open the Network tab and click Networks category.

  5. Click Create Network.

  6. In the Create Network dialog box, specify the following values.

    Network tab

    Network Name: Specify a name to identify the network.

    Shared: Share the network with other projects. Non admin users are not allowed to set shared option.

    Admin State: The state to start the network in.

    Create Subnet: Select this check box to create a subnet

    You do not have to specify a subnet when you create a network, but if you do not specify a subnet, the network can not be attached to an instance.

    Subnet tab

    Subnet Name: Specify a name for the subnet.

    Network Address: Specify the IP address for the subnet.

    IP Version: Select IPv4 or IPv6.

    Gateway IP: Specify an IP address for a specific gateway. This parameter is optional.

    Disable Gateway: Select this check box to disable a gateway IP address.

    Subnet Details tab

    Enable DHCP: Select this check box to enable DHCP.

    Allocation Pools: Specify IP address pools.

    DNS Name Servers: Specify a name for the DNS server.

    Host Routes: Specify the IP address of host routes.

  7. On the Security tab, leave the default values:

  8. Click Create.

    The dashboard shows the network on the Networks tab.

Step 2: Create the Virtual Router

  1. Log in to the dashboard.

  2. Select the appropriate project from the drop down menu at the top left.

  3. On the Project tab, open the Network tab and click Routers category.

  4. Click Create Router.

  5. In the Create Router dialog box, specify a name for the router and External Network, and click Create Router.

    The new router is now displayed in the Routers tab.

Step 3: Create a VPN Gateway

In this step, you create the virtual network gateway for your virtualNet.

The virtual network gateway uses specific subnet called the gateway subnet. The gateway subnet is part of the virtual network IP address range that you specify when configuring your virtual network. It contains the IP addresses that the virtual network gateway resources and services use.

Example settings

  • Instance details -- Zone: Az1
  • Virtual Network -- Virtual network: virtualNet1
  • Instance details -- Name: ExternalGW
  • Instance details -- Gateway type: VPN
  • Instance details -- VPN type: Route
  • Virtual Network -- Gateway subnet address range: 10.10.200.0/25
  • Public IP address -- Public IP address name: Pubnet1
    1. On the Project tab, open the Network tab and click Routers category.

    2. Click the new router’s Set Gateway button.

    3. In the External Network field, specify the network to which the router will connect, and then click Set Gateway.

Step 4: Connect the Private Network to Virtual Router

Follow the steps below to connect a private network to the newly created virtual router:

  1. On the Routers tab, click the name of the router.

  2. On the Router Details page, click the Interfaces tab, then click Add Interface.

  3. In the Add Interface dialog box, select a Subnet.

    Optionally, in the Add Interface dialog box, set an IP Address for the router interface for the selected subnet.

    The Router Name and Router ID fields are automatically updated.

  4. Click Add Interface.

You have successfully created the router. You can view the new topology from the Network Topology tab.

Step 5: Create Your Instance

  1. Log in to the Nobus Management Dashboard
  2. On the Project tab, open the Compute tab and click Instances

  3. Click Launch Instance.

  4. In the Launch Instance dialog box, specify the following values:

    Details tab

    Instance Name

    Assign a name to the VPN Server.

    This becomes the initial host name of the VPN server.

    Description

    You can assign a brief description of the virtual machine.

    Availability Zone

    Source tab

    Instance Boot Source
    Boot from image

    If you choose this option, a new field for Image Name displays. select ethier of the ubuntu or centos ipsec vpn custom image:

    Flavor tab

    Flavor

    Specify the size of the instance to launch.

    The flavor is selected based on the size of the image selected for launching an instance.

    Networks tab

    Selected the Virtual Network Names created earlier

    To add an existing network to the instance, click the + in the Available field.

    Security Groups tab

    Security Groups

    Associate the security groups to the instance.

    Security groups are a kind of cloud firewall that define which inbound and outbound taffic to and from the instance.

    Also assign the default security group to the instance.

    Key Pair tab

    Key Pair

    Specify a key pair.

    When prompted for a key pair, select Choose an existing key pair, then select the key pair that you created when setting up.

    Alternatively, you can create a new key pair. Select Create a new key pair, enter a name for the key pair, and then choose Download Key Pair. This is the only chance for you to save the private key file, so be sure to download it. Save the private key file in a safe place. You'll need to provide the name of your key pair when you launch the instance and the corresponding private key each time you connect to the instance.

    If the image uses a static root password or a static key set although none is recommended by nobus, you do not need to provide a key pair to launch the instance.

    other options are optional

  5. Click Launch Instance.

    To launch your instance

If you did not provide a key pair, security groups, or rules, users can access the instance only from inside the cloud through the instance console. Even pinging the instance is not possible without an ICMP rule configured.

For more information about security groups, see Security group rule and reference

Important! Avoid associating a security group to the gateway subnet.

For information about connecting to your instance, see connecting to your instance via ssh

Terminate Instances

Choose the FCS instance, select "Actions", then "Instance State", and "Terminate". The FCS instance and associated data will be deleted

Step 6: Create and Associate Floating IP to your VPN Server

Log in to the Nobus Management Dashboard

Goto Project > Network > Floating IPs

Click on the “ALLOCATE IP TO PROJECT” button. On the new window, select a Pool, provide description and click on “ALLOCATE IP“.

Associate the reserved floating IP address with the VPN sever.

Once the floating IP address is reserved, we can associate it with an instance.

Goto Project > Compute > Instances

Select the VPN server and under actions, select “ASSOCIATE FLOATING IP”

Pick a floating IP, and the port to associate.

click “ASSOCIATE”.

Step 7: Configure your VPN device

Site-to-Site connections to an on-premises network require a VPN device. In this step, you configure your VPN device. When configuring your VPN device, you need the following:

  • A shared key. This is the same shared key that you specify when creating your Site-to-Site VPN connection. In our examples, we use a basic shared key. We recommend that you generate a more complex key to use.
  • The Public IP address of your virtual network gateway. You can view the public IP address by using the Nobus Dashboard. To find the Public IP address of your VPN gateway using the Nobus Dashboard, goto the your vpn server and click Overview

If you are having trouble connecting to an instance over your VPN connection, see the following:

  • Ensure that your VPN Server is running successfully.
  • Make sure that you are connecting to the private IP address for the Server.
  • If you can connect to the Server using the private IP address, but not the computer name, Make sure that DNS is configured properly.

Available VPN NMI