From f98282b821d5fa64b49eeef102f6559fb617ac98 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 24 May 2022 17:45:09 +0200 Subject: [PATCH] net/frr add disable-connected-check option (#2989) While working on an Azure setup where the neighbor isn't within visible range, we stumbled upon the "disable-connected-check" option to allow loopback addresses. Reading a bit further there seem to be different ways of dealing with similar kind of situations. Either by setting an ebgp-multihop ttl value or to enable the disable-connected-check option. Since the multihop didn't come with a help text, it seemed like a good idea to add at least the upstream frr one. Knowning that the current multihop fieldtype currently is wrong ("enabling" will set a ttl of 255, where it should have been a number) --- .../OPNsense/Quagga/forms/dialogEditBGPNeighbor.xml | 12 +++++++++++- .../opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml | 4 ++++ .../service/templates/OPNsense/Quagga/bgpd.conf | 3 +++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/net/frr/src/opnsense/mvc/app/controllers/OPNsense/Quagga/forms/dialogEditBGPNeighbor.xml b/net/frr/src/opnsense/mvc/app/controllers/OPNsense/Quagga/forms/dialogEditBGPNeighbor.xml index 8665c2bce..1af5adf4a 100644 --- a/net/frr/src/opnsense/mvc/app/controllers/OPNsense/Quagga/forms/dialogEditBGPNeighbor.xml +++ b/net/frr/src/opnsense/mvc/app/controllers/OPNsense/Quagga/forms/dialogEditBGPNeighbor.xml @@ -63,6 +63,10 @@ neighbor.multihop + + Specifying ebgp-multihop allows sessions with eBGP neighbors to establish when they are multiple hops away. + When the neighbor is not directly connected and this knob is not enabled, the session will not establish. + checkbox @@ -113,7 +117,13 @@ neighbor.asoverride checkbox - Override AS number of the originating router with the local AS number. This command is only allowed for eBGP peers. + Override AS number of the originating router with the local AS number. This command is only allowed for eBGP peers. + + + neighbor.disable_connected_check + + checkbox + Allow peerings between directly connected eBGP peers using loopback addresses. neighbor.linkedPrefixlistIn diff --git a/net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml b/net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml index 0f37813cb..f22fe8cd2 100644 --- a/net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml +++ b/net/frr/src/opnsense/mvc/app/models/OPNsense/Quagga/BGP.xml @@ -128,6 +128,10 @@ 0 N + + 0 + N +