Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wireguard interface address is "Network address" #1384

Open
pgalonza opened this issue Jan 29, 2025 · 0 comments
Open

Wireguard interface address is "Network address" #1384

pgalonza opened this issue Jan 29, 2025 · 0 comments

Comments

@pgalonza
Copy link

Describe
By default, the Amnezia client creates a WireGuard configuration with the "Address" parameter set to "10.8.1.0" (

constexpr char defaultSubnetAddress[] = "10.8.1.0";
), but the documentation states that this address should be assigned to an interface, as it can cause problems during operation, because it is "Special Addresses"

To Reproduce
Steps to reproduce the behavior:

  1. Install Wireguard
  2. Connect to container
  3. Open wg0.conf

Expected behavior
"Address" parameter set to "10.8.0.1"

Desktop (please complete the following information):

  • OS: Manjaro

Server (please complete the following information):

  • OS: Almalinux 9

Additional context
https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8
https://www.ietf.org/rfc/rfc950.txt
https://www.ietf.org/rfc/rfc943.txt

"In certain contexts, it is useful to have fixed addresses
with functional significance rather than as identifiers of
specific hosts. When such usage is called for, the address
zero is to be interpreted as meaning "this", as in "this
network". The address of all ones are to be interpreted as
meaning "all", as in "all hosts". For example, the address
128.9.255.255 could be interpreted as meaning all hosts on
the network 128.9. Or, the address 0.0.0.37 could be
interpreted as meaning host 37 on this network."

 It is useful to preserve and extend the interpretation of these
 special addresses in subnetted networks.  This means the values
 of all zeros and all ones in the subnet field should not be
 assigned to actual (physical) subnets.

https://www.ietf.org/rfc/rfc1878.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant