WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wio = unknown string
WARNING: untranslated string: wio checked = unknown string
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: wio = unknown string
WARNING: untranslated string: wio checked = unknown string
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: wio = unknown string
WARNING: untranslated string: wio checked = unknown string
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
WARNING: untranslated string: wg name is already used = The name is already in use
WARNING: untranslated string: wg no local subnets = No local subnets given
WARNING: untranslated string: wg no remote subnets = No remote subnets given
+WARNING: untranslated string: wg peer does not exist = Peer does not exist
WARNING: untranslated string: whitelisted = Whitelisted
WARNING: untranslated string: whois results from = WHOIS results from
WARNING: untranslated string: winbind daemon = Winbind Daemon
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< winbind daemon
< wireguard
< wlanap 802.11w disabled
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< wireguard
< wlanap
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< wireguard
< wlanap hide ssid
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< whois results from
< winbind daemon
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< whois results from
< winbind daemon
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< whois results from
< winbind daemon
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< whois results from
< winbind daemon
< wg name is already used
< wg no local subnets
< wg no remote subnets
+< wg peer does not exist
< whitelisted
< whois results from
< winbind daemon
&General::system("/usr/local/bin/wireguardctrl", "stop");
}
+# Delete an existing peer
+} elsif ($cgiparams{"ACTION"} eq $Lang::tr{'remove'}) {
+ my $key = $cgiparams{'KEY'};
+
+ # Fail if the peer does not exist
+ unless (exists $peers{$key}) {
+ push(@errormessages, $Lang::tr{'wg peer does not exist'});
+ goto MAIN;
+ }
+
+ # Delete the peer
+ delete($peers{$key});
+
+ # Store the configuration
+ &General::writehasharray("/var/ipfire/wireguard/peers", \%peers);
+
+ # Reload if enabled
+ if ($settings{'ENABLED'} eq "on") {
+ &General::system("/usr/local/bin/wireguardctrl", "reload");
+ }
+
# Edit an existing peer
} elsif ($cgiparams{"ACTION"} eq $Lang::tr{'edit'}) {
my $key = $cgiparams{'KEY'};
# Fail if the peer does not exist
unless (exists $peers{$key}) {
+ push(@errormessages, $Lang::tr{'wg peer does not exist'});
goto MAIN;
}
'wg name is already used' => 'The name is already in use',
'wg no local subnets' => 'No local subnets given',
'wg no remote subnets' => 'No remote subnets given',
+'wg peer does not exist' => 'Peer does not exist',
'whitelisted' => 'Whitelisted',
'whois results from' => 'WHOIS results from',
'wildcards' => 'Wildcards',