https://bugs.koozali.org/show_bug.cgi?id=11771
--- Comment #36 from Jean-Philippe Pialasse <[email protected]> ---
when validating IP from configuration I get this message
Rapport d'état de l'opération
IP must be in private range
ip is 172.40.0.1
and it is still updated in db
need to make some changes in the file
/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/wireguard.pm
# Test Ip is inside CIDR
if (!test_for_private_ip($ip,$mask)) {
$msg = "IP must be in private range";
$fm->error($msg);return;
}
should be before the line $cdb->get('wg-quick@wg0')->merge_props(%props)
otherwise db gets updated even if the event is not triggered.
next step will be to also alter /etc/e-smith/events/actions/wireguard-network
line 20 should be using a test for network in is_rfc1918() and force it to one
inside rfc unless clients have been configured
if client have been configured, then disable wireguard and stop service
#First delete any already there.
my @wg = $netdb->get_all_by_prop(Wireguard=>"wg0");
foreach my $netwg (@wg) {
# next if same as the one in config db AND is_rfc1918
# delete all other network
$netwg->delete();
}
S30wireguard-network should be S04wireguard-network to run BEFORE the
template expand !
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/