I have a WG0 VPN up and running, with eBGP running across it (quagga/bgpd) and they are all seeing the routes in the BGP table at both ends, as expected - however, the routes will not get installed into the routing table for the clients to use on my OpenWRT box.
I have built the same on a non OpenWRT box and appears to work fine - although I am having to insert a parameter which is related, but I don't think would solve this issue. It appears that the "table = off" is not used in WG version on openwrt.
GL-AR750# sh run
Building configuration...
Current configuration:
!
bgp config-type cisco
!
service advanced-vty
!
password zebra
!
router bgp 65002
no synchronization
bgp router-id 10.0.0.4
neighbor 10.0.0.1 remote-as 65000
neighbor 10.0.0.1 update-source wg0
neighbor 10.0.0.1 send-community both
no auto-summary
!
address-family ipv6
exit-address-family
exit
!
access-list vty permit 127.0.0.0/8
access-list vty deny any
!
line vty
access-class vty
!
end
GL-AR750# sh ip bgp
BGP table version is 0, local router ID is 10.0.0.4
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 10.0.0.1 0 0 65000 ?
*> 192.168.0.0/25 10.0.0.1 0 0 65000 ?
*> 192.168.0.128/25 10.0.0.1 0 0 65000 i
Displayed 3 out of 3 total prefixes
GL-AR750#
So, BGP is configured correctly, the prefixes are being learned and in the RIB, however, as seen below, never get into the FIB/kernel routing tables:
root@GL-AR750:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
0.0.0.0 10.4.10.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
10.4.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
18.133.174.29 10.4.10.1 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
root@GL-AR750:~#
Adding a little more. It was suggested to install/run ZEBRA as well as QUAGGA/BGPD and now seeing a little more and expected - i.e. BGP routes in the BGP table but now now showing "*>" and not installing into the main table.
I am thinking this is a quagga issue and nothing to do with WIREGUARD!
GL-AR750# sh ip bgp
BGP table version is 0, local router ID is 10.0.0.4
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
10.0.0.0/24 10.0.0.1 0 0 65000 ?
192.168.0.0/25 10.0.0.1 0 0 65000 ?
192.168.0.128/25 10.0.0.1 0 0 65000 i
Displayed 3 out of 3 total prefixes
GL-AR750#
Thanks for the offer. I realised I was trying to use the gi.net modified openwrt and quagga. In the end, I ended up going for a clean openwrt build on the ar750 and using FRR.
Now, everything works as I expect. It appears that the gi.net build want the same and acted oddly.