Technical Anshu
Tutorials Blog
🧱 OPNsense Complete Setup

OPNsense Firewall Setup Complete Guide From Install to First Rules

Your home router's firewall is a locked box you cannot really control. OPNsense is a free, open-source firewall you install on a small PC, and it gives you professional control — real firewall rules, VPN, intrusion detection, per-device visibility. This guide takes you from an empty PC to a working, sensibly secured OPNsense setup.

✍️ Technical Anshu🌐 Home and Office Network⏱️ 12 minute read
🎥 Watch the full video — the complete OPNsense setup, from install to a working network

OPNsense is a firewall and routing platform built on FreeBSD, released as genuinely free and open-source software. You install it on your own hardware — an old PC, a mini PC with two network ports, or a small appliance — and it sits between your modem and your network, deciding what traffic may pass. This guide covers the whole journey in the right order: hardware, install, first login, wizard, rules, DHCP and DNS, and the safety habits that keep you from locking yourself out. Read it once fully before touching anything; a firewall setup goes wrong mostly at the planning stage, not the clicking stage.

OPNsense — Lobby Dashboard After First Login (recreated)
System : OPNsense (FreeBSD based, open source) LAN interface : 192.168.1.1 DHCP server: ON WAN interface : address received from ISP modem Login : root / (change the default password first) Firewall > Rules > LAN pass LAN net -> any (default allow rule) pass anti-lockout rule on LAN (protects your access)
👆 What a healthy first OPNsense dashboard looks like — LAN at 192.168.1.1, DHCP on, default rules in place (panel recreated)
1

Step 1 — Give It the Right Hardware

OPNsense needs a 64-bit PC with at least two network ports — one for the internet side (WAN), one for your network (LAN). The official guidance is roughly 2 GB RAM minimum and 4 GB or more for comfortable use; an SSD of 40 GB or more is plenty for most homes. Intel network cards are strongly preferred because their FreeBSD drivers are the most reliable — cheap Realtek ports are the single most common cause of strange network drops. A full hardware guide is linked in the companion article on this page's topic list.

2

Step 2 — Install From a USB Stick

Download the VGA USB image from the official OPNsense download page, write it to a pen drive, and boot the firewall PC from it. Log in at the console as installer with password opnsense, accept the defaults, choose your disk and let it copy the system. It erases the target disk completely, so never point it at a disk with data you need. When it finishes, remove the USB stick and reboot.

3

Step 3 — First Login and the Setup Wizard

Connect a laptop to the LAN port. It should receive an address automatically, because OPNsense runs a DHCP server on LAN by default. Open https://192.168.1.1 in the browser — the certificate warning is normal for a fresh install, since the box created its own self-signed certificate. Log in as root. On a truly fresh system the default password is opnsense until you set your own during install. Walk through the wizard: set the hostname and your own local domain, choose DNS servers (or leave the ISP defaults), confirm the WAN type (DHCP is right for most home connections), and confirm the LAN address.

4

Step 4 — Understand the Default Rules Before Adding Your Own

Out of the box, OPNsense is already a sensible firewall: everything coming in from the internet is blocked, and devices on your LAN are allowed out. There is also an automatic anti-lockout rule on LAN that keeps your access to the web interface alive even if you make a rules mistake. Do not start by adding block rules everywhere. Watch the live log for a day (Firewall → Log Files → Live View), learn what normal traffic looks like, and only then start writing rules with a specific purpose. A separate article in this set covers first rules in depth.

5

Step 5 — Finish the Basics: DHCP, DNS and Updates

Give important devices fixed addresses with static DHCP mappings (printers, NAS, cameras) so they never move. OPNsense's built-in DNS resolver (Unbound) is enabled by default and is all most networks need. Then go to System → Firmware and run the updates — a fresh install is never fully current, and a firewall is exactly the device that must not run old software. Finally, download a configuration backup (System → Configuration → Backups) and keep it off the box. That one file rebuilds your entire setup in minutes if the hardware ever dies.

⚠️ The honest warning: the day you install OPNsense, your old router stops being the boss of the network — if the OPNsense box goes down, the whole house loses internet until it is back. Keep the old router handy for the first week, and keep a configuration backup. That is not a weakness of OPNsense; it is simply what taking control means.

🎥 Watch the Complete OPNsense Setup in the Video

The video shows every screen of this setup live — the install, the wizard, the rules and the settings that matter — so you can follow along on your own box.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Is OPNsense really free?

Yes. The community edition of OPNsense is free and open-source software, and it is not a crippled trial — the firewall, VPN, intrusion detection and reporting features are all included. There is an optional paid business edition from the company behind it, but nothing in this guide needs it.

What is the default IP address and login for OPNsense?

The LAN side starts at 192.168.1.1 with a DHCP server running, and the web interface is at https://192.168.1.1. The default user is root with password opnsense until you set your own password during installation. Change it immediately and store it in a password manager.

Can I run OPNsense on my old PC or laptop?

An old desktop PC with a second network card added works well for learning and for real use. Laptops are awkward because they usually have one Ethernet port and go to sleep; a mini PC with two Intel network ports is the popular long-term choice. The minimum is about 2 GB of RAM, with 4 GB or more recommended.

This guide is based on the Technical Anshu OPNsense firewall setup video • Stuck on a step? Ask in the video comments — you will get a reply 🙏