OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: Labber53 on November 13, 2025, 12:14:34 AM

Title: [HOWTO] Filtered Bridge / Layer 2 L2 Firewall / Transparent firewall
Post by: Labber53 on November 13, 2025, 12:14:34 AM
TLDR; Along with many others I struggled with the old documentation at https://docs.opnsense.org/manual/how-tos/transparent_bridge.html

EDIT: added note about extracting ISO from the download
EDIT2: fixed typo in gateway name

This is a repeatable simple build for a new OPNsense 25.7 layer 2 firewall.

What: A Filtered transparent bridge (layer 2 firewall) is used to segment a network, isolating one more more hosts on a subnet

Why: Useful for observing traffic or for legacy systems that do not have a built-in software firewall

How: Set up a VM environment and an OPNsense firewall with two interfaces, one to your Lab network, and one for traffic "behind" the firewall

Important: Layer 2 firewall is not compatible with traffic shaping. It has a management IP address, but cannot participate in routing, proxy, IPS, etc.

Lab Topology
Update the instructions for your own Lab network

Download the Installation ISO

Prepare the VM Networks

Create the VM

Install OPNsense 25.7

Configure OPNsense from Console

Configure OPNsense from Web GUI

Update Firmware and Enable Guest tools

Testing
Title: Re: [HOWTO] Filtered Bridge / Layer 2 L2 Firewall / Transparent firewall
Post by: lilsense on November 13, 2025, 04:43:32 AM
nice!
Title: Re: [HOWTO] Filtered Bridge / Layer 2 L2 Firewall / Transparent firewall
Post by: Monviech (Cedrik) on November 13, 2025, 06:37:21 AM
I have a PR open that updates this part of the documentation:

https://github.com/opnsense/docs/pull/799

It also takes VLANs into account and is aimed at professional setups (where that kind of filtering bridge usually runs in this kind of setup)
Title: Re: [HOWTO] Filtered Bridge / Layer 2 L2 Firewall / Transparent firewall
Post by: Labber53 on November 13, 2025, 09:12:45 PM
That's awesome Monviech (Cedrik)! I struggled with this a couple of years ago and finally got to come back to it and get it working.

To get the firmware updates working, don't forget to add the gateway :)
Title: Re: [HOWTO] Filtered Bridge / Layer 2 L2 Firewall / Transparent firewall
Post by: Monviech (Cedrik) on November 13, 2025, 09:20:28 PM
Yeah you are right I forgot about hinting at needing a Gateway. If anything else is unclear feel free to leave review comments on github and I'll evaluate and fix these spots.