Configure hardware Appliance·续1
Note
You will need your account ID and API token to use the API.
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
}'
Network segmentation
After setting up your LANs, you can configure your Cloudflare One Appliance to enable communication between them without traffic leaving your premises. For details, refer to Network segmentation.
DHCP options
Cloudflare One Appliance supports different types of DHCP configurations. Cloudflare One 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 Cloudflare One Appliance is in.
- Reserve IP addresses for specific devices on your network.
Add your Cloudflare One Appliance to a site
After finishing your Cloudflare One 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.
Set up your Cloudflare One Appliance
Device installation
There are several deployment options for Cloudflare One Appliance. Cloudflare One Appliance can act like a DHCP server for your local network, or integrate with your local setup and have static IP addresses assigned to it.
When Cloudflare One Appliance acts like the WAN router for your site, deployment will be something like this:
flowchart LR
accTitle: Appliance as WAN router
accDescr: Cloudflare One Appliance set up as a DHCP server, and connecting to the Internet.
a(Cloudflare One Appliance)--> b(Internet) --> c(Cloudflare)
subgraph Customer site
d[LAN 1] --> a
e[LAN 2] --> a
end
classDef orange fill:#f48120,color: black
class a,c orange
Cloudflare One Appliance set up as a DHCP server, and connecting to the Internet.
In the following example, the Cloudflare One Appliance device sits behind the WAN router in your site, and on-ramps only some of the existing LANs to Cloudflare.
flowchart LR
accTitle: Appliance behind site router
accDescr: Cloudflare One Appliance connects to the router in the site, and only some of the LANs connect to Appliance.
a(Cloudflare One Appliance)--> b((Site's router)) --> c(Internet) --> i(Cloudflare)
subgraph Customer site
d[LAN 1] --> a
e[LAN 2] --> a
g(LAN 3) --> b
h(LAN 4) --> b
end
classDef orange fill:#f48120,color: black
class a,i orange
Cloudflare One Appliance connects to the router in the site, and only some of the LANs connect to Appliance.
Refer to Cloudflare One Appliance deployment options for a high-level explanation of the deployment options that make sense to most environments, as well as a few advanced use cases.
Firewall settings required
If there is a firewall deployed upstream of Cloudflare One Appliance, configure the firewall to allow the following traffic:
| Protocol/port | Destination IP/URL | Purpose |
|---|---|---|
UDP/53 |
DNS destination IP 1.1.1.1 |
Needed to allow DNS traffic to Cloudflare DNS servers. Cloudflare uses this port for DNS lookups of control plane API. |
TCP/443 |
- | Cloudflare One Appliance will open outbound HTTPS connections over this port for control plane operations. |
UDP/4500 |
Destination IP 162.159.64.1 |
Needed for Cloudflare One Appliance initialization and discovery through outbound connections. |
UDP/4500 |
Destination IP - Cloudflare anycast IPs | Needed for the Cloudflare anycast IPs assigned to your account for tunnel outbound connections. This traffic is tunnel traffic. |
TCP/7844, UDP/7844 |
Outbound connections | Used to support debugging features in Cloudflare One Appliance. |
UDP/123 |
http://time.cloudflare.com/ |
Needed for Cloudflare One Appliance to periodically contact Cloudflare's Time Services. |
Activate appliance
The Cloudflare One Appliance is shipped to you deactivated, 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 Cloudflare One Appliance is first activated, you need to have Internet connection. If you chose to set up your Cloudflare One Appliance with DHCP you will need to have one of the Cloudflare One Appliance ports connected to the Internet through a device that supports DHCP. This is required so that the Cloudflare One Appliance can reach the Cloudflare global network and download the required configurations that you set up.
If you set up your Cloudflare One Appliance with a static IP through the bootstrap method, you do not need a DHCP port. For details, refer to DHCP vs static IP connections.
Caution
Remember that if you chose the DHCP method you have to connect Cloudflare One Appliance through a route that supports DHCP for its first connection to the Internet. Otherwise, Cloudflare One Appliance will not work.
When you are ready to connect your Cloudflare One Appliance to the Cloudflare network:
- Go to the Connectors page. Go to Connectors ↗
- Go to the Appliances tab > Appliances.
- Find the Cloudflare One Appliance you want to activate, select the three dots next to it > Edit. Make sure you verify the serial number to choose the right Cloudflare One 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 Cloudflare One 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 Cloudflare One Appliance can update its systems, refer to Interrupt window.
- Select Update.
WAN with a static IP address
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 Cloudflare One Appliance on a network configuration with a static IP, follow these steps:
Caution
Make sure you complete the setup workflow and activate your Cloudflare One Appliance before changing the WAN settings to a static IP.
- Connect Cloudflare One Appliance to a DHCP port with access to the Internet.
- Create a new profile in the dashboard.
- Create a DHCP WAN.
- Activate and power on your Cloudflare One Appliance.
- Wait 60 seconds.
- Make changes to the WAN settings in the dashboard to a static IP set up.
- Wait 60 seconds again.
- Cloudflare One Appliance will go offline. This is normal and expected behavior.
- Adjust your physical connections as required to match the static configuration.
- Cloudflare One Appliance comes back online.
Bootstrap via Serial Console
Advanced users can locally configure their Cloudflare One Appliance to work in a static IP configuration. This local method does not require having access to a DHCP Internet connection. However, it does require being comfortable with using tools to access the serial port on Cloudflare One Appliance as well as using a serial terminal client to access the environment in your Cloudflare One Appliance.
The following is a detailed description of how to use the serial port to configure your Cloudflare One Appliance locally.
Note
The reset device option in your Cloudflare One Appliance clears most of the configuration that is locally cached, resets the password to the default, and reboots.
Equipment required
To access the serial port on Cloudflare One Appliance you will need the following equipment:
- The Cloudflare One Appliance device
- A Phillips-head screwdriver
- A micro-USB to USB-A cable (there should be one included in the packaging of your Cloudflare One Appliance device)
- A computer with an available USB port
- A serial terminal client
- Optional: if needed, a USB-A to USB-C converter dongle if your computer requires it
1. Access the device's serial port
- Using the Phillips screwdriver, loosen the screw covering the serial console panel on the back of the Cloudflare One Appliance and turn the panel out of the way.
- Pictures and more instructions can be found on Dell's Technical Documents ↗︎.
- Connect your computer to your Cloudflare One Appliance device using the USB cable.
Default password
The default password for your Cloudflare One Appliance device is the serial number (also known as a Service Tag for Dell devices), all uppercase followed by an ! (for example, A1B2C3D!)
2. Install a serial terminal client
To access the Cloudflare One Appliance device environment you need a serial terminal client. Follow these instructions to install one, based on your operating system.
Windows
Cloudflare recommends using PuTTY for Windows. Download PuTTY from the official website ↗︎ and then install it.
- Check the COM port of the USB to UART device in the Windows Device Manager. It should appear as something similar to
Silicon Labs CP210x USB to UART Bridge (COMX). - Take note of the value in the parentheses (COMX).
- For details on creating a serial console connection, refer to the Dell Documentation Page ↗︎.
- Launch PuTTY.
- Under Category, make sure that Session (the first item) is selected.
- Under Connection type, select Serial.
- In the Serial Line, type in the COM port found in step 2 (for example,
COM1). - In the Speed, enter
115200. - Select Open on the bottom of the dialog box. A terminal window should pop up.
- The screen may need to be manually refreshed when a new device is connected. You can do that by pressing
CTRL + C.
