Closed acoul closed 2 years ago
We don't allow bgp to peer with itself on the same device because we only allow one bgp process on the device, and a bgp speaker peering with itself produces some odd semantics, including the possibility of routing loops. What pmacct appears to be doing is acting as a second bgp speaker on the same device--something we normally wouldn't see.
The problem with allowing peering to the same device for pmacct is that we would then be allowing a standard bgp speaker to peer to itself ... which isn't a good idea. So ... two options.
Someone could code up an "exception" for pmacct in the FRR code. I think this would require a test of some kind so the local bgp speaker can "know" a potential peer on the same device isn't really a peer, but rather just a passive receiver. Adding some kind of local capability might work here--but it would make the peering code a bit more complex.
Another solution might be for pmacct to always run in its own namespace, container, or something similar? I'm not quite certain how this can be configured, etc., but it might be an option.
@frrbot autoclose in 5 days
This issue will be automatically closed in the specified period unless there is further activity.
thank you Russ for your feedback on this issue.
IMHO this feels more like a feature restriction rather than a protection mechanism, assuming one knows what he is doing/configuring.
another fine tool that comes to mind that may well be running on the same server/router as FRR is ExaBGP
Edit: FWIW using the attached patch I was able to regain the lost quagga functionality I was having before the migration to FRR nuke_local_check-patch.txt .
This issue will no longer be automatically closed.
FRR VERSION: 8.1.0 OPERATING SYSTEM VERSION: Gentoo rolling latest default/linux/x86/17.0 (stable) KERNEL VERSION: 5.15.5-gentoo
Greetings,
this is NOT a bug, rather than an issue
I am in the process of migrating the quagga bgpd to the frr bgpd.
I am locally using pmacct as a BGP collector (import only) on the same server running bgpd
with quagga bgpd, this process was working fine
on frr, after loading bgpd, I get the following error: Can not configure the local system as neighbor
here is the relative information on pmacct: BGP neighbor over localhost via Quagga
the configuration:
and the error when loading frr:
is there a possible workaround for this ?
Edit: FWIW I was able to overcome this issue using redir on a different server on the same lan.
redir 192.168.1.10:17917 192.168.1.66:17917