BGP routes from WG peers disappears from system after changing any WG peer
-
Hi!
I have the following setup:VPN hub with WG interface 10.0.0.1/24
WG peer1 with addresses 10.0.0.2/24 and allowed networks 10.0.0.2/32 and 10.1.0.0/24
WG peer2 with addresses 10.0.0.3/24 and allowed networks 10.0.0.3/32 and 10.2.0.0/24BGP sessions with peer1 and peer2. Peer1 announces 10.1.0.0/24 network and peer2 announces 10.2.0.0/24 network.
Then I make some changes in WG peers on this interfaces (i.e., add new peer or delete existing peer or change allowed networks in some peer) and press "Apply".
After that, networks 10.1.0.0/24 and 10.2.0.0/24 disappears from kernel routing table (netstat -rn), and I loss connectivity with networks behind WG peers.
However, both routes present in FRR, and BGP sessions alive and working.If I execute "clear ip bgp 10.0.0.2" and "clear ip bgp 10.0.0.3" in vtysh to reestablish sessions, both routes are successfully installed in kernel routing table, and all works ok again.