Skip to main content
Version: 7.26

WebFig

Introduction​

WebFig is a web-based RouterOS management utility that allows you to configure, monitor, and troubleshoot a router. It serves as an alternative to WinBox, offering a similar layout and access to nearly all RouterOS features.

As a platform-independent utility, WebFig can be used to manage a router from any device with a web browser, eliminating the need to install platform-specific software.

WebFig supports three primary functions:

  • Configuration - View and modify the current router configuration.
  • Monitoring - Monitor router status, routing information, interface statistics, logs, and other operational data.
  • Troubleshooting - Access and use built-in RouterOS diagnostic tools, such as Ping, Traceroute, Packet Sniffer, Traffic Generator, and others.

Connecting to a Router​

As described in the First Time Configuration section, the device is accessible by default using the username admin and either no password or a default password provided on the device label (depending on the model). Open a web browser and enter the device IP address in the address bar; by default this is 192.168.88.1. Ensure the management device is configured with an IP address in the same subnet (for example, 192.168.88.2), otherwise Layer 3 connectivity does not work.

WebFig login page with Login and Password fields and links to Apps, Graphs, License and Help

Enable HTTPS​

WebFig is normally used only from the local network: by default the firewall blocks the router's web services on the WAN port, and you reach the router by its LAN address (for example, 192.168.88.1). Enabling HTTPS encrypts this management traffic so that credentials and configuration are not sent in clear text across the LAN.

Which kind of certificate to use depends on how you reach the router:

  • By its LAN IP address or an internal hostname (the usual case) — use a self-signed certificate generated on the router. Public Certificate Authorities cannot issue certificates for private addresses such as 192.168.88.1, so this is the default approach.
  • By a real, public domain name — you can use a publicly trusted certificate from Let's Encrypt and avoid browser warnings without distributing a CA. This only helps if you actually open WebFig by using that domain name, so it mainly applies to routers managed over a public name rather than a LAN IP (described in the following section).

Use a certificate from your own CA​

A certificate signed by a CA that you create on the router encrypts the connection immediately. Browsers do not trust it on first use, but you can remove the warning by exporting the router's root CA and importing it into the trusted store of the computers you manage the router from.

tip

WebFig supports wildcard certificates. You can generate one by specifying a wildcard in the common-name property, for example, common-name=*.mikrotik.com.

To generate your own certificates and enable HTTPS access, you must configure the following:

Create your own root CA on the router and sign it​

/certificate/add name=local-cert common-name=local-cert \
key-usage=key-cert-sign,crl-sign
/certificate/sign local-cert
warning

If you already have a Certificate Authority or are using an external service to sign certificates, create and sign the certificate externally and import it to the router afterwards. When importing a certificate, ensure it is marked as trusted.

Create a certificate for WebFig (end-entity certificate)​

Sign it with the CA from the previous step, and put the router's address in the subject alternative name, which browsers check:

/certificate/add name=WebFig common-name=192.168.88.1 \
subject-alt-name=IP:192.168.88.1
/certificate/sign WebFig ca=local-cert
/certificate/print
Flags: K - PRIVATE-KEY; A - AUTHORITY; I - ISSUED; T - TRUSTED
Columns: NAME, TRUST-STORE, COMMON-NAME, SUBJECT-ALT-NAME
# NAME TRUST-STORE COMMON-NAME SUBJECT-ALT-NAME
0 KA T local-cert all local-cert
1 KAI WebFig all 192.168.88.1 IP:192.168.88.1

Without ca=, the router signs the WebFig certificate with its own key, and the root CA does not help browsers trust it.

Enable the HTTPS service and assign the certificate​

/ip/service/set www-ssl certificate=WebFig disabled=no

You can now access WebFig at https://192.168.88.1.

warning

