-
Notifications
You must be signed in to change notification settings - Fork 767
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
MAC Interface source in failover mode - CARP unicast - flood trafic #8201
Comments
Hi, Maybe you are looking for https://forum.opnsense.org/index.php?topic=31680.msg168662#msg168662 Cheers, |
Maybe that was the wrong hint, there is also https://reviews.freebsd.org/D7695 so Note these options are per system, not interface. |
thank you both for help, knowledge and time. |
So i decided to try to script a auto ping interface from slave to VIP- master. it works. now, the core switch learns from 4 min ping the slave mac and i migrate again to the unicast carp mode. CARP UNICAST mode is active and so far, it uses the multicast mac to provioded the "gateway". The firewall, uses that multicast mac only to receive but uses its real mac to reply. The multicast mac is so far unknown on the network. devices lean it from arp but no trafic is provided by the firewall from the gateway address with that mac. consequences: any trafic to the multicast GW mac is flooded all over the network. bad luck or really bad configuration from mine.
in resume the situation: in some cases, the slave doenst make any trafic so its mac timeout on the network - any direct packets without arp are flooded - visible with the unicast carp mode.
In unicast mode, the multicast gw isnt used as a source from the master so packets from devices to the GW are flooded all over the network. from master from core sw > no multicast mac from the vlan10 - i havent migrated the others. SWC# show mac-address-table detail | i 00:00 SWC# show mac-address-table detail | i f4:90 > each mac from firewall are well known since the cron ping is active on the SLAVE: it received the packet wich is destined to 00:00:5e:00:01:0a root@fw-slave:~ # tcpdump -i vlan0.10 ether host 00:00:5e:00:01:0a -XXX |
sharing the auto ping from BACKUP Firewall Relativement à CARP UNICAST Une ACL permettant ICMP entre toutes les interfaces du FW vers la VIP est nécessaire. ATTENTION: TYPE INTERFACE A DEFINIR sauf vtnet/vlan/igc SCRIPT cd "your path" #!/bin/sh envoie un ping vers VIP si CARP BACKUPref: garp slave en carp unicastiftypes="vtnet igc vlan" for iftype in $iftypes; do exit chmod 744 slave_monit_master_garp.sh ACTION cd /usr/local/opnsense/service/conf/actions.d vi actions_slave_monit_master_garp.conf root@fw-slave:/usr/local/opnsense/service/conf/actions.d # cat slave_monit_master_garp.conf [check] service configd restart CRON JOB > */4 |
In fact, the final trick would be to force the MASTER to use the multicast mac adress while sending the unicast vrrp packets to the slave. MULTICAST VRRP UNICAST VRRP ANSWER FROM MASTER TO CLIENT with the real mac IF |
Hi,
Not certain if it's the good place to ask, please could you have a look on that case and tell me.
OPNsense 24.7.11_2-amd64 - FAILOVER
Case CARP in multicast:
While no ISC DHCP is running or any other service that generate unicast trafic from the slave makes it fully silent.
So far, its mac-address disapears from the core switch.
In that case, any unicast packet to the SLAVE without arp request would be broadcasted to the entire network.
CARP VRRP packets are multicasted all over network to client or guest terminal. This is ugly and unsecure to me. I would prefer to use the unicast mode.
Case CARP in unicast:
On interfaces without any source service or regulary trafic from the salve is doing the same: the mac from the slave times out on switches and then, any unicast packets from CARP are broadcasted all over the networks... no luck.
So the CARP unicast mode would be great to circle/reduce the data path between the master and slave but, without dhcp-failover or any services providing data from the salve, the consequences are "worst".
I had to add static mac on the CORE SWITCH to respond but this is ugly too.
My idea would be to be abble to get a GARP option on interfaces. I've seen sthg like that on Stormshield for VIP.
Looked for arping but doesnt exist anymore as plugin?
A check box for GARP any 60sec per Interface would be optimal. Maybe an option on the CARP configuration too.
Thanks for your replies and any help - I'm certain about the consequences - got backtraces - i might be wrong on something anyway.
Feel free to let me know.
Then thank you for all works done.
Regards
BN.
The text was updated successfully, but these errors were encountered: