Skip to content

VPS on cloud providers and Proxmox

The VPS module sells virtual servers: ClientFence sets each one up when it is ordered, and clients manage it from the client area. It needs a ClientFence Pro licence: Pro allows up to 10 cloud VPS, Business has no limit and adds Proxmox.

Provider New servers
Hetzner Cloud Created when they are ordered.
Vultr Created when they are ordered.
Proxmox VE Cloned from a VM template when they are ordered. Business plan only.
OVH VPS Ordered at OVH, then imported.
Netcup SCP Bought at Netcup, then imported.

A VPS server is one provider account or project with its API token.

  1. Go to System → VPS Servers and select Add VPS Server.
  2. Enter a Name and choose the Provider.
  3. Enter the API Token. For Hetzner Cloud, open the project in the Hetzner Cloud Console, then Security > API Tokens, and generate a token with Read & Write permission.
  4. Leave API Address (optional) empty: it is only for a test API or a proxy.
  5. Keep Active on and select Add VPS Server.
  6. Open the server and select Test Connection.

For Netcup SCP, there is no token field: save the VPS server, then select Connect and sign in to the Netcup account.

Give the API token the VM.GuestAgent.Unrestricted privilege too, so a root password reset applies at once without restarting the server. Proxmox has these extra fields:

Option What it does
Nodes The Proxmox nodes new VMs may be placed on, separated by commas.
VM storage (optional) The storage new VM disks are written to. Empty: the template’s own storage.
Backup storage (optional) The storage that keeps backup files. Empty: no backups.
Console relay address (optional) The address browsers open the console relay at. Empty: no browser console for this server.
Console relay secret The relay’s shared secret, 32 characters or more.

The systems clients can pick are the VM templates on the nodes.

Under IP pools on the server’s page, select Add IP pool with a Name, a Network such as 203.0.113.0/24, its Gateway and optional DNS servers. A new Proxmox VM gets a free IPv4 address from these pools, and an IPv6 address too when there is an IPv6 pool. IPv6 pools must be /64 or larger, with a link-local gateway. Turn on Give each VPS a /64 instead of a single IPv6 address to hand out a whole /64. Excluded addresses are never given out.

  1. Go to Products → Products & Services and select New Product.
  2. Pick the Type VPS, a Category and a Title, then select Create.
  3. On the Configuration tab, choose the VPS server.
  4. Under Server defaults, choose the Location, System and Size. Only the sizes that can run the chosen system in the chosen location are listed.
  5. Select Create the options from … to make the configurable options clients choose from (Location, System, Size and Daily backups). Their prices start at 0: set them on the Options tab before you sell the product.
  6. Set what clients can do, the limits and the automation below, then select Save.
Option What it does
Name when the client gives none Empty: a random name.
Name prefix Put in front of every server name at the provider. Letters, digits and dashes.
What clients can do Turn each client action on or off: Start, shut down and power off, Reboot, Console, Reset root password, Reverse DNS, Graphs, Activity, Reinstall, Rescue mode, ISO images, Backups, Snapshots, Firewalls, Floating IPs, Private networks and Change primary IP. An action turned off is hidden from the client and refused by the server.
Limits Snapshot space (GB), Snapshot count, Firewalls, Firewall rules, Floating IPs and Private networks, for each server. 0: none.
Systems and ISOs clients may use For orders and reinstalls. No system chosen: all systems of the VPS server. No ISO chosen: none.
When suspended Power off, keep the data or Leave it running. The provider keeps billing for a server that is off.
When cancelled Delete the server, or Power off, staff delete it later. Deleting removes the server and its backups at the provider for good.
Power off before an upgrade Shuts the server down for a plan change.
Grow the disk on an upgrade The server can then never move to a smaller size.
Email the client after a reinstall Sends the client an email when a reinstall is done.
Reverse DNS template For example {ip_dashed}.cloud.example.com, with {hostname}, {ip_dashed} and {service_id}. Empty: the provider’s default.
First boot script (cloud-init) Up to 32 KiB. Never put a password or key here: the provider keeps it with the server.

The order form reads these configurable option keys: location, image, server_type, backups, volume (Extra disk (GB)), floating_ipv4 and floating_ipv6. Each choice has its own price. Anything not offered uses the default above.

When they order, clients pick the Location, System, Size and any Extras, an optional Server name, and how they sign in: Use my SSH key, or a root password shown in the client area.

The server’s page in the client area has Start, Shut down, Reboot, Console and more server actions, and the tabs Overview, Reverse DNS, Firewall, Private networks, Graphs, Backups, Snapshots and Activity, with Reinstall, Rescue mode and ISO image where they are turned on. Clients see only what the product turns on and the provider offers.

Staff manage the same server on the order’s Service Management tab.

  1. Open the VPS server on System → VPS Servers.
  2. Under Servers not linked to an order, select Load.
  3. Select Import to client on the server’s row.
  4. Choose the Client, the VPS Product, the Billing cycle and the Start date. Tick Create an invoice to bill it now.
  5. Select Import.

The order is created as already set up: nothing is created at the provider. This is how OVH VPS and Netcup SCP servers come in.

  • A new cloud VPS over the plan’s count is refused with VPS limit of the Pro licence reached.
  • Without a valid licence, staff see VPS management needs a valid ClientFence Pro licence. Suspend, unsuspend, renew, cancel and delete still work.
  • A Proxmox server without a console relay has no browser console.
  • A reinstall erases everything on the server’s disk.