Virtual Appliance is a virtual device alternative to the hardware based Cloudflare One Appliance. These two versions of Cloudflare One Appliance are identical otherwise.
Currently, you can set up Virtual Appliance on VMWare ESXi and Proxmox Virtual Environment. Support for Proxmox is in beta.
In this page you will find instructions on how to configure Cloudflare One Appliance. This guide provides a step-by-step guide for Cloudflare One Appliance initial setup. You can either return here after setting up your Cloudflare One Appliance, or refer to the Maintenance section where you will find instructions on how to update your settings.
Before you can install Virtual Appliance, you need an Enterprise account with Cloudflare WAN. Additionally, you need to have a VMware or Proxmox host with sufficient compute, memory, and storage to run the virtual machine with Virtual Appliance. This includes:
- Intel x86 CPU architecture
- ESXi hypervisor 7.0U1 or higher
- 4 virtual CPUs per virtual appliance (We recommend deployment with a 1:1 virtual CPU to physical core allocation to avoid CPU over contention which will cause packet loss.)
- 8 GB of RAM per virtual appliance
- 8 GB of disk per virtual appliance
- One vSwitch port group or VLAN with access to the Internet (for example, through a WAN)
- One or more vSwitch port group or VLAN that will be the internal LAN
For details on installing ESXi and configuring a virtual machine, refer to VMware's documentation.
For details on installing Virtual environment and configuring a virtual machine, refer to Proxmox documentation.
There are a couple of decisions you need to make when installing your Virtual Appliance. Review the following topics for more information.
You can install up to two instances of Virtual Appliance for redundancy at each of your sites. If one of your devices fails, traffic will fail over to the other, ensuring that you never lose connectivity to that site.
In this type of high availability (HA) configuration, you will choose a reliable LAN interface as the HA link which will be used to monitor the health of the peer connector. HA links can be dedicated links or can be shared with other LAN traffic.
You must decide the type of configuration you want for your site from the beginning: no redundancy or with redundancy. You cannot add redundancy after finishing the configuration of your dashboard settings. If, at a later stage, you decide to enable redundancy, you will need to delete your Virtual Appliance device in the Cloudflare dashboard, and start again.
Do you need a high availability configuration?
If you need a high availability configuration for your premises, refer to About high availability configurations for details and learn how to configure your Virtual Appliance device in this mode.
-
If you do not need a high availability configuration for you premises, check if you need a DHCP or a static IP setup before proceeding to Set up Cloudflare dashboard.
Virtual Appliance uses a DHCP connection at first boot to download your settings and go through the activation process. However, if you need to use a static IP in your Virtual Appliance, and this is a fresh install:
- Connect the machine with your Virtual Appliance VM to a DHCP port with access to the Internet.
- Follow the setup flow and activate your Virtual Appliance device.
- Refer to WAN with a static IP address.
Select the appropriate tab to configure Virtual Appliance on VMWare ESXi or Proxmox Virtual Environment.
1. Obtain the VMWare image
Contact your account team at Cloudflare to obtain the Virtual Appliance OVA package and license keys. The OVA image includes the files required to install and configure the virtual machine (VM) for Virtual Appliance with the appropriate settings. For details, refer to VMWare VMs documentation.
This image can be deployed multiple times to create several instances of a Virtual Appliance, in different locations or on the same ESXi host.
You will consume one license key for each instance created. For example, if you want to deploy 10 Virtual Appliances you should request 10 license keys, and your account team will create 10 Virtual Appliance instances in your Cloudflare dashboard.
2. Deploy the Virtual Appliance on VMware
The following instructions assume you already have VMware ESXi hypervisor installed with sufficient resources. For details, refer to Prerequisites.
- When setting up your VMware ESXi, you need to create port groups for Virtual Appliance. Go to Networking > Port groups, and prepare your vSwitch port groups and/or VLANs for your desired network topology. For example, a simple deployment typically has:
- A WAN port group where the Virtual Appliance will get an IP address (static or DHCP) that has access to the Internet.
- A LAN port group, where the Virtual Appliance will act as default router, and possibly DHCP server.
- A null, or unused, port group for allocating unused virtual interfaces in the Virtual Appliance. You can, for example, create a null port group with the name of
Null port group, and a VLAN ID of999.
- Extract the files in the OVA image provided by your Cloudflare account team. For example:
tar -xvf mconn-2024-1-3.ovaTake note of the folder where you are extracting the files to, as you will need to refer to that folder when creating the VM.
Go to Virtual Machines > Create/Register VM wizard to start deploying the Virtual Appliance.
Select Deploy a virtual machine from an OVF or OVA file > Next.
Choose a descriptive name for your virtual machine.
Upload the files you have extracted from the OVA image. These include
mconn.ovf,mconn.nvram, andmconn.vmdk.Select where you want to save the files extracted from the OVA image > Next.
In Networking mappings, select assignments for your desired topology according to the port groups you set up previously:
- For example, map
eno1port toVM Networkto create your WAN, andeno2toLAN0to act as your LAN port. - Allocate any unused ports to the
nullport group. - Take note of your configuration. You will need this information to configure your network in the Cloudflare dashboard.
- For example, map
In Disk provisioning, select Thin.
Before completing the deployment wizard, disable Power on automatically. This is important so that you can configure the license key prior to boot.
Configure the virtual machine with the license key your account team provided you:
- Select the Virtual Appliance's VM > Settings.
- Go to VM Options > Advanced > Edit Configuration.
- Select Add parameter to add your license key. Scroll down to the last entry (this is where VMware adds the new parameter), and add the following two new entries:
- Key:
guestinfo.cloudflare.identity - Value
<YOUR_LICENSE_KEY>
- Key:
- Select Save to finish configuring your Virtual Appliance.
- Continue setup in your Cloudflare dashboard.
1. Obtain the Virtual Appliance script
Contact your account team at Cloudflare to obtain your license keys and the Virtual Appliance script for Proxmox. The script will set up and configure a Proxmox virtual machine with the appropriate settings for Virtual Appliance. For details on system requirements, refer to Prerequisites.
The script can be deployed multiple times to create several instances of a Virtual Appliance, in different locations or on the same Proxmox host. You will consume one license key for each instance created. For example, if you want to deploy 10 Virtual Appliances you should request 10 license keys, and your account team will create 10 Virtual Appliance instances in your Cloudflare dashboard.
2. Deploy the Virtual Appliance on Proxmox
The following instructions assume you already have Proxmox Virtual Environment installed with sufficient resources. For details, refer to Prerequisites.
- In the terminal prompt of your Proxmox server, load the script provided by your account team. For example:
bash YOUR_SCRIPT. You need elevated privileges to run the script. - You will be prompted to create a new Virtual Appliance. Select yes to proceed.
- Set up your Virtual Appliance name.
- Enter your license key.
- Select the network interface card (NIC) you want to use with Virtual Appliance.
- Select the network bridge that corresponds to the physical network interface card (NIC) on your host machine. This bridge allows the network adapter in the virtual machine to communicate through the NIC in the host, as if it were directly connected to the physical network.
- (Optional) Configure your VLAN setting if needed.
- Finish your configuration.
- The script will apply your settings and configure the virtual machine template for Virtual Appliance.
- In the Hardware settings for the new VM, make sure the hardware settings match the minimum requirements for running Virtual Appliance. Make changes to the RAM and CPU if needed.
- Continue setup in your Cloudflare dashboard.
You need to create a profile for your appliance before connecting it to the Internet.
To create a profile:
- Log in to Cloudflare One, and go to Networks.
- Go to Connectors > Appliances > Create a profile.
- In Name, enter a descriptive name for your Virtual Appliance. Optionally, you can also add a description for it.
- You need to decide if you want to turn on high availability for the Virtual Appliance. For details, refer to About high availability configurations.
- Select Create and continue.
- Select Add Appliance. This will display a list of devices associated with your account. For a Virtual Appliance to show up you need to:
- VMWare: Have already obtained your OVA package and license keys if you are installing on VMWare.
- Proxmox: Have already obtained your Virtual Appliance Script and license keys if you are installing on Proxmox.
- If you have more than one Virtual Appliance, choose the one that corresponds to the on-ramp you are creating. Virtual Appliance devices are identified by a serial number, also known as a service tag. Use this information to choose the right Virtual Appliance.
Select Add Appliance when you are ready to proceed. - Virtual Appliance will be added to your account with an Interrupt window defined. The interrupt window is the time period when the Virtual Appliance software can update, which may result in interruption to existing connections. You can change this later. Refer to Interrupt window for more details on how to define when the Virtual Appliance can update its systems.
- Select Continue to proceed to creating your WAN and LAN networks.
When you have more than one anycast IP configured in your account (set up during your Cloudflare WAN (formerly Magic WAN) onboarding), Virtual Appliance will automatically create at most two tunnels per WAN port. This improves reliability and performance, and requires no additional configuration on your part.
In WAN configuration, select Create. You can create one or more wide area networks (WANs) ↗. Configuring multiple WANs will create multiple IPsec tunnels (one IPsec tunnel per WAN port). This allows Virtual Appliance to load balance traffic over WANs of equal priority. It also allows Virtual Appliance to failover between circuits according to their health. Refer to WAN settings for more details.
-
In Interface name, enter a descriptive name for your WAN.
Interface number needs to correspond to the virtual network interface on the Virtual Appliance instance you have set up in VMware. Following our example from the previous steps, you need to choose port
1since that is what corresponds to theeno1port we set up in VMware.In VLAN ID, enter a number between
0and4094to specify a VLAN ID.In Priority, choose the priority for your WAN. Lower numbers have higher priority. For details on how Cloudflare calculates priorities, refer to Traffic steering.
In Health check rate configure the health check frequency for your site. Options are
low,mid, andhigh. For details, refer to Update tunnel health checks frequency.Addressing: Select DHCP. This is needed the first time you set up your Virtual Appliance to successfully download all settings to the machine and activate it. If you need a static IP address in your network environment:
- Continue the set up flow to activate your Virtual Appliance.
- Refer to WAN with a static IP address. If you choose a static IP, you also need to specify the static IP and gateway addresses.
-
Select Save when you are finished.
Make a POST request using the API to create a WAN.
The static_addressing object is optional. Omit it if you are using DHCP. If you are using static addressing, add the secondary_address parameter when your site is in high availability (HA) mode.
Example:
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{site_id}/wans \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{
"name": "<YOUR_WAN_NAME>",
"physport": 1,
"priority": 0,
"vlan_tag": 0
}'- In LAN configuration, select Create.
- Enter a descriptive name for your LAN in Interface name.
- Interface number needs to correspond to the virtual LAN interface on the Virtual Appliance instance you have set up in VMware. Following our example from the previous steps, you need to choose port
2since that is what corresponds to theeno2port we set up in VMware. - In VLAN ID, specify a VLAN ID to create virtual LANs.
- In Static addressing > Static address give your Virtual Appliance's LAN interface its IP address. You can also enable the following options if they suit your use case:
- This is a DHCP server: If your Virtual Appliance is a DHCP server.
- This is a DHCP relay: If your Virtual Appliance is a DHCP relay.
- (Optional) In Directly attached subnet > Static NAT prefix, enter a CIDR prefix to enable NAT (network address translation). The prefix you enter here should be the same size as the prefix entered in Static addressing. For example, both networks have a subnet mask of
/24:192.168.100.0/24and10.10.100.0/24. - (Optional) If your LAN contains additional subnets behind a layer 3 router, select Add routed subnet under Routed subnets to add them:
- Prefix: The CIDR prefix for the subnet behind the L3 router.
- Next hop: The address of the L3 router to which the Virtual Appliance should forward packets for this subnet.
- Static NAT prefix: Optional setting. If you want to enable NAT for a routed subnet, supply an "external" prefix for the overlay-facing side of the NAT to use. It must be the same size as Prefix.
For details, refer to Routed subnets.
- Select Save.
- Select Done to finish your configuration. Tunnels and static routes will be automatically created for your Virtual Appliance, once it boots up.
Make a POST request using the API to create a LAN.
Example:
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{site_id}/lans \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{
"name": "<YOUR_LAN_NAME>",
"physport": 2,
"static_addressing": {
"address": "172.16.14.0/24"
},
"vlan_tag": 0
}'After setting up your LANs, you can configure your Virtual Appliance to enable communication between them without traffic leaving your premises. For details, refer to Network segmentation.
Virtual Appliance supports different types of DHCP configurations. Virtual Appliance can:
- Connect to a DHCP server or use a static IP address instead of connecting to a DHCP server.
- Act as a DHCP server.
- Use DHCP relay to connect to a DHCP server outside the location your Virtual Appliance is in.
- Reserve IP addresses for specific devices on your network.
After finishing your Virtual Appliance configuration, you need to add it to a site.
Sites represent the local network of a data center, office, or other physical location, and combine all on-ramps available there. Sites also allow you to check, at a glance, the state of your on-ramps and set up health alert settings so that Cloudflare notifies you when there are issues with the site's on-ramps.
Refer to Set up a site for more information.
Virtual Appliance is deactivated after you install it, and will only establish a connection to the Cloudflare network when it is activated. Cloudflare recommends leaving it deactivated until you finish setting it up in the dashboard.
When the Virtual Appliance is first activated, one of the ports must be connected to the Internet through a device that supports DHCP. This is required so that the Virtual Appliance can reach the Cloudflare global network and download the required configurations that you set up.
When you are ready to connect your Virtual Appliance to the Cloudflare network:
- Log in to Cloudflare One, and go to Networks.
- Go to Connectors > Appliances.
- Find the Virtual Appliance you want to activate, select the three dots next to it > Edit. Make sure you verify the serial number to choose the right Virtual Appliance you want to activate.
- In the new window, the Status dropdown will show as Deactivated. Select it to change the status to Activated.
- The Interrupt window is the time period when the Virtual Appliance software can update, which may result in interruption to existing connections. Choose a time period to minimize disruption to your sites. For details on defining when the Virtual Appliance can update its systems, refer to Interrupt window.
- Select Update.
Your Virtual Appliance's default password is the last seven characters of your license key, all uppercase, plus an ! (exclamation mark).
For example, if your license key is mconn-abcdefghijklmnopqrstuvwxyz, your default password will be TUVWXYZ!.
After activating your device, you can use it in a network configuration with the WAN interface set to a static IP address - that is, an Internet configuration that is not automatically set by DHCP. To use your Virtual Appliance on a network configuration with a static IP, follow these steps:
- Connect the machine where you installed the VM with Virtual Appliance to a DHCP port with access to the Internet.
- Create a new profile in the dashboard.
- Create a DHCP WAN.
- Activate and boot your Virtual Appliance.
- Wait 60 seconds.
- Make changes to the WAN settings in the dashboard to a static IP set up.
- Wait 60 seconds again.
- Modify your Port Groups as needed to change the source from which the WAN port obtains its IP address.
- Reboot your virtual machine.
You need to install two Virtual Appliances before you can set up a site in high availability. When you set up a site in high availability, the WANs and LANs in your Virtual Appliance have the same configuration but are replicated on two nodes. In case of failure of one of the devices, the other device becomes the active node, taking over the configuration of the LAN gateway IP and allowing traffic to continue without disruption.
Because Virtual Appliances in high availability configurations share a single site, you need to set up:
- Static address: The IP for the primary node in your site.
- Secondary static address: The IP for the secondary node in your site.
- Virtual static address: The IP that the LAN south of the Virtual Appliance device will forward traffic to, which is the LAN's gateway IP.
Make sure all IPs are part of the same subnet.
For detailed information about the expected behavior of high availability configurations, refer to the High availability configurations reference page.
You cannot enable high availability for an existing site. To add high availability to an existing site in the Cloudflare dashboard, you need to delete the site and start again.
To set up a high availability configuration:
- Follow the steps in Create a new profile up until step 4.
- After naming your site, select Turn on high availability.
- Select Create and continue.
- Select Add Appliance.
- From the list, choose your first Virtual Appliance > Add Appliance.
- Back on the previous screen, select Add secondary appliance.
- From the list, choose your second Virtual Appliance > Add Appliance.
- Select Continue to create a WAN. If you are configuring a static IP, configure the IP for the primary node as the static address, and the IP for the secondary node as the secondary static address.
- To create a LAN, follow the steps in Create a LAN up until step 4.
- In Static address, enter the IP for the primary node in your site. For example,
192.168.10.1/24. - In Secondary static address, enter the IP for the secondary node in your site. For example,
192.168.10.2/24. - In Virtual static address, enter the IP that the LAN south of the Virtual Appliance device will forward traffic to. For example,
192.168.10.3/24. - Select Save.
- From the High availability probing link drop-down menu, select the port that should be used to monitor the node's health. Cloudflare recommends you choose a reliable interface as the HA probing link. The primary and secondary node's probing link should be connected over a switch, and cannot be a direct connection.
- Follow the instructions in Activate appliance to finish setting up your Appliances.
Virtual Appliance automatically creates IPsec tunnels and static routes for you. You cannot configure these manually.
To check the IPsec tunnels and static routes created by your Virtual Appliance:
- Log in to Cloudflare One, and go to Connectors.
- In Cloudflare WAN you can inspect the IPsec tunnels created by your Virtual Appliance.
- In Routes you can inspect the static routes created by your Virtual Appliance.