Bug #13225
closedBridges with QinQ interfaces not properly set up at boot
100%
Description
We have a setup that includes several OpenVPN tunnels, some of them using QinQ. When system is configured using WebUI, it works. However, after a reboot bridges are not set up properly - the QinQ interfaces are missing from bridges.The WebUI still shows bridges as they should be, but 'ifconfig bridgeX' does not include QinQ members. This is most likely related to issue #11662.
We found a possible way to fix this, but have no idea if this causes some other problems.
The situation before fix:
[2.6.0-RELEASE][admin@pf1.home.arpa]/root: ifconfig bridge1
bridge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:3b:86:67:99:01
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
member: vtnet1.2222 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 9 priority 128 path cost 2000
groups: bridge
nd6 options=1<PERFORMNUD>
Expected bridge contents:
[2.6.0-RELEASE][admin@pf1.home.arpa]/root: ifconfig bridge1
bridge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:3b:86:67:99:01
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
member: ovpnc2.200.2222 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 17 priority 128 path cost 20000
member: vtnet1.2222 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 9 priority 128 path cost 2000
groups: bridge
nd6 options=1<PERFORMNUD>
Proposed fix:
Add 'interfaces_bridge_configure(1);' into /etc/inc/openvpn.inc after 'interfaces_qinq_configure(true);':
/* configure OpenVPN-parent QinQ interfaces after creating OpenVPN interfaces
* see https://redmine.pfsense.org/issues/11662 */
if (platform_booting()) {
interfaces_qinq_configure(true);
interfaces_bridge_configure(1); // to fix qinq-members not being added to bridges at reboot
}
Updated by Viktor Gurov over 2 years ago
- Assignee set to Viktor Gurov
Updated by Jim Pingle over 2 years ago
- Target version set to 2.7.0
- Plus Target Version set to 22.09
Updated by Jim Pingle over 2 years ago
- Plus Target Version changed from 22.09 to 22.11
Updated by Viktor Gurov about 2 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset 3fde29a4a03bb76ade9087e89bd55040aa5ad3b9.
Updated by Danilo Zrenjanin about 2 years ago
- Status changed from Feedback to Resolved
I was able to replicate the issue on:
22.05-RELEASE (amd64) built on Wed Jun 22 18:56:13 UTC 2022 FreeBSD 12.3-STABLE
After applying the patch, the issue has gone.
I am marking this ticket as resolved and closed.
Updated by Jim Pingle about 2 years ago
- Plus Target Version changed from 22.11 to 23.01