| 1 | =head1 NAME | ||
| 2 | |||
| 3 | wg-meta - A toolkit to manage Wireguard configurations. | ||
| 4 | |||
| 5 | =head1 DESCRIPTION | ||
| 6 | |||
| 7 | An approach to add metadata to the main wireguard config, written in Perl. | ||
| 8 | |||
| 9 | =head1 UNDER THE HOOD | ||
| 10 | |||
| 11 | Unlike similar projects, this toolkit is not not dependent on any other storage system, metadata is stored directly inside the corresponding | ||
| 12 | C<wgXX.conf> file (Metadata is prefixed with C<#+>): | ||
| 13 | |||
| 14 | [Interface] | ||
| 15 | #+Alias = some_alias | ||
| 16 | #+Description = Some Desc | ||
| 17 | Address = 10.0.0.7/24 | ||
| 18 | ListenPort = 6666 | ||
| 19 | PrivateKey = WEkEJW3b4TDmRvN+G+K9elzq52/djAXT+LAB6BSEUmM= | ||
| 20 | |||
| 21 | [Peer] | ||
| 22 | #+Name = Fancy_meta_name | ||
| 23 | PublicKey = +qz742hzxD3E5z5QF7VOvleVS1onavQpXBK3NdTh40g= | ||
| 24 | AllowedIPs = 0.0.0.0/0 | ||
| 25 | Endpoint = wg.example.com | ||
| 26 | |||
| 27 | =head1 AUTHORS | ||
| 28 | |||
| 29 | Since there is a lot of spam flooding my mailbox, I had to put spam filtering in place. If you want to make sure | ||
| 30 | that your email gets delivered into my mailbox, include C<#im_not_a_bot#> in the B<subject!> | ||
| 31 | |||
| 32 | S<Tobias Bossert E<lt>tobib at cpan.orgE<gt>> | ||
| 33 | |||
| 34 | |||
| 35 | =head1 THANKS TO | ||
| 36 | |||
| 37 | L<OETIKER+PARTNER AG|https://www.oetiker.ch/> for sponsoring this project. | ||
| 38 | |||
| 39 | =head1 COPYRIGHT AND LICENSE | ||
| 40 | |||
| 41 | MIT License | ||
| 42 | |||
| 43 | Copyright (c) 2021 Tobias Bossert | ||
| 44 | |||
| 45 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 46 | of this software and associated documentation files (the "Software"), to deal | ||
| 47 | in the Software without restriction, including without limitation the rights | ||
| 48 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 49 | copies of the Software, and to permit persons to whom the Software is | ||
| 50 | furnished to do so, subject to the following conditions: | ||
| 51 | |||
| 52 | The above copyright notice and this permission notice shall be included in all | ||
| 53 | copies or substantial portions of the Software. | ||
| 54 | |||
| 55 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 56 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 57 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 58 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 59 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 60 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 61 | SOFTWARE. | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | use strict; | ||
| 66 | use warnings FATAL => 'all'; | ||
| 67 | package Wireguard::WGmeta; | ||
| 68 | |||
| 69 | our $VERSION = "0.3.4"; # Do not change manually | ||
| 70 | |||
| 71 | 1; |