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

Quote from: Patrick M. Hausen on November 28, 2026, 11:27:39 PM@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.
I know you do, but I thought maybe things get easier if you totally ignore some parts of the setup and just focus on the Bridge creation itself :)

QuoteNext in this particular scenario is disable the firewall globally.
Why is that needed too when you already have a working Bridge ?

- There will be no LAN to WAN traffic.
- There will be no Inter-VLAN traffic.

I would expect the Firewall and NAT parts of OPNsense to be totally uninvolved once the Bridge is up and running ?!
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Ii agree with you.  I see no reason to configure the unused firewall or the unused WAN/non-existent interface.
The remaining fact is, I don't have a fully working bridge; it is almost there except for the phantom that prevents pinging the gateway, or clients on the bridge from accessing the gateway.

Just to make sure: the gateway is connected to one interface of the bridge and the client to another one?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

That is correct.
It is possible for the (isolated by the bridge) hosts to communicate with hosts on the other side of the bridge (bidirectionally).
It is possible for the hosts on the gateway side of the bridge to communicate with the outside world.
The isolated host cannot communicate (or even ping) through the gateway.
The gateway address is not duplicated by anything in the bridge configuration.

Can you explain what you mean by "side of the bridge"?

- All physical interfaces are members of the bridge?
- The firewall is disabled in Firewall > Settings > Advanced > Disable Firewall?

If both are "check" your device is now an unmanaged switch so there are no sides. You can plug any port into your upstream gateway/router/firewall/switch and a matching number of end devices into all the other ports.

If you have left one (WAN?) port out of the bridge - there's your problem.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

That expression simply means the traffic must pass though the bridge to get from A to B.

And both points i mentioned are "check"?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I deleted the WAN port, and disabled the firewall.
All four physical interfaces plus the LAN interface are on the bridge.

It is my belief that aside from management issues, all traffic presented to the bridge should pass through the bridge in the same sense as a layer 2 switch.

Quote from: Cenkron on <strong>Today</strong> at 07:51:06 PMIt is my belief that aside from management issues, all traffic presented to the bridge should pass through the bridge in the same sense as a layer 2 switch.

Exactly. So something is off. Time to bring out the big guns: tcpdump ... packet trace what is actually happening on the wire.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

You could use this tutorial:

https://docs.opnsense.org/manual/how-tos/transparent_bridge.html

This is the kind of configuration I would advice to use, I configured it for a few customers already who run this for IPS.

Don't try to be too smart, just do it by the book.
Hardware:
DEC740

I used that very article.
The one thing I did not do is make a separate management physical interface, because I don't want that.
I believe that even so, a bridge should act like a bridge, and this does not.
I am effectively using the LAN interface, as-is, as the management interface.  That should work.
Perhaps I will try doing it that way, but then I would just have to add another cable to the network switch.