Pure non-filering bridge

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

Previous topic - Next topic
Post the output of

ifconfig -a

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

Quote from: Cenkron on November 28, 2026, 01:21:05 PMIt seems that the bridge is operating completely normally, other than the gateway is completely invisible through the bridge.

This rings a bell and it's probably related to ARP not traversing the bridge.
Please provide the output for;

sysctl net.link.ether.ipfw net.link.bridge.ipfw_arp net.link.bridge.ipfw

lmoore and Patrick,
Thank you for your help.

I am generally familiar with terminal style communications, but not sure where to find it.  Does the console provide that, or are you meaning through the keyboard/display ports on the host running OpnSense?

November 28, 2026, 04:30:17 PM #18 Last Edit: November 28, 2026, 04:41:17 PM by lmoore
Quote from: Cenkron on November 28, 2026, 04:24:03 PMlmoore and Patrick,
Thank you for your help.

I am generally familiar with terminal style communications, but not sure where to find it.  Does the console provide that, or are you meaning through the keyboard/display ports on the host running OpnSense?

On the console  using the keyboard and monitor or via a SSH connection to the system in question.

It has been years since I used SSH.  I am generally on windows, though I do have a linux system, which is currently unusable.
I tried using the keyboard and video interface, but it is running the install script and is useless.

I tried ssh from Windows.  It times out on the connection attempt, but it seems to be installed.
I can ping the OpnSense system from Windows, so it is reachable.

Any more suggestions?

You need to enable the SSH service in the UI, first.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Reply from ifconfig -a

