[Bug]: AllowedAddresses not working for loopbacks?
Describe the bug
Unsure where I've gone wrong here but I have a rather unique setup.
We are doing BGP from one WG-Easy server running Arch (with CachyOS kernel) to another Arch server (also running CachyOS kernel).
I followed the Docker Compose routed setup. I have BIRD doing BGP to expose additional prefixes through WG tunnels (generated by WG-Easy). I'm not letting Wireguard mess with the routing table, rather BIRD via BGP can influence the routing table.
I have a peer connected via a WG-Easy configuration.
I have established a eBGP peer correctly and I've received this loopback.
10.0.0.95 via 10.140.0.2 dev wg0 proto bird metric 32
Pinging it does not work as it is assuming it is not apart of the allowed addresses...
ping 10.0.0.95
PING 10.0.0.95 (10.0.0.95) 56(84) bytes of data.
From 10.140.0.1 icmp_seq=46 Destination Host Unreachable
ping: sendmsg: Required key not available
From 10.140.0.1 icmp_seq=47 Destination Host Unreachable
ping: sendmsg: Required key not available
From 10.140.0.1 icmp_seq=48 Destination Host Unreachable
ping: sendmsg: Required key not available
^C
--- 10.0.0.95 ping statistics ---
48 packets transmitted, 0 received, +3 errors, 100% packet loss, time 48138msHere is the sanitized config.
[Interface]
PrivateKey =
Address = 10.140.0.2/24, fdcc:ad94:bacf:61a4::cafe:2/128
MTU = 1420
DNS = 192.168.69.176, 192.168.69.243
Table = off
[Peer]
PublicKey =
PresharedKey =
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 0
Endpoint = You'll notice that I'm allowing everything but Wireguard is not allowed to influence the routing table. That's what BIRD is for. I also have expanded it to a /24 rather than a 32. I'm hoping this has not made that much of a difference.
I have: Bounced the WG peer. Restarted the affected server.
Any ideas?
Expected behavior
You should be able to ping the loopback. I've set this up before with MikroTik's implementation of WG and didn't have issues there either...
Relevant log output
Source: wg-easy/wg-easy