[WireGuard] Troubleshooting with WireGuard
Jason A. Donenfeld
Jason at zx2c4.com
Wed Jul 13 19:55:22 CEST 2016
On Wed, Jul 13, 2016 at 7:51 PM, Baptiste Jonglez
<baptiste at bitsofnetworks.org> wrote:
> will win. If two peers have the exact same AllowedIPs entry, then I'm not
> sure what happens.
Fear not, WireGuard has no undefined behavior! The routing table
implementation does not allow for nodes to be duplicated like that.
Only one peer may be assigned to the same node (IP/CIDR). If you run
# wg set wg0 peer ABCD allowed-ips 184.108.40.206/32
# wg set wg0 peer EFGH allowed-ips 220.127.116.11/32
Then afterward if you run:
# wg show wg0
You'll see that ABCD has an allowed-ips of "(none)" and EFGH has an
allowed-ips of "18.104.22.168/32". In other words, setting will "move" an
existing entry to the new peer.
More information about the WireGuard