Pure non-filering bridge

Started by Cenkron, November 27, 2026, 08:48:25 PM

Previous topic - Next topic
@nero355 You do not need a dedicated WAN interface. You can run OPNsense perfectly well with LAN only and I do in one location where OPNsense only provides VPN services behind a provide router.

So the general route is:

- remove everything but LAN from Interfaces > Assignments
- build a bridge interface with all the ports as members you are not currently using as LAN
- change Interfaces > Assignments to set the bridge as the new LAN
- switch the cable of your management station from your old LAN interface to one of the new bridge ports
- add the old LAN interface to the bridge

From the "ifconfig" output of @Cenkron it looks like these steps have all been performed.

Next in this particular scenario is disable the firewall globally.

If this is all done, then the four ports of your OPNsense device should behave like an unmanaged switch. So any device connected to one of the ports should be able to communicate with any other device on any other port.

Of course if you started your setup with an OPNsense configured as a router you should least check/set:

- disable DHCP server completely
- disable DNS server completely
- create and set a default gateway statically
- set a DNS server for OPNsense itself statically

And that's it, folks. Easy peasy. BTDT.

HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I have done all of these things with the single exception of the DNS issue.

I can't imagine that DNS is responsible for the primary problem I am seeing, which is that the bridge does operate like an unmanaged switch except for one thing, which is that it will not pass traffic to/from the external gateway (192.168.1.1) even though nothing in the device is programmed for that address.  This is not  a DNS problem.  It is possible that the inability to update is a DNS problem, but I am not primarily concerned with that for now.

Does the OPNsense running the bridge still have the default IP address of 192.168.1.1 on LAN, i.e. your bridge interface?

If yes, it will of course answer ARP requests by any client in your network and so prohibit them from communicating with your real gateway with that same IP address.

You should set that OPNsense to a static IP address different from 192.168.1.1 but well in the 192.168.1.0/24 network.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

The LAN interface is statically set to 192.168.1.10