Skip to content

CLI reference

The CLI is available in the web CLI Console, with fr0ntier cli on the console/SSH, and non-interactively with fr0ntier cli <command> or POST /api/v1/tools/cli.

Global commands

Command Description
get system status version, model, serial, CPU, memory, OS, uptime, running version, candidate state
get system performance CPU, memory, load, temperature, frequency, sessions, throttling
get system interface all interfaces with kind, role, state, addresses, access
get system arp neighbour table
get router info routing-table all IPv4 and IPv6 routes
get router info gateway WAN gateway health
get vpn status WireGuard peers, OpenVPN clients, IPsec SAs
get dhcp lease DHCP leases
get dns statistics DNS counters, upstreams, top blocked
get monitor alerts active alerts
show [section] [key] candidate configuration in CLI syntax
show full-configuration complete candidate configuration (all fields)
config <section> enter configuration mode
exit close the session

diagnose

Command Description
diagnose sniffer packet <iface> ['<filter>'] [count] tcpdump on an interface (any allowed); Ctrl-C stops
diagnose sys top process snapshot
diagnose sys session list [ip] conntrack sessions (200 max), optional IP filter
diagnose sys session stat sessions by protocol and state
diagnose sys session clear flush the conntrack table
diagnose firewall policy-lookup <src> <dst> <proto> [dport] [in-intf] policy simulation with trace
diagnose firewall analyze rule analyzer
diagnose firewall ruleset nft list ruleset
diagnose firewall counters packets and rate per rule
diagnose hardware sysinfo / temperature / smart hardware facts, thermal and throttling flags, disk health
diagnose vpn wireguard / ipsec / openvpn native VPN status
diagnose dns stats / lookup <name> [type] / check <name> / cache-flush / blocklist-update DNS tools
diagnose netlink interface list / neighbor ip views
diagnose debug log [lines] / service <unit> journal of fr0ntier / fr0ntier-dns, systemd unit status

execute

Command Description
execute ping <host> [count], ping6 <host>, traceroute <host>, nslookup <name> network tools
execute commit [confirm <min> \| noconfirm] [comment…] commit the candidate
execute confirm confirm a pending commit
execute discard reset the candidate to the running configuration
execute diff candidate vs running
execute revision list / revision diff <a> <b> versions
execute load-revision <id> copy a version into the candidate
execute rollback <id> apply a version now
execute backup write a backup archive to /var/lib/fr0ntier/backups
execute reboot / shutdown with confirmation
execute factoryreset apply the installer configuration (super admin)
execute shell interactive bash (super admin, audited)

Configuration mode

Command Context Description
edit <key> table open (or create) an entry; edit 0 creates a new auto-numbered entry
delete <key> table delete an entry
move <key> before\|after <key> table reorder (policies, NAT)
set <field> <value…> entry/object set a field; lists take several values; booleans enable/disable
unset <field> entry/object reset to empty
append <field> <value…> / unselect <field> <value…> entry/object add/remove list members
config <table-field> entry nested table (e.g. WireGuard peers, OpenVPN clients)
show / get any non-default fields / all fields
next entry validate and return to the table
end any leave the current config level; at top level validates and writes the candidate
abort any discard the edits of this configuration session

Configuration sections

CLI path Section (JSON path) Key Description
config system global system — System
config system admin-settings system.admin — Administration access
config system commit-settings system.commit — Commit settings
config system interface interfaces name Interfaces
config system zone zones name Zones
config router static routes name Static routes
config firewall address addresses name Addresses
config firewall addrgrp address_groups name Address groups
config firewall service custom services name Services
config firewall service group service_groups name Service groups
config firewall schedule schedules name Schedules
config firewall policy policies id Firewall policy
config firewall snat nat.snat id Source NAT
config firewall vip nat.dnat id Port forwarding (DNAT)
config firewall settings firewall — Firewall settings
config system dhcp server dhcp.servers interface DHCP servers
config system dhcp reserved-address dhcp.static_leases name DHCP reservations
config system dns dns — DNS server
config system dns-record dns.records id Local DNS records
config system dns-forwarder dns.forwarders name Conditional forwarders
config system dns-filter dns.blocking — DNS filtering
config system dns-blocklist dns.blocking.lists name Blocklists
config vpn wireguard wireguard name WireGuard
config vpn openvpn openvpn name OpenVPN
config vpn ipsec ipsec name IPsec
config user local users name Users
config user group user_groups name User groups
config user setting authentication — Authentication settings
config system email-server email — E-mail server
config system reverse-proxy proxy.settings — Reverse proxy
config firewall proxy-host proxy.hosts name Proxy hosts
config monitoring settings monitoring — Monitoring
config monitoring alert monitoring.alerts name Alert rules
config monitoring notifier monitoring.notifiers name Notifiers
config monitoring exporter monitoring.exporters name Exporters