← logbuild #17 passed85fdae5
OPNsense on Proxmox: Build a Dedicated Home Firewall
Your ISP router is a closed box you cannot inspect or extend. This guide replaces it with OPNsense as a Proxmox VM on an Intel N100 MiniPC, so you get full traffic visibility, per-device rules, and IDS/IPS.
· 13 min read
Your ISP gives you one box that is both modem and router, and calls it a firewall. It is not. You cannot read its logs, write rules for each device, turn on DNS filtering, or run IDS/IPS (software that detects and blocks attacks). All your home traffic passes through a box you do not own and cannot extend. You also cannot see most of what happens inside it.
This guide fixes that. When you finish, OPNsense sits between your ISP and every device in your home. OPNsense is firewall software that you install on your own hardware. Here it runs on top of Proxmox (a system that runs virtual machines), on an Intel N100 MiniPC. The MiniPC uses about 6W when idle.
Target audience: Homelab users who can use the Linux command line and know basic networking.
Environment: MiniPC T9 Plus (Intel N100, 2x Realtek RTL8111/8168 GbE NICs), Proxmox VE 9.1.6, OPNsense 26.1.2, FPT Vietnam fiber (PPPoE).
In Simple Words#
- The problem
- All your home traffic goes through the router from your ISP. You cannot read its logs, write rules for each device, or filter DNS.
- The root cause
- The ISP router is a closed box. You do not own it and you cannot extend it. Its small CPU is also too weak for jobs like IDS/IPS.
- The solution
- Put OPNsense between the ISP and your devices. It runs as a VM on Proxmox, on a small MiniPC with two network ports: one for WAN and one for LAN.
- Think of it like this
- Your house has one front door, and a guard from another company stands there. He does not tell you who comes in. You replace him with your own guard, who writes down every visitor and follows your rules.
The Problem With My ISP Router#
FPT Vietnam, like most ISPs, gives you an optical fiber connection with a modem (ONT) and a combined router, the AX3000CV2. Its 880 MHz dual-core CPU is fine for routing and NAT. It is too weak for:
- IDS/IPS (Suricata)
- Advanced firewall rules
- VLAN segmentation
- DNS filtering
- Traffic monitoring
- VPN encryption
Realistic Role for This Router#
| Good for | Not good for |
|---|---|
| ISP modem / ONT | Homelab firewall |
| Wi-Fi access point | Network segmentation |
| Simple home router | Security monitoring |
Before: Every Packet Goes Through a Closed Box#
The diagram starts with the setup you have today. Then it shows each change this guide makes.
- Today, every packet from your devices goes through the ISP router. You cannot see what it does.
- Add a MiniPC with two network ports. Proxmox runs on it, and OPNsense runs as a VM.
- Connect the ISP line to the WAN port. OPNsense logs in to the ISP with PPPoE.
- Connect a switch to the LAN port. Your devices now get their IP addresses from OPNsense.
- Now every packet passes through a firewall you control. You can log it, block it and inspect it.
After: OPNsense in the Path#
The last step of the diagram shows the new path: ISP → OPNsense → switch → your devices.
Now every packet goes through a firewall you control. You can log it, block it, inspect it, and get an alert about it.
Hardware: MiniPC T9 Plus (Intel N100)#
The N100 is a very good base for a firewall at the edge of your network:
| Spec | Value |
|---|---|
| CPU | Intel N100 (4 cores, Alder Lake-N) |
| TDP | ~6W |
| RAM | 16GB DDR5 (model-dependent) |
| Storage | 256GB NVMe (plenty for Proxmox + OPNsense) |
| NICs | 2x Realtek RTL8111/8168 (GbE) |
A NIC is a network port. Two physical NICs give you one port only for WAN (the internet side) and one port only for LAN (your home side). That is what a firewall needs. Gigabit Ethernet (GbE) is enough, because FPT’s fiber plans go up to about 1Gbps.
Why Proxmox Instead of Bare-Metal OPNsense#
This is the most important section in the guide. “Bare-metal” means you install OPNsense directly on the machine, with no other system below it. If you do that on the T9 Plus, you will have network problems.
To check your NIC model, run this in the Proxmox shell:
lspci | grep EthernetExpected output on the T9 Plus:
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)Network Design#
Before you change any config, learn how traffic moves through the layers. A bridge is a virtual switch inside Proxmox. It connects a physical NIC to the VMs.
- Proxmox bridges
nic0→vmbr0(LAN) - Proxmox bridges
nic1→vmbr1(WAN) - The OPNsense VM gets two VirtIO NICs, one on each bridge
- The FPT line (PPPoE over Gigabit Ethernet) comes in on the physical port
nic1. This is the WAN side. - The Proxmox bridge
vmbr1connectsnic1to the VM. - The OPNsense VM sees the WAN as
vtnet1, a VirtIO network card. - OPNsense checks the traffic with its firewall rules. Then it sends the traffic out of its LAN card
vtnet0. - The bridge
vmbr0connectsvtnet0to the physical portnic0. A cable goes fromnic0to the switch. - The switch connects the Wi-Fi access point, the homelab server and the TV and PCs. Phones and laptops use the Wi-Fi.
Step 1: Install Proxmox and Configure Bridges#
Install Proxmox VE from the official ISO on the N100. Before you create the OPNsense VM, check the network devices in System -> Network.

