When using `if_wg`, adding a peer with a list of allowed-ip, for example allowed-ips 10.0.20.0/24 allowed-ips 192.168.0.0/16 will result in AllowedIPs = 10.0.20.0/24, 192.168.0.0/24 Expected: AllowedIPs = 10.0.20.0/24, 192.168.0.0/16
Revision: FreeBSD 13.0-CURRENT #11 r369260M
This bug also affects -STABLE at 6136a10e355a7a837edecbccbed04c34b4bc32c9. Some extra hints on mixing IPv4 and IPv6 allowed-ips command: allowed-ips 10.88.88.0/24 allowed-ips fccc:cccc:cccc:0::/64 allowed-ips fbbb:bbbb:bbbb:bbbb:bbbb::/80 Output: [Peer] PublicKey = *** Endpoint = *:* AllowedIPs = 10.88.88.0/24 [Peer] PublicKey = *** Endpoint = *:* AllowedIPs = 10.88.88.0/24, fccc:cccc:cccc::/24 [Peer] PublicKey = *** Endpoint = *:* AllowedIPs = 10.88.88.0/24, fccc:cccc:cccc::/24, fbbb:bbbb:bbbb:bbbb:bbbb::/24
https://reviews.freebsd.org/D28655 The above commit fixes this issue.
That fix went in as https://cgit.freebsd.org/src/commit/?id=0646b83f0779260256e03a11c7bc2e6bcfefa694
Should this be merged to stable/13 and even releng/13.0?
Merged in https://cgit.freebsd.org/src/commit/?id=0646b83f0779260256e03a11c7bc2e6bcfefa694 https://cgit.freebsd.org/src/commit/?id=f28545524cb197a5df9ebd8d2019f200801d538a