-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both virtual CARP IPv6 addresses of the Cluster Machines stay in Master State #3411
Comments
|
I am experiencing the same issue on my OPNsense cluster running version 19.1.6 on amd64. I noticed that disabling the firewall completely on the master host ( Adding a floating rule which allows IPv6 CARP from "any" to "any" over "any interface" doesn't seem to work here, only completely disabling the firewall does. As long as pf isn't disabled, I am only seeing IPv4 CARP advertisements and neither outgoing nor incoming CARP traffic for the configured IPv6 addresses. After searching the forums, I found the following threads which were never resolved but show exactly the same issue / pattern:
Could you try/verify if I already tried checking for dropping packets on the firewall by running |
|
Ok, didnt know theres an different tcpdump syntax for IPv6 CARP package filtering compared to IPv4.
Why the link local address is used? My IPv6 address on the interface is fd00:1::1/64 and the virtual CARP IP is fd00:1::5/64. Maybe this behavoir is intended?! As you can see there are outgoing IPv6 CARP packages. This tests i had to run on another OPNsense machine. |
|
@bewue Thank you for your findings so far. I am awaiting your test results on the cluster, as I can also see those outgoing CARP v6 packets on a standalone machine, but not on my cluster - and others from the forum encounter the same issue. In case you do see those outgoing packets though, I'll open a new issue and we are most likely experiencing a different bug. |
|
FWIW: While I still do not know if our issues are related, I spent some further time today with trying to track down this specific issue. Reducing the ruleset to a single rule which permits any incoming and outgoing traffic did not work either, which is why I started to analyze global pf flags. It turned out that disabling Firewall -> Settings -> Advanced -> Multi-WAN -> Use shared forwarding between packet filter, traffic shaper and captive portal immediately restored full CARP functionality for both IPv4 and IPv6. Behind the scenes, this will disable the two sysctl variables |
|
@ppmathis Good news, I will test that too. (at the earliest next tuesday) |
|
For CARP IPv6 address functionality the deactivation of shared forwarding was the solution for me as well! |
|
The answer is probably in #3468. |
|
@mimugmail The setup involves two OPNsense firewalls running on KVM instances using Proxmox and are directly connected through an usual Linux Bridge with VLAN support - as offered by Proxmox through its webinterface. Connection path looks like this:
The issue also occurs with both VMs running on a single Proxmox hypervisor instead of a cluster. No specific deviation from default config aside from interface configuration and firewall rules. I also already tested both available vNIC models, namely virtio and e1000. |
|
@andreas-p @mimugmail Thanks for the hint! I just re-enabled shared forwarding, waited for the cluster to break apart (had to reboot the systems to get the same effect as in the past), applied the patch to both cluster systems and finally ensured by running Old: I can confirm that patch c5d6b6c fixed the issue mentioned earlier on my system. I tried various situations and all of them worked just fine - I was not able to produce a duplicate CARP master state as before and both nodes seem to properly receive CARP traffic from each other. @bewue Can you attempt the same fix on your cluster? |
|
Really nice, thx :) |
|
Closing as per https://github.com/opnsense/core/blob/master/CONTRIBUTING.md |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
Describe the bug
Both virtual CARP IPv6 addresses of the cluster machines stay in master state.
With tcpdump i can not see any IPv6 CARP traffic on that interfaces.
To Reproduce
Steps to reproduce the behavior:
...Until here CARP is functional.
Problem: Both virtual CARP IPv6 addresses of the cluster machines stay in master state. (Firewall: Virtual IPs: Status)
Expected behavior
I also expect a correct virtual CARP address master/backup status negotiation with IPv6
Additional context
Tried CARP "enable/disable", CARP maintenance mode "enter/leave" and reboots with both machines. Also tried adding an IPv6 Alias with same vhid (virtual CARP IPv4 vhid) instead of an virtual CARP IPv6.
Environment
OPNsense 19.1.6 (amd64, OpenSSL).
Running on Xen (XCP-ng)
The text was updated successfully, but these errors were encountered: