Page MenuHomeFreeBSD

ifconfig-wg fix incorrect allowed-ips netmask info
ClosedPublic

Authored by nyan_myuji.xyz on Feb 13 2021, 11:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 9, 2:03 AM
Unknown Object (File)
Sun, Apr 5, 7:01 AM
Unknown Object (File)
Fri, Apr 3, 6:22 AM
Unknown Object (File)
Tue, Mar 24, 2:29 AM
Unknown Object (File)
Mon, Mar 23, 2:48 PM
Unknown Object (File)
Sun, Mar 15, 1:39 AM
Unknown Object (File)
Feb 27 2026, 5:12 PM
Unknown Object (File)
Feb 23 2026, 10:07 PM

Details

Summary

Currently when peer information being dumped via ifconfig wgN peer ..
or ifconfig wgN peer-list, whichever the netmask of the first allowed-ips
will be used as the netmask of all CIDR in allowed-ips. For example, if the
list is 192.168.1.0/24, 172.16.0.0/16, it will display as
192.168.1.0/24, 172.16.0.0/24. While this does not affects the actual functionality,
it creates massive confusion for users.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36979
Build 33868: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 14 2021, 8:34 AM
This revision was automatically updated to reflect the committed changes.