Most web browsers do not trust self-signed certificates by default, so the first time you connect you need to accept the warning or manually trust the certificate. Alternatively, export the root CA certificate with /certificate/export-certificate local-cert file-name=local-cert (this writes local-cert.crt to the router's files) and import it into your operating system or browser trust store. Browsers keep their own trust stores, which may differ from the operating system's — trusting the certificate at the OS level may not affect the browser.

Use a publicly trusted certificate (Let's Encrypt)​

If you reach the router by a real, public domain name rather than its LAN IP, you can use a browser-trusted certificate from Let's Encrypt and skip distributing a root CA. RouterOS includes a built-in ACME client for this.

Before choosing this option, note how it interacts with a LAN-only setup:

  • Public CAs do not issue certificates for private IP addresses, so this does not remove the warning when you open WebFig at https://192.168.88.1.
  • The certificate is valid only for its domain name, so you must browse to WebFig by that name. For the name to resolve to the router inside the LAN, you generally need a local (split-horizon) DNS entry pointing it at the LAN address.
  • The DNS-01 challenge — used for IP Cloud <id>.sn.mynetname.net names — needs no inbound WAN port, so it still works even though the firewall blocks WebFig from the WAN.

Request a certificate for the router's IP Cloud DDNS name:

/ip/cloud/set ddns-enabled=yes
/certificate/add-acme domain-names=[/ip/cloud/get dns-name]

Or for your own domain:

/certificate/add-acme domain-names=router.example.com

The issued certificate is named after the domain and is shown with the a (acme-manage) flag in /certificate/print. Assign it to the www-ssl service and then open WebFig by that domain name:

/ip/service/set www-ssl certificate=router.example.com disabled=no

The certificate is renewed automatically once 80% of its validity period has elapsed.

Terminal​

The Terminal (Command Line Interface, CLI) in WebFig is available in the top-right corner. It provides the same functionality as the New Terminal in the WinBox interface.

WebFig Terminal with the RouterOS banner and the output of /system/resource/print

Skins​

WebFig Design Skin is a tool used to customize the appearance of the interface for improved usability. It is not a security feature. Users with sufficient permissions can still access all available configuration options through other means, including direct CLI access.

Designing skins​

If the user has sufficient permissions (the user group has the policy and sensitive policies enabled), Design Skin is available in the menu (⋮) at the top right, next to Terminal. Selecting it opens the Skin Designer.

To remove Design Skin from the menu, disable the policy and sensitive permissions in the user group configuration.

WebFig menu at the top right with Design Skin, Show Passwords, Help Center, Get Apps, About, Reboot and Logout

Available operations:

  • Hide menu - hides a menu and all of its submenus.
  • Hide submenu - hides a specific submenu.
  • Hide tabs - hides individual tabs in a multi-tab view.
  • Rename menus and items - changes menu labels, for example for localization or clarity.
  • Add a note to an item - adds comments in the detailed view.
  • Make item read-only - prevents editing of selected fields for safety.
  • Hide flags - hides flags in both list and detailed views.

Skin Designer list of menus with check boxes and the Type, Title, Read-only, Note and Limit columns

  • Add field limits - restricts allowed values in the detailed view:

    • Numeric intervals (..) - defines allowed ranges, for example 1280..1500 for the MTU field of an Ethernet interface.
    • Field prefix limits - restricts allowed prefixes for text-based fields. A trailing $ enforces exact prefix matching. For example, station$ limits values to station only.

    Skin Designer rows of the Ethernet interface, General tab, with the limit 1280..1500 on the MTU field

  • Add tab - inserts a labeled section divider before a field.

  • Add separator - inserts a horizontal separator before a field.

note

Number intervals cannot extend beyond the limitations defined by RouterOS for a given field.

note

Set fields represent collections of selectable options (checkbox sets), for example user group policies or RADIUS service settings.

note

Restrictions applied to combo-box fields also limit the available dropdown options.

Skin Design Example​

To restrict a user to specific services, add a limit to the RADIUS Service field. Without a skin, the New RADIUS Server window offers all services:

New RADIUS Server window with all Service check boxes available

In the Skin Designer, open RADIUS, RADIUS Server, General, and enter the allowed services in the Limit column of the Service row, here ppp,dhcp,login,wireless:

Skin Designer rows of RADIUS Server, General tab, with the limit ppp,dhcp,login,wireless on the Service field

A user with this skin sees only the services in the limit:

New RADIUS Server window that offers only ppp, login, wireless and dhcp

Customizing skins​

An example of a Status page structure that can be used in a skin *.json file is available here: status_main_example.json

The status content follows this structure: {"Status": {"Status": {}}}

Status records are displayed in sequential order, for example:

"7": {
"alias": (path to the record),
"note": (optional; free form text that appears under the record),
"name": (optional; alternative name for the record),
"tab": (optional; name of the tab that this and following records belong to),
"separator": 1 (optional; should a separating line be placed before this record)
},

Path (alias) structure

The alias path (for example: "IP:Firewall:Filter Rules:*17:Statistics:Packet Rate Graph" and the corresponding URL: "router_IP/WebFig/#IP:Firewall.Filter_Rules.17") consists of colon-separated components:

  • Group (if any) → IP:
  • Service or Name → Firewall:
  • Container or Tab Name → Filter Rules:
  • Asterisk (*) and Object ID → taken from the URL of the opened item (for example, 17)
  • Tab name (if applicable) → Statistics
  • Field name → Packet Rate Graph

Customized WebFig Status page with IP Cloud, system information, health and traffic graph sections

Using skins​

To apply a skin, assign it to a user group. After assignment, all users in that group automatically use the selected skin when logging in to WebFig or WinBox.

/user/group/set your_group_name skin=your_skin

To use a skin on another router, copy the skin files into the skins directory on the target device. After copying, assign the skin to a user group on that router to enable it.