wg-meta - A toolkit to manage Wireguard configurations.
An approach to add metadata to the main wireguard config, written in Perl.
Unlike similar projects, this toolkit is not not dependent on any other storage system, metadata is stored directly inside the corresponding wgXX.conf file (Metadata is prefixed with #+):
wgXX.conf
#+
[Interface] #+Alias = some_alias #+Description = Some Desc Address = 10.0.0.7/24 ListenPort = 6666 PrivateKey = WEkEJW3b4TDmRvN+G+K9elzq52/djAXT+LAB6BSEUmM= [Peer] #+Name = Fancy_meta_name PublicKey = +qz742hzxD3E5z5QF7VOvleVS1onavQpXBK3NdTh40g= AllowedIPs = 0.0.0.0/0 Endpoint = wg.example.com
Since there is a lot of spam flooding my mailbox, I had to put spam filtering in place. If you want to make sure that your email gets delivered into my mailbox, include #im_not_a_bot# in the subject!
#im_not_a_bot#
Tobias Bossert <tobib at cpan.org>
OETIKER+PARTNER AG for sponsoring this project.
MIT License
Copyright (c) 2021 Tobias Bossert
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
To install Wireguard::WGmeta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wireguard::WGmeta
CPAN shell
perl -MCPAN -e shell install Wireguard::WGmeta
For more information on module installation, please visit the detailed CPAN module installation guide.