Is your feature request related to a problem? Please describe.
Some network or tunnel setups provide clients with a usable IPv4 or IPv6 prefix, rather than a specific interface host address. Users currently need to manually choose and maintain a /32 or /128 address from that prefix.
Describe the solution you'd like
Add an optional interface-level Address prefixes setting that accepts comma-separated IPv4 and IPv6 CIDR prefixes.
Each time a tunnel starts, the app should randomly allocate an interface address from every configured prefix: IPv4 addresses should use a /32 mask, and IPv6 addresses should use a /128 mask. Generated addresses should only be used by the runtime WireGuard configuration and should not be written back to the saved configuration.
If an interface address for the same address family is already configured, the generated address should replace it for that runtime session to avoid conflicting addresses.
Additional context
I have implemented this feature and would be happy to open a PR if it is something the project would be interested in:
1bedaba...zhxycn:wgtunnel:master
Screenshots
Is your feature request related to a problem? Please describe.
Some network or tunnel setups provide clients with a usable IPv4 or IPv6 prefix, rather than a specific interface host address. Users currently need to manually choose and maintain a
/32or/128address from that prefix.Describe the solution you'd like
Add an optional interface-level Address prefixes setting that accepts comma-separated IPv4 and IPv6 CIDR prefixes.
Each time a tunnel starts, the app should randomly allocate an interface address from every configured prefix: IPv4 addresses should use a
/32mask, and IPv6 addresses should use a/128mask. Generated addresses should only be used by the runtime WireGuard configuration and should not be written back to the saved configuration.If an interface address for the same address family is already configured, the generated address should replace it for that runtime session to avoid conflicting addresses.
Additional context
I have implemented this feature and would be happy to open a PR if it is something the project would be interested in:
1bedaba...zhxycn:wgtunnel:master
Screenshots