SwitchNRoutesNetwork operating systems lessonsAll interactive lessonsBlogGet a quote
NETWORK OS TUTORIALS | INTERACTIVE LESSON

OPNsense first steps: console, interfaces and the web interface

What OPNsense is, how it starts, what the console menu does, and the five things to do on a new box.

About: OPNsense 26.7 (FreeBSD based, open-source firewall and router). Menu names may differ slightly between releases.
All Network operating systems lessons
Progress is saved in this browser

1. What it is

Verification against vendor documentation (12 Nov 2026)
StatementStatusSource or note
Default console login root / opnsense (installer user 'installer' / opnsense for the live image); default LAN 192.168.1.1 and GUI https://192.168.1.1/verifiedOPNsense manual, Installation
Console menu options 0 to 4 and 7 to 10: logout, assign interfaces, set interface IPs, reset root password, factory reset, ping, shell, pfTop, filter logsverifiedOPNsense manual, Installation (13 options listed)
Options 5, 6, 11, 12, 13 (power off / reboot / reload services / update / restore)refinementThe manual lists them as reboot, halt, restart web interface, upgrade from console, restore a configuration. Wording differs between releases: guide now warns to read your own menu
nano image is an embedded image with a 115200-baud serial consoleverifiedOPNsense manual, Installation
LAN DHCP range .100 to .199, WAN DHCP by default, LAN allows all out by defaultunverifiednot stated on the manual pages fetched (matches the usual default install)
Backups: System, Configuration, Backups; XML export; history on the box with diff and revert; revert needs a reboot for some servicesverifiedOPNsense manual, Backup and Restore
Console option 13 restores a recent configurationunverifiedthe Backup page describes web-interface restore only

Verified means checked against the named vendor page. Unverified means not confirmed: check it on the real system. Nothing in these tutorials was run on a real device by the author of this pass; sample outputs, where shown, are illustrative.

OPNsense is a free, open-source firewall and router built on FreeBSD. It is a stateful firewall with a web interface, and it also routes, does NAT, DHCP, DNS, VPNs (WireGuard, IPsec, OpenVPN), traffic shaping, intrusion detection and more. It is a fork of pfSense. Small businesses and home labs use it instead of a paid firewall. You imported the nano image: a ready-installed system whose console is the serial port.

Two interfaces: the default shape of an OPNsense boxLAN clientsOPNsenseWAN / internetLAN vtnet0 192.168.1.1/24WAN vtnet1 DHCP
Out of the box: LAN is the trusted side (the web GUI lives here), WAN gets an address by DHCP and blocks everything inbound.
DefaultValue
Console loginroot with password opnsense (change it at once)
LAN address and DHCP192.168.1.1/24; DHCP server on (about .100 to .199)
WANDHCP client
Web interfacehttps://192.168.1.1 (self-signed certificate: accept the warning)
FirewallWAN: block all inbound. LAN: allow everything out. States are tracked
NATAutomatic outbound NAT (masquerade) for LAN subnets out of the WAN
Watch out192.168.1.1 is also your real router's address. Never attach OPNsense LAN to the Bridge connector in CML. Change the LAN address to something unique (for example 192.168.77.1/24) as the first job.

Try it

2. The console menu

  0) Logout                              7) Ping host
  1) Assign interfaces                   8) Shell
  2) Set interface IP address            9) pfTop
  3) Reset the root password            10) Firewall log
  4) Reset to factory defaults          11) Reload all services
  5) Power off system                   12) Update from console
  6) Reboot system                      13) Restore a recent configuration
OptionWhen you use it
1 Assign interfacesFirst boot, or when interfaces change. Maps vtnet0 to LAN and vtnet1 to WAN (names depend on the NIC type: virtio shows as vtnet, e1000 as em)
2 Set interface IP addressChange the LAN address and DHCP range, or recover when you locked yourself out
3 Reset passwordLost the root password
7 Ping hostQuick reachability test without the GUI
8 ShellA FreeBSD shell: ifconfig, pfctl -sr (rules), pfctl -ss (states), opnsense-version
10 Firewall logLive view of what is blocked or passed
13 Restore configurationRoll back to an earlier config.xml
Watch outThe OPNsense documentation's install page lists the console menu with slightly different wording for options 5, 6, 11, 12 and 13 (for example 'Reboot', 'Halt', 'Restart web interface', 'Upgrade from console', 'Restore a configuration'). Menu text changes between releases: read your own console menu before pressing a number. Options 0, 1, 2, 3, 4, 7, 8, 9 and 10 match the documentation.

Try it

3. First five jobs

Do these before anything else1. Console:confirm interfaces(option 1)2. Console: giveLAN a unique IP(option 2)3. GUI: change theroot password4. GUI: hostname,DNS, time zone,NTP5. GUI: back upconfig.xml, thenupdate
Update last: firmware updates reboot the box, and you want a backup first.
Console option 2, LAN:
  Configure IPv4 address LAN interface via DHCP? [y/N]  n
  Enter the new LAN IPv4 address:  192.168.77.1
  Enter the new LAN IPv4 subnet bit count:  24
  For a LAN, press <ENTER> for none (upstream gateway):
  Configure IPv6 address LAN interface via WAN tracking? [Y/n]  n   (lab: IPv6 not used)
  Do you want to enable the DHCP server on LAN? [y/N]  y
  Enter the start address of the IPv4 client address range:  192.168.77.100
  Enter the end address of the IPv4 client address range:    192.168.77.199
  Do you want to change the web GUI protocol from HTTPS to HTTP? [y/N]  n

4. Finding your way in the web interface

MenuWhat is there
LobbyDashboard, password, license, logout
ReportingTraffic, health, NetFlow
SystemSettings (general, administration), Firmware (updates, plugins), Access (users), Configuration (Backups), Gateways, Routes, Log files
InterfacesAssignments, each interface's settings, Diagnostics (ping, traceroute, packet capture)
FirewallAliases, Rules (per interface), NAT (port forward, outbound, 1:1), Log files (live view), Diagnostics
VPNWireGuard, IPsec, OpenVPN
ServicesDHCP (server and relay), DNS (Unbound), NTP, intrusion detection, web proxy
PowerReboot, power off

OPNsense changes are usually Save then Apply changes: two steps. If a change does not take effect, you probably forgot to apply it.

5. Backups and recovery

Try it

Check yourself

Think first, type an answer if you like, then reveal.