Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
FRR daemon combined with CARP
« previous
next »
Print
Pages: [
1
]
Author
Topic: FRR daemon combined with CARP (Read 5025 times)
rlnw
Newbie
Posts: 8
Karma: 0
FRR daemon combined with CARP
«
on:
September 24, 2019, 02:19:03 pm »
Thanks in advance for infos and help.
We are using two OPNsense-Firewalls (Version: 19.7.3) with some VLAN Interfaces and CARP.
Examples Firewall 1:
Vlan200, VIP 10.2.200.1, Status MASTER
Vlan610, VIP 10.2.161.1, Status MASTER
Examples Firewall 2:
Vlan200, VIP 10.2.200.1, Status BACKUP
Vlan610, VIP 10.2.161.1, Status BACKUP
FRR Configuration as follows (both Firewalls, Screenshot attached):
Routing: General, Configuration:
Enable x
Enable CARP Failover x
Create a logfile x
Therefore, FRR daemon is running on Firewall1 (MASTER) and not running on Firewall2 (BACKUP).
OSPF Configuration,
both Firewalls:
General:
OSPF enabled,
Passive Interfaces (the Vlan Interfaces),
no Route Redistribution
Networks:
VLAN-Ranges (e.g. 10.2.161.0/24)
Interfaces:
Transport-VLAN-Interface (only Interface without CARP Config)
Failover-Test:
Shutdown of Firewall1 -> Firewall2 becomes MASTER.
But:
FRR daemon does not start automatically on the new MASTER, manual start necessary.
Is there any config issue or workaround?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: FRR daemon combined with CARP
«
Reply #1 on:
September 24, 2019, 04:18:06 pm »
Something in the logs on unit2? Normally it should start right away
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #2 on:
September 25, 2019, 10:09:07 am »
Good Morning,
Sorry 4the delay. I have repeated the test with logging level DEBUG for the Routing log, both Firewalls.
Nothing in the Routing Log of Firewall2 during Shutdown of MASTER Firewall1.
But in the General Log, I have found the following:
OUTPUT OMITTED
Sep 25 07:29:28 kernel: carp: 202@lagg0_vlan202: BACKUP -> MASTER (master timed out)
Sep 25 07:15:05 kernel: pflog0: promiscuous mode enabled
Sep 25 07:15:05 kernel: pflog0: promiscuous mode disabled
Sep 25 07:15:04 root: /usr/local/etc/rc.d/frr: WARNING: failed precmd routine for ospfd
Sep 25 07:15:04 root: /usr/local/etc/rc.d/frr: WARNING: failed precmd routine for zebra
OUTPUT OMITTED
I have searched for the 2 frr warnings, but not very successful yet.
Other logs to activate/check for this issue?
Logged
rainerle
Full Member
Posts: 151
Karma: 9
Re: FRR daemon combined with CARP
«
Reply #3 on:
September 26, 2019, 12:20:10 am »
Hi,
just had the same issue and there is a patch existing:
You are using lagg interfaces with vlans on top. devd does not pick up on these interfaces.
https://github.com/opnsense/core/pull/3721
Upgrade to 19.7.4_1 and apply above patch on the CLI using
opnsense-patch 201ed68
then
/etc/rc.d/devd restart
That should fix it.
«
Last Edit: September 26, 2019, 12:29:08 am by rainerle
»
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #4 on:
September 26, 2019, 10:19:21 am »
Hi,
Thanx a lot for the info.
On applying the patch, I receive the following - does this mean, the interfaces have to be renamed?
Fetched 201ed68 via
https://github.com/opnsense/core
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 201ed6894f36a41d9b608454cc29f9f6478866ae Mon Sep 17 00:00:00 2001
|From: stumbaumr <stumbaumr@yahoo.de>
|Date: Tue, 24 Sep 2019 08:23:36 +0200
|Subject: [PATCH] devd does not pick up on laggX_vlanXXXX devices... (#3721)
|
|...since the underscore devices are filtered out.
|---
| src/etc/devd/carp.conf | 2 +-
| 1 file changed, 1 insertion(+), 1 deletion(-)
|
|diff --git a/src/etc/devd/carp.conf b/src/etc/devd/carp.conf
|index 48ddb616c3..5a99579106 100644
|--- a/src/etc/devd/carp.conf
|+++ b/src/etc/devd/carp.conf
--------------------------
Patching file etc/devd/carp.conf using Plan A...
Hunk #1 succeeded at 5.
done
All patches have been applied successfully. Have a nice day.
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #5 on:
September 26, 2019, 11:34:25 am »
Add:
I have tried to rename the VLAN Interfaces via GUI -
e.g. LAGG0_Printer to LAGG0-Printer.
But the patch has not been applied.
On the console, there are lagg0_xxx interface namings, e.g.:
VLAN210_Printer (lagg0_vlan210) -> v4: 10.2.210.3/24
VLAN211_Infra (lagg0_vlan211) -> v4: 10.2.211.3/24
current version:
OPNsense 19.7.4_1 (amd64/OpenSSL)
I did not find a way to rename the lagg0_xx interfaces.
Logged
rainerle
Full Member
Posts: 151
Karma: 9
Re: FRR daemon combined with CARP
«
Reply #6 on:
September 26, 2019, 02:41:05 pm »
No need to rename the interfaces.
But you have to restart the devd daemon (/etc/rc.d/devd restart ) to use the adjusted configuration.
And then your failover tests should work.
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #7 on:
September 26, 2019, 03:22:40 pm »
devd daemon was restartet -
/etc/rc.d/devd restart
Stopping devd.
Waiting for PIDS: 27199.
Starting devd.
But after the patch and devd restart on both nodes, when shutting down Firewall1, Firewall2 gets the master. But FRRouting Daemon is not started there. You either have to start it manually on Firewall2 - or bring Firewall1 back online again.
Logged
rainerle
Full Member
Posts: 151
Karma: 9
Re: FRR daemon combined with CARP
«
Reply #8 on:
September 26, 2019, 05:15:58 pm »
Have you applied the patch to both firewalls and restarted devd on both firewalls?
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #9 on:
September 26, 2019, 05:31:07 pm »
Yes, I did so.
Update, patch, devd restart on both devices.
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #10 on:
September 27, 2019, 02:03:56 pm »
Hello all,
good news.
carp.conf was upgraded after the patch automatically on Firewall2, but not on Firewall1.
We have edited the file manually on Firewall1, restart and now the failover is working.
Thanx a lot and have a nice weekend.
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: FRR daemon combined with CARP
«
Reply #11 on:
September 27, 2019, 05:51:10 pm »
opnsense-patch is a local tool and you should be aware that updates will remove the patch unless it is shipped by default.
Cheers,
Franco
Logged
rlnw
Newbie
Posts: 8
Karma: 0
Re: FRR daemon combined with CARP
«
Reply #12 on:
October 01, 2019, 11:10:43 am »
Thanx a lot for the hint.
We will check this during the next upgrade.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
FRR daemon combined with CARP