1
General Discussion / Re: [Unsolved] VLAN Trunk with VLAN Access Ports on Spare NICs
« on: February 02, 2022, 06:04:20 am »
So I got too focused on VLANs and forgot that I could just bridge any of the VLANs on igb1 to the physical igb2 port. I didn't need to create a VLAN on igb2 and then bridge it to the VLAN on igb1. That answers question #2 and works around the issue of untagged traffic on igb2.
For clarification, the untagged traffic on the trunk port, igb1, is from the WAP's management interface. It looks like some Unifi WAPs do this also.
To catch the untagged traffic, I tried adding an interface to the physical igb1 port. That did get the traffic labeled with that interface in the firewall logs, so it seemed like it was working. As soon as I tried bridging it to a VLAN on the same port, though, all the VLAN traffic through that port stopped working. It looks like that's a FreeBSD limitation, per this thread:
https://forum.opnsense.org/index.php?topic=22660.0
Which links to this issue:
https://redmine.pfsense.org/issues/11139
I haven't been able to find any other ways to get OPNsense to tag/route the untagged traffic from the WAP.
As far as I can tell from all the yelling in this thread, tagging is just not a feature in pfSense. It's an older thread so that may have changed.
https://forum.netgate.com/topic/114329/vlan-how-do-you-assign-use-the-native-untagged-vlan/3
I also found a more recent unanswered thread similar to this one.
https://forum.opnsense.org/index.php?topic=26100.0
I did find a workaround for question #1, though - the WAP supports giving its management traffic a VLAN tag. I changed it to match one of my VLANs and it immediately started working.
So, solved!
For clarification, the untagged traffic on the trunk port, igb1, is from the WAP's management interface. It looks like some Unifi WAPs do this also.
To catch the untagged traffic, I tried adding an interface to the physical igb1 port. That did get the traffic labeled with that interface in the firewall logs, so it seemed like it was working. As soon as I tried bridging it to a VLAN on the same port, though, all the VLAN traffic through that port stopped working. It looks like that's a FreeBSD limitation, per this thread:
https://forum.opnsense.org/index.php?topic=22660.0
Which links to this issue:
https://redmine.pfsense.org/issues/11139
I haven't been able to find any other ways to get OPNsense to tag/route the untagged traffic from the WAP.
As far as I can tell from all the yelling in this thread, tagging is just not a feature in pfSense. It's an older thread so that may have changed.
https://forum.netgate.com/topic/114329/vlan-how-do-you-assign-use-the-native-untagged-vlan/3
I also found a more recent unanswered thread similar to this one.
https://forum.opnsense.org/index.php?topic=26100.0
I did find a workaround for question #1, though - the WAP supports giving its management traffic a VLAN tag. I changed it to match one of my VLANs and it immediately started working.
So, solved!