nic0 and nic1 are the physical NICs. Create a Linux Bridge for each one: vmbr0 and vmbr1. Make sure both show Active and Autostart.
Check the bridge configuration in /etc/network/interfaces:
auto lo
iface lo inet loopback
auto nic0
iface nic0 inet manual
auto nic1
iface nic1 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.10.1.2/24
gateway 10.10.1.1
bridge-ports nic0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet manual
bridge-ports nic1
bridge-stp off
bridge-fd 0Then list the links. nic0, nic1, vmbr0 and vmbr1 should show state UP:
ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: nic0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr0 state UP mode DEFAULT group default qlen 1000
link/ether 68:1d:ef:3a:4f:83 brd ff:ff:ff:ff:ff:ff
altname enx681def3a4f83
3: nic1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr1 state UP mode DEFAULT group default qlen 1000
link/ether 68:1d:ef:3a:4f:84 brd ff:ff:ff:ff:ff:ff
altname enx681def3a4f84
4: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 40:9c:a7:4d:12:70 brd ff:ff:ff:ff:ff:ff
altname wlx409ca74d1270
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 68:1d:ef:3a:4f:83 brd ff:ff:ff:ff:ff:ff
6: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 68:1d:ef:3a:4f:84 brd ff:ff:ff:ff:ff:ff
7: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr0 state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 7a:d9:99:9d:c0:94 brd ff:ff:ff:ff:ff:ff
8: tap100i1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr1 state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 06:87:57:63:56:75 brd ff:ff:ff:ff:ff:ffStep 2: Create the OPNsense VM#
Download OPNsense ISO#
From the OPNsense download page, download the amd64 DVD image (.iso). Extract it, then upload it to Proxmox local storage with Datacenter → Storage → ISO Images → Upload.
VM Settings#
Create a new VM with these settings:
| Setting | Value |
|---|---|
| OS | FreeBSD 14 (64-bit) |
| vCPUs | 2 |
| RAM | 8GB (2GB minimum) |
| Disk | 80GB |
| SCSI controller | VirtIO SCSI |
| Network Device (net0) | virtio / bridge=vmbr0 (LAN) |
| Network Device (net1) | virtio / bridge=vmbr1 (WAN) |
The NIC model matters. Pick VirtIO for both, not e1000 or RTL8139.

