1. What it is
| Statement | Status | Source 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/ | verified | OPNsense 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 logs | verified | OPNsense manual, Installation (13 options listed) |
| Options 5, 6, 11, 12, 13 (power off / reboot / reload services / update / restore) | refinement | The 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 console | verified | OPNsense manual, Installation |
| LAN DHCP range .100 to .199, WAN DHCP by default, LAN allows all out by default | unverified | not 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 services | verified | OPNsense manual, Backup and Restore |
| Console option 13 restores a recent configuration | unverified | the 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.
| Default | Value |
|---|---|
| Console login | root with password opnsense (change it at once) |
| LAN address and DHCP | 192.168.1.1/24; DHCP server on (about .100 to .199) |
| WAN | DHCP client |
| Web interface | https://192.168.1.1 (self-signed certificate: accept the warning) |
| Firewall | WAN: block all inbound. LAN: allow everything out. States are tracked |
| NAT | Automatic outbound NAT (masquerade) for LAN subnets out of the WAN |
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
| Option | When you use it |
|---|---|
| 1 Assign interfaces | First 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 address | Change the LAN address and DHCP range, or recover when you locked yourself out |
| 3 Reset password | Lost the root password |
| 7 Ping host | Quick reachability test without the GUI |
| 8 Shell | A FreeBSD shell: ifconfig, pfctl -sr (rules), pfctl -ss (states), opnsense-version |
| 10 Firewall log | Live view of what is blocked or passed |
| 13 Restore configuration | Roll back to an earlier config.xml |
Try it
3. First five jobs
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
| Menu | What is there |
|---|---|
| Lobby | Dashboard, password, license, logout |
| Reporting | Traffic, health, NetFlow |
| System | Settings (general, administration), Firmware (updates, plugins), Access (users), Configuration (Backups), Gateways, Routes, Log files |
| Interfaces | Assignments, each interface's settings, Diagnostics (ping, traceroute, packet capture) |
| Firewall | Aliases, Rules (per interface), NAT (port forward, outbound, 1:1), Log files (live view), Diagnostics |
| VPN | WireGuard, IPsec, OpenVPN |
| Services | DHCP (server and relay), DNS (Unbound), NTP, intrusion detection, web proxy |
| Power | Reboot, 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
- System, Configuration, Backups: download
config.xml: the whole configuration in one file. Keep a copy before every big change. - OPNsense also keeps the last revisions on the box (console option 13 restores one).
- Everything (firewall rules, DHCP, VPNs) is inside that one XML file: restoring it on a new box rebuilds the firewall.
Try it
Check yourself
Think first, type an answer if you like, then reveal.