igc0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: Bridge_Eth0 (opt2)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c1
        media: Ethernet autoselect (10baseT/UTP <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Bridge_Eth1 (opt1)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c2
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Bridge_Eth2 (opt3)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c3
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc3: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: Bridge_Eth3 (opt4)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c4
        media: Ethernet autoselect (2500Base-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
enc0: flags=0 metric 0 mtu 1536
        options=0
        groups: enc
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=0 metric 0 mtu 33152
        options=0
        groups: pflog
pfsync0: flags=0 metric 0 mtu 1500
        options=0
        maxupd: 128 defer: off version: 1500
        syncok: 1
        groups: pfsync
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: LAN (lan)
        options=10<VLAN_HWTAGGING>
        ether 58:9c:fc:10:b7:53
        inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        bridge flags=0<>
        member: igc3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 4 priority 128 path cost 55 vlan protocol 802.1q
        member: igc2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 3 priority 128 path cost 2000000 vlan protocol 802.1q
        member: igc0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 1 priority 128 path cost 55 vlan protocol 802.1q
        member: igc1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 2 priority 128 path cost 2000000 vlan protocol 802.1q
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>

Reply from sysctl net.link.ether.ipfw net.link.bridge.ipfw_arp net.link.bridge.ipfw

igc0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: Bridge_Eth0 (opt2)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c1
        media: Ethernet autoselect (10baseT/UTP <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Bridge_Eth1 (opt1)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c2
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: Bridge_Eth2 (opt3)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c3
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
igc3: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: Bridge_Eth3 (opt4)
        options=48420b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,HWSTATS,MEXTPG>
        ether 00:d0:b4:00:fb:c4
        media: Ethernet autoselect (2500Base-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
enc0: flags=0 metric 0 mtu 1536
        options=0
        groups: enc
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=0 metric 0 mtu 33152
        options=0
        groups: pflog
pfsync0: flags=0 metric 0 mtu 1500
        options=0
        maxupd: 128 defer: off version: 1500
        syncok: 1
        groups: pfsync
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: LAN (lan)
        options=10<VLAN_HWTAGGING>
        ether 58:9c:fc:10:b7:53
        inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        bridge flags=0<>
        member: igc3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 4 priority 128 path cost 55 vlan protocol 802.1q
        member: igc2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 3 priority 128 path cost 2000000 vlan protocol 802.1q
        member: igc0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 1 priority 128 path cost 55 vlan protocol 802.1q
        member: igc1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                port 2 priority 128 path cost 2000000 vlan protocol 802.1q
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
root@BWJ12:~ # sysctl net.link.ether.ipfw net.link.bridge.ipfw_arp net.link.bridge.ipfw
sysctl: unknown oid 'net.link.ether.ipfw'
net.link.bridge.ipfw_arp: 0
net.link.bridge.ipfw: 0

Please use code tags for commands and output.

On topic: firewall is disabled?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Sorry for the duplication of the output from the ifconfig command.
Don't know what code tags means.
Disable Firewall is checked.

One other strange thing I have noticed is that the UI is much slower to update than the OpnSense router I use for the WAN.
The hardware and connections are comparable.

November 28, 2026, 07:05:55 PM #24 Last Edit: November 28, 2026, 07:07:36 PM by nero355
Quote from: Cenkron on November 28, 2026, 06:18:59 PMDon't know what code tags means.
<Your output here>You use [ code ] and [ / code ] tags for this, but without the spaces I have added :)

And something I am wondering while seeing this topic a few times now :
- Why not keep 1 Interface for WAN so OPNsense can use it for updates ?
- Why do you insist on using a whole OPNsense instance as a Managed Switch with SNMP readings basically ?!

And what does the rest of your network look like ?
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

- Why not keep 1 Interface for WAN so OPNsense can use it for updates ?

Originally I tried that configuration.
While that did make updates possible, I never got it to pass traffic between WAN and LAN, even adding rules intended to pass all traffic.
That made it inconvenient to just interpose it in front of the system I wanted to do traffic measurement on.

My system (excluding the OpnSense bridge) consists of:
1. OpnSense edge router to WAN.
2. One switched network consisting of:
3  Five computers
4  Three file servers (Asustor and TrueNAS)
5. One WiFi Access Point

In doing the bridge testing, I pull one of the computers off the switch, connect to the bridge, and connect another of the bridge ports to the switch.
This is the interposition mentioned above.

Having the WAN and Firewall in use, even with pass all rules, still limited access from the test computer, and even if it did would add parasitic performance degradation, not useful in this case.  This was true regardless whether I used the WAN port or one of the bridge ports to connect the test computer.
The failure to pass traffic to the gateway, was evident at the time, but hidden behind other uncertainties.


- Why do you insist on using a whole OPNsense instance as a Managed Switch with SNMP readings basically ?!

It is not that I insist, but this entire project is a learning experience, and the first attempt was flawed.
Now, the second attempt is flawed.

It is my sense at this point, that in the first attempt, perhaps I did not correctly configure the OpnSense device.
I assumed at the time that the Firewall was at least part of the problem; now, not so sure.
The second attempt was an outgrowth of trying to correct the first.

At this point, It seems to me, that either there is still something not correctly configured for use as a bridge, or there is a bug in the current (26.10) version of OpnSense such that part of the code is violating the spirit of a bridge.  I believe this because I saw the same problem in both cases.

I am unclear why I don't see the same problem in the router configuration.  It works exactly like an upstream router should.  It is the same version as the bridge.

This project is not do or die for me, but I would like to be helpful to the team.

A WAN interface by default blocks private networks. Did you remember to disable the setting during that first experiment of having a WAN interface for updates?

Yes.  I was completely aware of those settings.  And a week or so earlier I had a version that worked as a second (nested) router, while using the original version of the software (26.7).  But later on, I could never get back to that.  I don't know for sure that updating to 26.10 is the reason.

The current effort actually started from the configuration of the WAN router.  I changed the addressing, etc. and worked awhile trying to get it to work in the nested role.  Then I decided to ask for help.  I am unwilling to go back and install 26.7 because I had the "waiting for CAM" problem, and it was too frustrating.

That brings us to here.  I could reload the router configuration and try again, but I have no new ideas for that approach.  It would be acceptable, but only if it would pass upstream.  Achieving a fully working nested router would be a success.

November 28, 2026, 10:54:52 PM #28 Last Edit: November 28, 2026, 10:57:40 PM by nero355
Quote from: Cenkron on November 28, 2026, 07:53:41 PMOriginally I tried that configuration.

While that did make updates possible, I never got it to pass traffic between WAN and LAN, even adding rules intended to pass all traffic.
That made it inconvenient to just interpose it in front of the system I wanted to do traffic measurement on.
But that's not what your plan with the whole Bridge setup is for ?!

IMHO the best setup would be something like this with a Mini PC that has 4 or 6 NICs usually :
- Keep using Interface igc0 as WAN for OPNsense update purposes.
- Ignore disabling NAT/Firewall and stuff : You are not going to use it for the Clients anyway!
- Create one big Bridge with the rest of the Interfaces (igc1, igc2, igc3, etc.)
- Apply any Bridge tuneables if applicable.
- Disable DHCP on the LAN (The new Bridge) side.
- Make sure that the LAN IP Address of the Bridge does not conflict with any other IP Address in your network so you can reach the webGUI in the future !!

This is basically how some use a generic "WiFi Router" as a Switch + Accesspoint in their network :)

QuoteIn doing the bridge testing, I pull one of the computers off the switch, connect to the bridge, and connect another of the bridge ports to the switch.
That should work just fine in combination with what I have written above.

QuoteHaving the WAN and Firewall in use, even with pass all rules, still limited access from the test computer, and even if it did would add parasitic performance degradation, not useful in this case.
IMHO the Firewall and NAT features of the OPNsense that has the Bridge configuration should not be used/involved in this whole setup at all.

QuoteThis was true regardless whether I used the WAN port or one of the bridge ports to connect the test computer.
The failure to pass traffic to the gateway, was evident at the time, but hidden behind other uncertainties.
You mean the Gateway as in your actual OPNsense Edge Router, right ?

Make sure the setup is as following :

- OPNsense Bridge - WAN => Switch => OPNsense Edge Router
- OPNsense Bridge - LAN (The new Bridge) => Switch => OPNsense Edge Router

IMHO there should be no weird issues this way when it comes to the connection speed for example.

QuoteIt is my sense at this point, that in the first attempt, perhaps I did not correctly configure the OpnSense device.
I assumed at the time that the Firewall was at least part of the problem; now, not so sure.
The second attempt was an outgrowth of trying to correct the first.
Try again from scratch and let us know how it went :)

QuoteI am unclear why I don't see the same problem in the router configuration.  It works exactly like an upstream router should.  It is the same version as the bridge.
From what I understand so far you can not compare those two at all, because when OPNsense "works in Router Mode" the NAT and Firewall features are active and IMHO you do not need those for your Bridge setup.

QuoteThis project is not do or die for me, but I would like to be helpful to the team.
Focus on the Bridge and making sure it has no DHCP active or that it has any IP Address conflict and you should get very far!

Quote from: Cenkron on November 28, 2026, 09:28:31 PMI had a version that worked as a second (nested) router, while using the original version of the software (26.7).
But later on, I could never get back to that.  I don't know for sure that updating to 26.10 is the reason.
IIRC you can only go from Community Edition to Business Edition and not from Business Edition to Community Edition ?!
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Hello, nero355.

I don't have a real plan for this device.  It is a learning exercise.  The hardware is the backup for the OpnSense router that I use to my WAN.
I got the idea to set it up in the meantime as a pure bridge, and to use it to measure traffic to servers for comparison purposes.  I used it as my WAN router until I replaced it with different hardware, although it is configuration compatible including the names of the physical interfaces.

I have spent the day changing the configuration, trying to make it work as a pure bridge.  It is almost there, except even with the WAN interface deleted. and the Firewall disabled, it refuses to pass traffic to\from my gateway, regardless if the LAN interface has a configured gateway (pointed at my primary gateway which is 192.169.1.1) or not.
The LAN interface IP is different from the actual gateway (static 192.168.1.10). All DHCP is turned off; it is expected that the primary gateway serves that purpose.

This almost works.  The problem is that it does not pass traffic between the bridge ports involving the gateway address, as a bridge should.
Although I am not certain that there is not a misconfiguration causing this, it seems more like a bug, perhaps left over from early days of the project.

I understand your version of things, but I started from a configuration like that, and it had more or less the same problem.