I'm trying to achieve using a single WireGuard configuration template for different devices within the same main config file, specifically setting different device IP address for different devices.
The basic Idea would be:
- fetching current device somehow
- modify the config somehow (not relevant to this thread but
external-policy-modifer
maybe)
I see from sample module a {{{GATEWAY_ADDRESS}}}
is used, I wonder if there are other constants available? e.g. Device name?