Boot the VM from the ISO and follow the OPNsense installer. Accept the defaults for the disk layout. The installation takes 2–3 minutes.
Step 3: Initial OPNsense Configuration#
When the installer finishes, reboot and remove the ISO from the VM. OPNsense starts and shows a console prompt.
Assign Interfaces#
At the first prompt, assign the interfaces:
Do you want to configure VLANs now? → n
Enter the WAN interface name or 'a' for auto-detection: vtnet1
Enter the LAN interface name or 'a' for auto-detection: vtnet0OPNsense maps vtnet1 to WAN (through vmbr1/nic1) and vtnet0 to LAN (through vmbr0/nic0). Confirm.
Set LAN IP#
From the console menu, select 2) Set interface(s) IP address, then LAN. Set:
- IP:
10.10.1.3 - Subnet:
24 - Enable DHCP server on LAN: yes
- DHCP pool start:
10.10.1.60 - DHCP pool end:
10.10.1.250
DHCP gives each device an IP address automatically. The DHCP range starts at .60, so 10.10.1.1-59 stays free for static addresses. Use those for services and VMs that need a fixed address.
Configure WAN (PPPoE for FPT)#
FPT Vietnam uses PPPoE, not DHCP. With PPPoE, the router must log in to the ISP with a username and password. Connect a PC to the LAN port on the T9 Plus, then use the web UI:
- Go to
https://10.10.1.3and log in (default:root/opnsense)- Change the default admin credentials (the login details) right after your first login
- Go to Interfaces → WAN
- Set IPv4 Configuration Type to
PPPoE - Enter your FPT username and password (provided by FPT)
- Copy the Mac address of the AX3000CV2 and enter it in the Mac address field
- FPT may need the original router’s MAC address before it accepts the PPPoE session
- Save and apply


Step 4: Enable DHCP and Connect Devices#
The DHCP server now runs on LAN (10.10.1.60–250). Connect your switch to the LAN port of the T9 Plus. Devices that you plug into the switch get their IPs from OPNsense.
Check that a client gets an address:
ipconfig getifaddr en0
10.10.1.190Step 5: Set up Firewall rules#
By default, OPNsense blocks all traffic. You must add rules that let LAN devices reach the internet and let the answers from WAN come back.
LAN rules: allow outbound traffic from the LAN subnet (10.10.1.0/24) to any destination:



Step 6: Configure the Gateways#
OPNsense needs a gateway. A gateway is the next router that takes traffic out of your network. Make sure the WAN gateway has Upstream checked. This tells OPNsense to use it as the default route to the internet.


With the firewall rules and the gateway set, traffic should now pass from your devices to the internet and back. Check the dashboard. You should see active WAN and LAN interfaces with traffic counters:

Step 7: Validate Traffic Flows Through OPNsense#
From a LAN device, check that the internet works and that traffic takes the right path:
# Basic connectivity
ping -c 4 8.8.8.8
# Confirm routing path goes through OPNsense
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 40 byte packets
1 opnsense.internal (10.10.1.3) 7.842 ms 3.190 ms 3.541 ms
2 fpt ip (x.x.x.189) 4.877 ms 6.078 ms 4.887 ms
3 fpt ip (x.x.x.89) 8.873 ms 7.824 ms *In OPNsense, go to Firewall → Log Files → Live View and watch packets appear while you browse. This shows that OPNsense is in the path.
Also check that the WAN IP is a real FPT public IP. Interfaces → Overview → WAN should show an IP in FPT’s range (not 10.10.x.x).
Traps and Common Mistakes#
| Problem | Cause | Fix |
|---|---|---|
| NICs unreliable during OPNsense install | RTL8111/8168 re driver issues on FreeBSD |
Use Proxmox + VirtIO NICs |
| No internet after WAN setup | FPT uses PPPoE, not DHCP | Set WAN to PPPoE with correct credentials |
| Wrong WAN/LAN assignment | VirtIO MAC order matters | Check interface MACs in Proxmox vs OPNsense console |
| Proxmox management lost | Bridge config error | Console access via Proxmox web shell, check /etc/network/interfaces |
| NIC names differ | Kernel enumeration order | Run ip link show to confirm names before editing bridge config |
What’s Next#
OPNsense is running. Now you can add more to it.
Do you also want to watch the Proxmox host that runs OPNsense? The Monitoring Proxmox with Grafana Stack guide shows CPU, RAM, storage, and alerts. It covers a full Prometheus + Grafana setup in an LXC container, with Telegram alerts and no agents on the host.