Custom Templates
Templates in HopBox Cloud let you define reusable device configurations that can be applied to one or many devices at once. They’re essential for managing large deployments where devices share similar network settings.
What Are Templates?
Section titled “What Are Templates?”A template is a predefined configuration that covers one or more aspects of a HopBox device:
- Network configuration (LAN/WAN/VLAN settings)
- Firewall rules (zones, traffic rules, port forwards)
- VPN profiles (WireGuard, OpenVPN, IPsec)
- SD-WAN policies (routing rules, failover settings)
- DNS and DHCP settings
- QoS profiles
When you assign a template to a device or device group, the configuration is pushed automatically on the next sync.
Creating a Template
Section titled “Creating a Template”- Navigate to Templates in the cloud dashboard
- Click New Template
- Choose a template type (Network, Firewall, VPN, SD-WAN, or Full Device)
- Configure the settings using the visual editor or JSON mode
- Save the template with a descriptive name
Example: Branch Office Network Template
Section titled “Example: Branch Office Network Template”{ "name": "Branch Office - Standard", "type": "network", "config": { "lan": { "ipaddr": "192.168.1.1", "netmask": "255.255.255.0", "dhcp": { "enabled": true, "start": 100, "limit": 150, "leasetime": "12h" } }, "wan": { "proto": "dhcp", "dns": ["1.1.1.1", "8.8.8.8"] }, "vlans": [ { "id": 10, "name": "Staff", "subnet": "192.168.10.0/24" }, { "id": 20, "name": "Guest", "subnet": "192.168.20.0/24" } ] }}Template Variables
Section titled “Template Variables”Templates support variables for values that differ between devices. Use double curly braces to define placeholders:
{ "lan": { "ipaddr": "{{lan_gateway}}", "netmask": "{{lan_netmask}}" }, "wan": { "proto": "{{wan_proto}}" }}When assigning the template, you’ll be prompted to fill in the variable values for each device.
Assigning Templates
Section titled “Assigning Templates”To a Single Device
Section titled “To a Single Device”- Go to Devices → [Your Device] → Settings
- Under Templates, click Assign Template
- Select the template and fill in any variables
- Click Apply — the config will be pushed on next sync
To a Device Group
Section titled “To a Device Group”- Go to Device Groups → [Your Group]
- Click Assign Template
- Select the template — it will apply to all devices in the group
- New devices added to the group will automatically receive the template
Template Versioning
Section titled “Template Versioning”Templates support versioning. Each time you edit and save a template, a new version is created. You can:
- View version history to see what changed
- Roll back to a previous version if needed
- Compare versions side by side
Template Priorities
Section titled “Template Priorities”When multiple templates are assigned to a device, they’re applied in priority order:
- Device-specific templates (highest priority)
- Group templates
- Global templates (lowest priority)
Conflicting settings are resolved by priority — higher-priority templates override lower ones.
Best Practices
Section titled “Best Practices”- Start with a base template for common settings (DNS, NTP, firewall defaults) and layer specific templates on top
- Use device groups to organize devices by location, role, or configuration profile
- Test templates on a single device before rolling out to a group
- Use variables for site-specific values like IP addresses and VLAN IDs
- Review sync status after applying templates to confirm successful deployment